Is there a way to disable a CKeditor instance (i.e. make it read-only) and then enable it? -


i'm working on webapp want have inputs disabled, initiate ajax request populate components inputs belong to, , enable inputs live after data has been populated.

is there way or comparable can done ckeditor? if worst comes worst can have textarea disabled , call ckeditor.replace() when data ready populate it?

are there options temporarily read-only ckeditor instance made editably subsequent call?

thanks,

there's method editor.setreadonly() allows enable , disable read-only mode. there's config option config.readonly allows set initial state of feature.

usage simple:

editor.setreadonly( true ); // enable ro mode. editor.setreadonly( false ); // disables ro mode. 

see live sample.


Comments