-
Notifications
You must be signed in to change notification settings - Fork 8
TINY-11909: Add support for readonly mode #77
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
Conversation
(question) Will the editor be in readonly mode? I think it won't. Because initially editor's init method has
but the We can't use the |
don't we would have the same behavior using the version check? if the |
Yes it would. Therefore we should set the init object correctly
|
isn't the same? I mean if someone with |
@@ -12,6 +12,10 @@ | |||
return prefix + '_' + Math.floor(Math.random() * 1000000000) + String(Date.now()); | |||
}; | |||
|
|||
const isDisabledOptionSupported = (editor: TinyMCEEditor): boolean => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this check needs to be different after talking to @michalnieruchalski-tiugo since we want to feed readonly or disabled in at init time as well and then we don't have the editor instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they use disabled=true on a old editor version then it wouldn't be disabled since that option didn't exist prior to 7.6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spocke, @michalnieruchalski-tiugo I fixed it, with a check in the setup, let me know what do you think about it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping the minor version should fix the CI failure
Related ticket: TINY-11909
added support for readonly mode and now disabled prop uses the editor disable