This topic is locked

Configuring Rich Text Editor (RTE)

6/27/2008 11:47:25 PM
PHPRunner General questions
N
NetHawk author

I'm more or less familiar with the standard RTE from Kevin Roth. I would like to use my own set of icons in the toolbar and basically I know how to do that when I implement the editor in my own pages.
But I can't find the place where the editor instance is defined. I've checked edit.php in phpRunner's source directory. And there is the link to the RTE source, but what's the name of the editor (the objects instance) so I can add/remove icons:
e.g.
var rte = new richTextEditor('rte');

rte.cmdFormatBlock = true;

rte.cmdFontName = false;

rte.cmdFontSize = false;

rte.build();
Would be great if someone could point me in the right direction. Thanks.

Alexey admin 6/30/2008

Hi,
we use older version of RTE and it doesn't support the syntax from your message.

We'll upgrade this library with one of the next versions of PHPRunner.
Right now you can edit writeRTEfunction in the include\richtext.jsfile to remove unnecessary icons from the editor box.