Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot disable after initialization #23

Open
Ross-Blakeney opened this issue Nov 2, 2018 · 0 comments
Open

Cannot disable after initialization #23

Ross-Blakeney opened this issue Nov 2, 2018 · 0 comments

Comments

@Ross-Blakeney
Copy link

Ross-Blakeney commented Nov 2, 2018

Issue:
After initialization, updating the config object's disabled property does not disable the editor.

Expectation:

<jodit-editor [config]="config"></jodit-editor>

ngOnInit() {
        this.config = {
            enter: "DIV",
            toolbarAdaptive: false,
            disabled: false
        };
}

disableEditor() {
        this.config.disabled = true;
}

When called, "disableEditor()" should disable the wysiwyg. It currently does not.

My current work-around is to have two editors. One initialized with disabled = false, and one with disabled = true and use [hidden] to switch between the two as needed. Obviously not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant