소스 검색

Cross link configuration option and method for enabling commands in various ways.

Maciej Gołaszewski 6 년 전
부모
커밋
e2182d8d9c

+ 3 - 0
packages/ckeditor5-restricted-editing/src/restrictededitingmode.js

@@ -82,6 +82,9 @@ export default class RestrictedEditingMode extends Plugin {
  *			allowedCommands: [ 'bold', 'italic', 'link', 'unlink' ]
  *		};
  *
+ * To make a command always enabled (also outside non-restricted areas) use
+ * {@link module:restricted-editing/restrictededitingmodeediting~RestrictedEditingModeEditing#enableCommand} method.
+ *
  * @member {Array.<String>} module:restricted-editing/restrictededitingmode~RestrictedEditingModeConfig#allowedCommands
  */
 

+ 3 - 0
packages/ckeditor5-restricted-editing/src/restrictededitingmodeediting.js

@@ -99,6 +99,9 @@ export default class RestrictedEditingModeEditing extends Plugin {
 	 * Makes the given command always enabled in the restricted editing mode (regardless
 	 * of selection location).
 	 *
+	 * To enable some commands in non-restricted areas of the content use
+	 * {@link module:restricted-editing/restrictededitingmode~RestrictedEditingModeConfig#allowedCommands} configuration option.
+	 *
 	 * @param {String} commandName Name of the command to enable.
 	 */
 	enableCommand( commandName ) {