8
0
Pārlūkot izejas kodu

Rename css class ck-non-restricted to ck-restricted-editing-exception.

Maciej Gołaszewski 6 gadi atpakaļ
vecāks
revīzija
599a29ebb4

+ 1 - 1
packages/ckeditor5-restricted-editing/src/restrictededitingexceptionediting.js

@@ -33,7 +33,7 @@ export default class RestrictedEditingExceptionEditing extends Plugin {
 			model: 'restrictedEditingException',
 			view: {
 				name: 'span',
-				classes: 'ck-non-restricted'
+				classes: 'ck-restricted-editing-exception'
 			}
 		} );
 

+ 2 - 2
packages/ckeditor5-restricted-editing/tests/manual/restrictedediting.html

@@ -1,6 +1,6 @@
 <div id="editor">
 	<h2>Heading 1</h2>
-	<p>Paragraph <span class="ck-non-restricted">it is editable</span></p>
+	<p>Paragraph <span class="ck-restricted-editing-exception">it is editable</span></p>
 	<p><strong>Bold</strong> <i>Italic</i> <a href="foo">Link</a></p>
 	<ul>
 		<li>UL List item 1</li>
@@ -25,7 +25,7 @@
 </div>
 
 <style>
-	.ck-non-restricted {
+	.ck-restricted-editing-exception {
 		background-color: #ffcd96;
 	}
 </style>

+ 3 - 3
packages/ckeditor5-restricted-editing/tests/restrictededitingexceptionediting.js

@@ -51,8 +51,8 @@ describe( 'RestrictedEditingExceptionEditing', () => {
 
 	describe( 'conversion', () => {
 		describe( 'upcast', () => {
-			it( 'should convert <span class="ck-non-restricted"> to model attribute', () => {
-				editor.setData( '<p>foo <span class="ck-non-restricted">bar</span> baz</p>' );
+			it( 'should convert <span class="ck-restricted-editing-exception"> to model attribute', () => {
+				editor.setData( '<p>foo <span class="ck-restricted-editing-exception">bar</span> baz</p>' );
 
 				expect( getModelData( model, { withoutSelection: true } ) )
 					.to.equal( '<paragraph>foo <$text restrictedEditingException="true">bar</$text> baz</paragraph>' );
@@ -61,7 +61,7 @@ describe( 'RestrictedEditingExceptionEditing', () => {
 
 		describe( 'downcast', () => {
 			it( 'should convert model attribute to <span>', () => {
-				const expectedView = '<p>foo <span class="ck-non-restricted">bar</span> baz</p>';
+				const expectedView = '<p>foo <span class="ck-restricted-editing-exception">bar</span> baz</p>';
 
 				setModelData( editor.model,
 					'<paragraph>foo <$text restrictedEditingException="true">bar</$text> baz</paragraph>'