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

[Feature Request] : prop disabled #98

Closed
deka opened this issue Nov 6, 2019 · 1 comment · Fixed by #176
Closed

[Feature Request] : prop disabled #98

deka opened this issue Nov 6, 2019 · 1 comment · Fixed by #176
Labels
enhancement New feature or request

Comments

@deka
Copy link
Contributor

deka commented Nov 6, 2019

Hi,
I need to enable and disable editing dynamically.
I try :editor-properties="{ editable: false}" but it's not pleasing.
If i understand, editor properties are added to constructor, and not dynamically, and toolbar is not disabled.

I think something like : :disabled="disabled"

@iliyaZelenko
Copy link
Owner

iliyaZelenko commented Nov 6, 2019

WOW, I have never had so much activity in one hour from one person, stop finally! I'm kidding. 😄

Currently you can set editable dynamically for editor:

this.editor.setOptions({
  editable: this.editable,
})

To get Editor you can use @init event.

But it would also be nice to add styles, such as gray text and disable the toolbar as you mentioned. I will need to make disabled prop where everything will be included. Thanks for the idea.

@iliyaZelenko iliyaZelenko added the enhancement New feature or request label Nov 6, 2019
@iliyaZelenko iliyaZelenko linked a pull request May 22, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants