Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joel on Oct 14, 2009 15:46
open dhtmlx forum
Text link/Code view in dhtmlxEditor

This might be a stupid question but can the editor have a button for text links/code view?
Answer posted by Alex (support) on Oct 15, 2009 01:18

Hello,

the buttons set is described in the documentation and demonstrated in the editor samples. 

It is possible to add addition button using addButton method of dhtmlxToolbar (editor.tb is toolbar object):

editor.tb.addButton("new", null, "New button", "","");
editor.tb.attachEvent("onClick",function(id){
  if(id=="new"){
      /*some action here*/
  }
})