google-code-export / gwt-ckeditor

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

CKEditor in readonly mode #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like please to set the CKEditor in readonly mode. I don't know how to 
do that from my CKEditor instance. I used setDisabled(true) but this is not 
working. I know by changing the html code and setting contenteditable to false 
this will work. 
<html dir="ltr" lang="fr" contenteditable="true">
... 

But how to do that from CKEditor?

Any help please?

Best regards

J. R.

Original issue reported on code.google.com by jilali.r...@gmail.com on 24 Jul 2012 at 7:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I've forked this repository into https://github.com/cirovladimir/gwt-ckeditor 
and added this feature

You can see changes to CKConfig class in this commit
https://github.com/cirovladimir/gwt-ckeditor/commit/79a39e68a7baaba970180fc060aa
e3fdec0fd508

And you use it like
CKConfig config = new CKConfig();
config.setReadOnly(true);
CKEditor editor = new CKEditor(config);

Original comment by cirovlad...@gmail.com on 4 Oct 2013 at 5:58