How to use the alloyeditor.ButtonStateClasses function in alloyeditor

To help you get started, we’ve selected a few alloyeditor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ezsystems / ezplatform-richtext / src / bundle / Resources / public / js / OnlineEditor / buttons / ez-btn-anchoredit.js View on Github external
constructor(props) {
        super(props);

        this.updateValue = this.updateValue.bind(this);
        this.saveAnchor = this.saveAnchor.bind(this);
        this.removeAnchor = this.removeAnchor.bind(this);
        this.fireCustomUpdateEvent = this.fireCustomUpdateEvent.bind(this);
        this.hasError = this.hasError.bind(this);

        this.getStateClasses = AlloyEditor.ButtonStateClasses.getStateClasses;

        this.block = null;

        this.state = {
            value: '',
            isValueUnique: false,
            isValueValid: false,
        };
    }
github ezsystems / ezplatform-admin-ui / src / bundle / Resources / public / js / alloyeditor / src / base / ez-button.js View on Github external
constructor(props) {
        super(props);

        this.getStateClasses = AlloyEditor.ButtonStateClasses.getStateClasses;
        this.execCommand = AlloyEditor.ButtonCommand.execCommand.bind(this);
    }
github ezsystems / ezplatform-admin-ui / src / bundle / Resources / public / js / alloyeditor / src / buttons / ez-btn-anchoredit.js View on Github external
constructor(props) {
        super(props);

        this.updateValue = this.updateValue.bind(this);
        this.saveAnchor = this.saveAnchor.bind(this);
        this.removeAnchor = this.removeAnchor.bind(this);
        this.fireCustomUpdateEvent = this.fireCustomUpdateEvent.bind(this);

        this.getStateClasses = AlloyEditor.ButtonStateClasses.getStateClasses;

        this.block = null;

        this.state = {
            value: '',
            isValueUnique: false,
        };
    }
github ezsystems / ezplatform-admin-ui / src / bundle / Resources / public / js / alloyeditor / src / base / ez-blocktextalign.js View on Github external
constructor(props) {
        super(props);

        this.getStateClasses = AlloyEditor.ButtonStateClasses.getStateClasses;
    }