|
|
@@ -101,7 +101,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument, { withoutSelection: true } ) ).to.equal(
|
|
|
'<figure class="image ck-widget" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption contenteditable="true">Foo bar baz.</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">Foo bar baz.</figcaption>' +
|
|
|
'</figure>'
|
|
|
);
|
|
|
} );
|
|
|
@@ -214,7 +214,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument, { withoutSelection: true } ) ).to.equal(
|
|
|
'<figure class="image ck-widget" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true">foo bar baz</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">foo bar baz</figcaption>' +
|
|
|
'</figure>'
|
|
|
);
|
|
|
} );
|
|
|
@@ -227,7 +227,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'[<figure class="image ck-widget ck-widget_selected" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true"></figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true"></figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
} );
|
|
|
@@ -248,7 +248,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'[<figure class="image ck-widget ck-widget_selected" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true">foo bar</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">foo bar</figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
} );
|
|
|
@@ -277,7 +277,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'<figure class="image ck-widget" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true">[]</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">[]</figcaption>' +
|
|
|
'</figure>'
|
|
|
);
|
|
|
} );
|
|
|
@@ -294,7 +294,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'[<figure class="image ck-widget ck-widget_selected" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true"></figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true"></figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
} );
|
|
|
@@ -310,11 +310,11 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'<figure class="image ck-widget" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true">foo bar</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">foo bar</figcaption>' +
|
|
|
'</figure>' +
|
|
|
'[<figure class="image ck-widget ck-widget_selected" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true"></figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true"></figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
} );
|
|
|
@@ -346,7 +346,7 @@ describe( 'ImageCaptionEngine', () => {
|
|
|
expect( getViewData( viewDocument ) ).to.equal(
|
|
|
'<figure class="image ck-widget" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption contenteditable="true">{foo bar baz}</figcaption>' +
|
|
|
+ '<figcaption class="ck-nested-editable" contenteditable="true">{foo bar baz}</figcaption>' +
|
|
|
'</figure>'
|
|
|
);
|
|
|
} );
|