I need a very basic editor, similar to the editor in this sample:
dhtmlx.com/docs/products/dht … ntent.html
Thanks.
I need a very basic editor, similar to the editor in this sample:
dhtmlx.com/docs/products/dht … ntent.html
Thanks.
There are 2 steps:
Even though I’m using the compiled dhtmlx.js the hideItem method works great! Thanks. Do you know if there is a way to loop through all the toolbar items and hide them? If not I can explicitly do it for each editor, not a big deal.
You can only use forEachItem(handler) method and then show only the items you need.
What exactly am I supposed to do?
These don’t work:
editor.tb.forEachItem(hideItem());
editor.tb.forEachItem.hideItem();
You need the next:
editor = new dhtmlXEditor("editorObj");
toolbar = editor.tb;
toolbar.forEachItem(function(itemId){
toolbar.hideItem(itemId);
});
toolbar.showItem("applyItalic");