Преглед изворни кода

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