8
0
فهرست منبع

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
+ */