Sfoglia il codice sorgente

Minor docs improvement.

Oskar Wróbel 6 anni fa
parent
commit
3f8adb0744

+ 2 - 2
packages/ckeditor5-core/src/context.js

@@ -91,10 +91,10 @@ export default class Context {
 			/**
 			 * Cannot add multiple editors to the context which is created by the editor.
 			 *
-			 * @error context-addEditor-to-private-context
+			 * @error context-addEditor-private-context
 			 */
 			throw new CKEditorError(
-				'context-addEditor-to-private-context: Cannot add multiple editors to the context which is created by the editor.'
+				'context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.'
 			);
 		}
 

+ 1 - 1
packages/ckeditor5-core/tests/editor/editor.js

@@ -203,7 +203,7 @@ describe( 'Editor', () => {
 			expectToThrowCKEditorError( () => {
 				// eslint-disable-next-line no-new
 				new TestEditor( { context: editor._context } );
-			}, /^context-addEditor-to-private-context/ );
+			}, /^context-addEditor-private-context/ );
 		} );
 
 		it( 'should destroy context created by the editor on editor destroy', async () => {