diff --git a/src/linkediting.js b/src/linkediting.js index 00598d3..984397c 100644 --- a/src/linkediting.js +++ b/src/linkediting.js @@ -80,7 +80,10 @@ export default class LinkEditing extends Plugin { const doc = model.document; const highlightDescriptor = { id: 'linkBoundaries', - class: 'ck-link_selected', + class: [ + 'ck', + 'ck-link_selected' + ], priority: 1 }; diff --git a/src/ui/linkactionsview.js b/src/ui/linkactionsview.js index 663b3ee..6cb567f 100644 --- a/src/ui/linkactionsview.js +++ b/src/ui/linkactionsview.js @@ -114,6 +114,7 @@ export default class LinkActionsView extends View { attributes: { class: [ + 'ck', 'ck-link-actions', ], @@ -202,6 +203,7 @@ export default class LinkActionsView extends View { button.extendTemplate( { attributes: { class: [ + 'ck', 'ck-link-actions__preview' ], href: bind.to( 'href' ), diff --git a/src/ui/linkformview.js b/src/ui/linkformview.js index edb10a5..6981672 100644 --- a/src/ui/linkformview.js +++ b/src/ui/linkformview.js @@ -111,6 +111,7 @@ export default class LinkFormView extends View { attributes: { class: [ + 'ck', 'ck-link-form', ], diff --git a/tests/linkediting.js b/tests/linkediting.js index 3a41db9..3cc869b 100644 --- a/tests/linkediting.js +++ b/tests/linkediting.js @@ -166,7 +166,7 @@ describe( 'LinkEditing', () => { ); expect( getViewData( view ) ).to.equal( - '
foo b{}ar baz
' + 'foo b{}ar baz
' ); } ); @@ -188,7 +188,7 @@ describe( 'LinkEditing', () => { expect( marker.getEnd().path ).to.deep.equal( [ 0, 7 ] ); expect( getViewData( view ) ).to.equal( - 'foo {}bar baz
' + 'foo {}bar baz
' ); } ); @@ -204,7 +204,7 @@ describe( 'LinkEditing', () => { expect( marker.getEnd().path ).to.deep.equal( [ 0, 7 ] ); expect( getViewData( view ) ).to.equal( - 'foo bar{} baz
' + 'foo bar{} baz
' ); } ); @@ -233,7 +233,7 @@ describe( 'LinkEditing', () => { ); expect( getViewData( view ) ).to.equal( - 'foo li{}nk baz
' + 'foo li{}nk baz
' ); expect( model.markers.has( 'linkBoundaries' ) ).to.be.true; @@ -251,7 +251,7 @@ describe( 'LinkEditing', () => { ); expect( getViewData( view ) ).to.equal( - 'foo li{}nk baz
' + 'foo li{}nk baz
' ); expect( model.markers.has( 'linkBoundaries' ) ).to.be.true; @@ -259,7 +259,7 @@ describe( 'LinkEditing', () => { expect( model.markers.has( 'linkBoundaries' ) ).to.be.true; expect( getViewData( view ) ).to.equal( - 'foo l{}ink baz
' + 'foo l{}ink baz
' ); } ); } ); diff --git a/tests/linkui.js b/tests/linkui.js index 6873882..20463bb 100644 --- a/tests/linkui.js +++ b/tests/linkui.js @@ -250,7 +250,7 @@ describe( 'LinkUI', () => { const spy = testUtils.sinon.stub( balloon, 'updatePosition' ).returns( {} ); expect( getViewData( view ) ).to.equal( - '' + '' ); const root = viewDocument.getRoot(); @@ -319,7 +319,7 @@ describe( 'LinkUI', () => { const spyUpdate = testUtils.sinon.stub( balloon, 'updatePosition' ).returns( {} ); const spyHide = testUtils.sinon.spy( linkUIFeature, '_hideUI' ); - expect( getViewData( view ) ).to.equal( '' ); + expect( getViewData( view ) ).to.equal( '' ); const root = viewDocument.getRoot(); const text = root.getChild( 0 ).getChild( 0 ).getChild( 0 ).getChild( 0 ); diff --git a/tests/ui/linkactionsview.js b/tests/ui/linkactionsview.js index 2d8676d..20a41d7 100644 --- a/tests/ui/linkactionsview.js +++ b/tests/ui/linkactionsview.js @@ -24,6 +24,7 @@ describe( 'LinkActionsView', () => { describe( 'constructor()', () => { it( 'should create element from template', () => { + expect( view.element.classList.contains( 'ck' ) ).to.true; expect( view.element.classList.contains( 'ck-link-actions' ) ).to.true; expect( view.element.getAttribute( 'tabindex' ) ).to.equal( '-1' ); } ); diff --git a/tests/ui/linkformview.js b/tests/ui/linkformview.js index 834fec7..9252a0d 100644 --- a/tests/ui/linkformview.js +++ b/tests/ui/linkformview.js @@ -26,6 +26,7 @@ describe( 'LinkFormView', () => { describe( 'constructor()', () => { it( 'should create element from template', () => { + expect( view.element.classList.contains( 'ck' ) ).to.true; expect( view.element.classList.contains( 'ck-link-form' ) ).to.true; expect( view.element.getAttribute( 'tabindex' ) ).to.equal( '-1' ); } ); diff --git a/theme/linkactions.css b/theme/linkactions.css index e3657c3..bf24f18 100644 --- a/theme/linkactions.css +++ b/theme/linkactions.css @@ -3,7 +3,7 @@ * For licensing, see LICENSE.md. */ -.ck-link-actions { +.ck.ck-link-actions { & .ck-link-actions__preview { display: inline-block; diff --git a/theme/linkform.css b/theme/linkform.css index fc4ff86..5478210 100644 --- a/theme/linkform.css +++ b/theme/linkform.css @@ -3,7 +3,7 @@ * For licensing, see LICENSE.md. */ -.ck-link-form { +.ck.ck-link-form { & .ck-labeled-input { display: inline-block; }