-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Dear, I've need to configure CKEditor from viewmodel in Java (not in Javascript).
I've try this and it is works well:
import org.zkforge.ckez.CKeditor;
@Wire
CKeditor myCKeditor;
Map<String, Object> myConfig = new HashMap<String, Object>();
myConfig.put("readOnly", true);
myConfig.put("uiColor", "#ff0000");
myCKeditor.setConfig(myConfig);
But I not able to configure and modify toolbars. In particular I've need to display only the bold button and nothing else.
About some previous suggests, I add:
For example, if i must have two CKEditor IN THE SAME PAGE, one of this readonly, I tried use two different js configuration files but this it's not work well. Sometime the second configuration file wins and overwrites settings of first file.
So, for this reasons, i've try another approch and configure my two CKEditor from java, it seem work well.
Now there are two possibilities:
Somebody can help me ?
Thanks, Rinaldo
Asked: 2013-11-14 09:59:54 +0800
Seen: 21 times
Last updated: Nov 14 '13