|
|
@@ -113,7 +113,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view, { withoutSelection: true } ) ).to.equal(
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'Foo bar baz.' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -127,7 +128,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption class="ck-editable ck-hidden ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-hidden ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -176,7 +177,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'foo bar' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -197,7 +199,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption class="ck-editable ck-hidden ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-hidden ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -218,7 +220,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src="img.png"></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">baz</figcaption>' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">baz</figcaption>' +
|
|
|
'</figure>'
|
|
|
);
|
|
|
} );
|
|
|
@@ -238,7 +241,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img alt="" src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>]' +
|
|
|
@@ -261,7 +264,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img alt="" src=""></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'foo bar' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>]' +
|
|
|
@@ -289,7 +293,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img alt="" src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption"></figcaption>' +
|
|
|
'</figure>]' +
|
|
|
'<p></p>'
|
|
|
@@ -319,7 +323,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>foo</p>' +
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
@@ -332,7 +337,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-hidden ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-hidden ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -346,7 +351,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>foo</p>' +
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">foo bar</figcaption>' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">foo bar</figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
} );
|
|
|
@@ -362,7 +368,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-hidden ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-hidden ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -379,7 +385,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'[]' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -398,7 +405,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption"></figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
@@ -415,11 +422,12 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
expect( getViewData( view ) ).to.equal(
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">foo bar</figcaption>' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">foo bar</figcaption>' +
|
|
|
'</figure>' +
|
|
|
'[<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption"></figcaption>' +
|
|
|
'</figure>]'
|
|
|
);
|
|
|
@@ -444,7 +452,7 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>{}foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable ck-hidden ck-placeholder" ' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable ck-hidden ck-placeholder" ' +
|
|
|
'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|
|
|
@@ -457,7 +465,8 @@ describe( 'ImageCaptionEditing', () => {
|
|
|
'<p>foo</p>' +
|
|
|
'<figure class="ck-widget image" contenteditable="false">' +
|
|
|
'<img src=""></img>' +
|
|
|
- '<figcaption class="ck-editable" contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
+ '<figcaption class="ck-editor__editable ck-editor__nested-editable" ' +
|
|
|
+ 'contenteditable="true" data-placeholder="Enter image caption">' +
|
|
|
'{foo bar baz}' +
|
|
|
'</figcaption>' +
|
|
|
'</figure>'
|