michaelyah / gwt-ckeditor

Automatically exported from code.google.com/p/gwt-ckeditor
0 stars 0 forks source link

Add disabled support #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add a way to disable the whole component, preventing any interaction with
it like setDisabled(true).

Original issue reported on code.google.com by uranio...@gmail.com on 7 Apr 2010 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by picard.d...@gmail.com on 10 Apr 2010 at 8:28

GoogleCodeExporter commented 9 years ago
Committed to SVN trunk and will be integrated in the next release.

CKEditor doesn't implement a setDisabled function, since the estimate that 
loading a 
CKEditor instance for nothing is a waste of ressources.

So when you will call the setDisabled(boolean disabled) function from 
gwt-ckeditor 
with parameter true, you must know that your instance of CKEditor will be 
destroyed 
and replaced by an HTML object.

There is for the moment no styles applied to this HTML, but you can apply them 
yourself by overriding the "GWTCKEditor-Disabled" style.

Original comment by emmanuel...@gmail.com on 20 Apr 2010 at 7:41