Editor Hide Toolbar or Buttons like in Sample

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:

  1. don’t include dhtmlxeditor_ext.js file (if you don’t use common compilled dhtmlx.js file)
  2. hide the rest buttons using method hideItem(). I.e.
    editor.tb.hideItem(“applyH1”)
    API are match with the methods to call them:
    docs.dhtmlx.com/doku.php?id=dhtm … _functions

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");