Kaynağa Gözat

Marked two attrs as observable.

Piotrek Koszuliński 9 yıl önce
ebeveyn
işleme
2fdb98c557
2 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 1 0
      src/command/attributecommand.js
  2. 1 0
      src/command/command.js

+ 1 - 0
src/command/attributecommand.js

@@ -40,6 +40,7 @@ export default class AttributeCommand extends Command {
 		 * Flag indicating whether command is active. For collapsed selection it means that typed characters will have
 		 * the command's attribute set. For range selection it means that all nodes inside have the attribute applied.
 		 *
+		 * @observable
 		 * @member {Boolean} ckeditor5.command.AttributeCommand#value
 		 */
 		this.set( 'value', false );

+ 1 - 0
src/command/command.js

@@ -40,6 +40,7 @@ export default class Command {
 		 * Flag indicating whether a command is enabled or disabled.
 		 * A disabled command should do nothing upon it's execution.
 		 *
+		 * @observable
 		 * @member {Boolean} ckeditor5.command.Command#isEnabled
 		 */
 		this.set( 'isEnabled', true );