Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mark Ritter on Jun 15, 2009 16:56
open dhtmlx forum
Editor and Color Picker

Could the editor be updated to allow a button to be toggled (displayed or not) to open the color picker?

editor.showColorPicker();

I think a lot of people would find it useful.
Answer posted by Alex (support) on Jun 16, 2009 02:43

Hello, 

You can try to add the additional button to the editor toolbar using the approach that described in the post http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=9325

Also using onClick event handler of toolbar you can call the necessary function:

editor.tb.attachEvent("onClick",function(id){
  if(id=="cp") showColorPicker();
 })

Answer posted by Mark Ritter on Jun 18, 2009 18:03

Cool.  I will try that.  BTW, will the editor show colors in the text?  I have not tried it yet.

Also, if there will be a next version, how about adding:

Insert hyperlink

Insert email link

Insert image

Quote block

Code block

A Drop-down combo with "standard" web fonts

Instead of H1-H4 buttons, combo box called Sizes, with 1-7 and show how big they are

Super- and sub-script, increase and decrease indent, strike-through, could be in a combo.  Not very commonly used items.

 

It would have to be 2 rows tall to handle all of this, but would greatly improve it.  All your other modules are fully feature loaded, please update this one.

 

Answer posted by Alex (support) on Jun 19, 2009 02:48

Hello, 

editor API doesn't allows to change colors of the text.

The nearest release won't include the described features

Answer posted by Mark Ritter on Jul 17, 2009 10:09

When first start typing text, works fine.  Hit H1, type some more.  Decide to erase it all, but now I can't get out of H1 (or other).  If I hit H1 button again it won't turn off.  Maybe add a button to get back to normal text/size also?

 

Answer posted by Mark Ritter on Jul 19, 2009 08:32

The bullet and number lists don't work, either.  Even the demo on the web site.

Nor do anything in the one in the forum editor.

 

Answer posted by Mark Ritter on Jul 19, 2009 08:38

Never mind.  I figured it out.  You have to type something, highlight/select it, then hit one of the buttons.  That is very confusing.

I want to keep using your editor, but TinyMCE does this so much better.

 

Answer posted by Alex (support) on Jul 20, 2009 02:58

Hello, 

please, try to use attached file instead of the original one. Probably it'll fix the issue with lists.

Regarding h1-h4 buttons... unfotunately, editor doesn't support functionality that allows to clear H formatting

Attachments (1)
Answer posted by Mark Ritter on Jul 20, 2009 17:44

That is much better! Thank you!  Keep up the awesome work!