Przeglądaj źródła

Internal: Updated plugin names to match the changes. [skip ci]

Piotrek Koszuliński 8 lat temu
rodzic
commit
0fdbe262c1

+ 1 - 1
packages/ckeditor5-clipboard/src/clipboard.js

@@ -65,7 +65,7 @@ import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/html
  * At this stage the pasted content can be processed by the features. E.g. a feature which wants to transform
  * a pasted text into a link can be implemented in this way:
  *
- *		this.listenTo( editor.plugins.get( 'clipboard/clipboard' ), 'inputTransformation', ( evt, data ) => {
+ *		this.listenTo( editor.plugins.get( 'Clipboard' ), 'inputTransformation', ( evt, data ) => {
  *			if ( data.content.childCount == 1 && isUrlText( data.content.getChild( 0 ) ) ) {
  *				const linkUrl = data.content.getChild( 0 ).data;
  *

+ 1 - 1
packages/ckeditor5-clipboard/tests/manual/copycut.js

@@ -36,7 +36,7 @@ ClassicEditor.create( document.querySelector( '#editor' ), {
 } )
 .then( editor => {
 	window.editor = editor;
-	const clipboard = editor.plugins.get( 'clipboard/clipboard' );
+	const clipboard = editor.plugins.get( 'Clipboard' );
 
 	editor.editing.view.on( 'paste', ( evt, data ) => {
 		console.clear();

+ 1 - 1
packages/ckeditor5-clipboard/tests/manual/pasting.js

@@ -36,7 +36,7 @@ ClassicEditor.create( document.querySelector( '#editor' ), {
 } )
 .then( editor => {
 	window.editor = editor;
-	const clipboard = editor.plugins.get( 'clipboard/clipboard' );
+	const clipboard = editor.plugins.get( 'Clipboard' );
 
 	editor.editing.view.on( 'paste', ( evt, data ) => {
 		console.clear();