Explorar o código

Write docs for the allowedAttributes configuration.

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
4a96e2c85d

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