File tree Expand file tree Collapse file tree
ckeditor5-woltlab-attachment/src
ckeditor5-woltlab-media/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class WoltlabAttachment extends Plugin {
4040 } ,
4141 view : {
4242 woltlabAttachment : {
43- name : "img" ,
43+ name : imageType === "imageBlock" ? "figure" : "img" ,
4444 key : "class" ,
4545 value : "woltlabAttachment" ,
4646 } ,
Original file line number Diff line number Diff line change @@ -35,20 +35,20 @@ export class WoltlabMedia extends Plugin {
3535 schema . extend ( imageType , {
3636 allowAttributes : [ "mediaId" , "mediaSize" ] ,
3737 } ) ;
38- } ) ;
3938
40- conversion . attributeToAttribute ( {
41- model : {
42- key : "classList" ,
43- values : [ "woltlabSuiteMedia" ] ,
44- } ,
45- view : {
46- woltlabSuiteMedia : {
47- name : "img" ,
48- key : "class" ,
49- value : "woltlabSuiteMedia" ,
39+ conversion . attributeToAttribute ( {
40+ model : {
41+ key : "classList" ,
42+ values : [ "woltlabSuiteMedia" ] ,
43+ } ,
44+ view : {
45+ woltlabSuiteMedia : {
46+ name : imageType === "imageBlock" ? "figure" : "img" ,
47+ key : "class" ,
48+ value : "woltlabSuiteMedia" ,
49+ } ,
5050 } ,
51- } ,
51+ } ) ;
5252 } ) ;
5353
5454 const attributeMapping = new Map ( [
You can’t perform that action at this time.
0 commit comments