160
Views
6
Comments
Solved
[CKEditor.Reactive] How to disable CK editor.
ckeditor-reactive
Reactive icon
Forge asset by Fábio Fantato
Application Type
Reactive

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)?????

2021-03-08 09-24-09
Rúben Meireles
Solution

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

2025-09-21 06-51-05
Mohd Anees Mansoori

Hello Ruben,

Your solution worked, but it raises an error. 

Did you have any idea how to resolve this.



 Thanks 

2019-11-08 16-23-42
César Mateus Conceição

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 CKEditor
Link : 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

2021-03-08 09-24-09
Rúben Meireles
Solution

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

2025-09-21 06-51-05
Mohd Anees Mansoori

Hello Ruben,

Your solution worked, but it raises an error. 

Did you have any idea how to resolve this.



 Thanks 

2021-03-08 09-24-09
Rúben Meireles

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.

Cheers

2025-09-21 06-51-05
Mohd Anees Mansoori

It worked,

Thanks Alot !!

2025-09-21 06-51-05
Mohd Anees Mansoori

Hii Ruben,

@Ruben Meireles 

Did you have any idea about this error???

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.