ソースを参照

Docs: Moved the remark about the reserved "all" category name to the API docs.

Marek Lewandowski 6 年 前
コミット
beb394dd67

+ 1 - 5
packages/ckeditor5-special-characters/docs/features/special-characters.md

@@ -30,16 +30,12 @@ The `@ckeditor/ckeditor5-special-characters` package provides special characters
 
 You can define a new special characters category using the {@link module:special-characters/specialcharacters~SpecialCharacters#addItems `SpecialCharacters#addItems()`} function.
 
-<info-box warning>
-	The "All" category name is reserved by the plugin and cannot be used as a new name for special characters category.
-</info-box>
-
 For example, the following plugin adds the `Emoji` category in the special characters dropdown.
 
 ```js
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
-export default class SpecialCharactersEmoji extends Plugin {
+class SpecialCharactersEmoji extends Plugin {
 	static get pluginName() {
 		return 'SpecialCharactersEmoji';
 	}

+ 3 - 0
packages/ckeditor5-special-characters/src/specialcharacters.js

@@ -132,6 +132,9 @@ export default class SpecialCharacters extends Plugin {
 	/**
 	 * Adds a collection of special characters to specified group. A title of a special character must be unique.
 	 *
+	 * **Note:** The "All" category name is reserved by the plugin and cannot be used as a new name for special
+	 * characters category.
+	 *
 	 * @param {String} groupName
 	 * @param {Array.<module:special-characters/specialcharacters~SpecialCharacterDefinition>} items
 	 */