You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to disable the RichTextEditor in some cases. When doing so after initializing the Editor I get an exception (roughly translated). org.eclipse.swt.SWTException: Property "setReadOnly" of undefined or null cannot be called (org.eclipse.swt.SWTException: Die Eigenschaft "setReadOnly" eines undefinierten oder Nullverweises kann nicht abgerufen werden.)
The UI isn't rendered at the time of the exception.
Nebula opens but is writeable.
If I call the function via a button (UI is already rendered) there is no error.
So how to handle a readonly editor properly?
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
The question is at what time you are trying to set the editor readonly. It only works after the initialization is done. IIRC you need to use a ProgressListener and call setReadOnly() on completed.
I already tried it that way - no success unfortunately. the ProgressListener is „ready“ but the UI isn‘t drawn yet.
I also tried it with a workaround directly from the ckeditor community with a check for CKEDITOR.status - it’s loaded but the error from above is the same.
I am trying to disable the RichTextEditor in some cases. When doing so after initializing the Editor I get an exception (roughly translated).
org.eclipse.swt.SWTException: Property "setReadOnly" of undefined or null cannot be called
(org.eclipse.swt.SWTException: Die Eigenschaft "setReadOnly" eines undefinierten oder Nullverweises kann nicht abgerufen werden.
)The UI isn't rendered at the time of the exception.
Nebula opens but is writeable.
If I call the function via a button (UI is already rendered) there is no error.
So how to handle a readonly editor properly?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: