8
0
Просмотр исходного кода

Removed `conversion-` prefix from thrown errors.

Maksymilian Barnaś 9 лет назад
Родитель
Сommit
08c0c08bc7
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      packages/ckeditor5-engine/src/conversion/viewconsumable.js

+ 4 - 4
packages/ckeditor5-engine/src/conversion/viewconsumable.js

@@ -55,7 +55,7 @@ class ViewElementConsumables {
 	 *		consumables.add( { attribute: 'title', class: 'foo', style: 'color' } );
 	 *		consumables.add( { attribute: [ 'title', 'name' ], class: [ 'foo', 'bar' ] );
 	 *
-	 * Throws {@link utils.CKEditorError CKEditorError} `conversion-viewconsumable-invalid-attribute` when `class` or `style`
+	 * Throws {@link utils.CKEditorError CKEditorError} `viewconsumable-invalid-attribute` when `class` or `style`
 	 * attribute is provided - it should be handled separately by providing `style` and `class` in consumables object.
 	 *
 	 * @param {Object} consumables Object describing which parts of the element can be consumed.
@@ -178,7 +178,7 @@ class ViewElementConsumables {
 	/**
 	 * Helper method that adds consumables of a given type: attribute, class or style.
 	 *
-	 * Throws {@link utils.CKEditorError CKEditorError} `conversion-viewconsumable-invalid-attribute` when `class` or `style`
+	 * Throws {@link utils.CKEditorError CKEditorError} `viewconsumable-invalid-attribute` when `class` or `style`
 	 * type is provided - it should be handled separately by providing actual style/class type.
 	 *
 	 * @private
@@ -196,7 +196,7 @@ class ViewElementConsumables {
 				 *
 				 * @error viewconsumable-invalid-attribute
 				 */
-				throw new CKEditorError( 'conversion-viewconsumable-invalid-attribute: Classes and styles should be handled separately.' );
+				throw new CKEditorError( 'viewconsumable-invalid-attribute: Classes and styles should be handled separately.' );
 			}
 
 			consumables.set( name, true );
@@ -343,7 +343,7 @@ export default class ViewConsumable {
 	 *		viewConsumable.add( textNode ); // Adds text node to consume.
 	 *		viewConsumable.add( docFragment ); // Adds document fragment to consume.
 	 *
-	 * Throws {@link utils.CKEditorError CKEditorError} `conversion-viewconsumable-invalid-attribute` when `class` or `style`
+	 * Throws {@link utils.CKEditorError CKEditorError} `viewconsumable-invalid-attribute` when `class` or `style`
 	 * attribute is provided - it should be handled separately by providing actual style/class.
 	 *
 	 *		viewConsumable.add( p, { attribute: 'style' } ); // This call will throw an exception.