浏览代码

Write docs for the allowedAttributes configuration.

Maciej Gołaszewski 6 年之前
父节点
当前提交
4a96e2c85d
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      packages/ckeditor5-restricted-editing/src/restrictededitingmode.js

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

@@ -83,3 +83,15 @@ export default class RestrictedEditingMode extends Plugin {
  *
  * @member {Array.<String>} module:restricted-editing/restrictededitingmode~RestrictedEditingModeConfig#allowedCommands
  */
+
+/**
+ * The text attribute names allowed when pasting content ot non-restricted areas.
+ *
+ * The default value is:
+ *
+ *		const restrictedEditingConfig = {
+ *			allowedAttributes: [ 'bold', 'italic', 'link' ]
+ *		};
+ *
+ * @member {Array.<String>} module:restricted-editing/restrictededitingmode~RestrictedEditingModeConfig#allowedAttributes
+ */