UserControl with enabled property set to False doesn't disable CKEditor

Answered
0
0

Hi, not sure if this is a bug or something I should change/do with the CKEditor extension but when you create a UserControl with a CKEditor and set the Enabled property of that UserControl to False it doesn’t disable the CKEditor.

 

Version used is 2.5.24

Attached a sample

 

Thanks Vincent

  • You must to post comments
Best Answer
0
0

Hi Vincent,

not a bug, the Enabled property is just not wired to the custom editor.
But it´s up to you to handle it. You can e.g. handle the EnabledChanged event and set the readonly property of the CKEditor instance accordingly.

Since Enabled and ReadOnly in general are not necessarily the same, we don´t wire it automatically.

Please find a simple sample attached.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Thanks, I will give it a go. I recently learned how to wire events (I added the KeyUp event in the CKEditor, also noticed that had also been done on github now a few weeks ago).

Even tho its not a bug, when you “see” the enabled parameter one might think it actually does something. I do know thats now how it works with extensions 🙂

Thanks for the sample!

Vincent

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.