Ck editor is bind to text area, and text area has property of Enable (Which asks true or false value).
when we set that text area's enable property to false, ck editor opens with all buttons disabled (non editable mode)
and vice versa.
It means that Text area's Enable property works on CK editor.
but ,
when we assign that enable property on the basis of data actions output (CheckAdminRole.HasRole), according to roles it doesn't work, why?
Need to know, how to disable ck editor (open it in non editable mode)?????
Hi Mohd
You should place your ckeditor block inside an IF condition binded to the data action IsDataFetched property. This is my best guess without seeing your code, hopefully this helps solving your issue.
Cheers
Hello Ruben,
Your solution worked, but it raises an error.
Did you have any idea how to resolve this.
Thanks
Mohd
You can include in the advanced configuration from CK. The read-only mode.And you can turn dynamic also with variables if need it.You can see the documentation in CKEditorLink : https://ckeditor.com/docs/ckeditor4/latest/features/readonly.html
Infos:
https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-readOnly
https://ckeditor.com/latest/samples/toolbarconfigurator/index.html#basic
Regards
I'm glad it helped :)
It appears you are trying to interact with the component before its in the screen, maybe you are using the action SetEditorData? Do you need to use it? I never used it, in my use cases the input is using the Aggregate or Data action directly. If you really need then try to use it on the OnAfterFetch of the Data Action that gets your role.
It worked,
Thanks Alot !!
Hii Ruben,
@Ruben Meireles
Did you have any idea about this error???