Print Page | Close Window

add custom icon

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=25006
Printed Date: 28 March 2026 at 6:02am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: add custom icon
Posted By: s80ts0465
Subject: add custom icon
Date Posted: 13 December 2007 at 4:09pm
I'd like to add an icon on your toolbare. The icon should write on the text area the value of a variable.
How can i make it? Obviously the variable is setted Big%20smile

Something like the list botton that write the html code in teh text area. Which files have i to modify??

Bye Bye



Replies:
Posted By: Nalfaren
Date Posted: 30 January 2008 at 2:11pm
Hello,
i have added my own third toolbar that adds some of my own dynamic functions like
image slideshows and image gallerys, news module and such. You need to edit
some more files so that it hides the third toolbar when using "html only" button.

In RTE_toolbar_inc.asp you could add something like below at the bottom.


'***********************************
'****    RTE Toolbar EXTRA    ****
'***********************************
Response.Write(vbCrLf & "    document.writeln('</span><br />');")
Response.Write(vbCrLf & "    document.writeln('<span id=""ToolBar3"">');")

Response.Write(vbCrLf & "    document.writeln('<img src=""" & strRTEImagePath & "toolbar_separator.gif"" align=""absmiddle"" />")

'Add buttons here, edit onClick link to a function that edits the textarea
Response.Write("<img src=""" & strRTEImagePath & "toolbar_image.gif"" align=""absmiddle"" border=""0"" onClick=""javascript:;"" title=""" & strTxtAboutRichTextEditor & """ class=""WebWizRTEbutton""  />")

Response.Write("');")
Response.Write(vbCrLf & "    document.writeln('</span>');")




In RTE_javascript.asp you should add the third toolbar in the function function HTMLview()

editor.contentWindow.document.body.innerHTML = html;
document.getElementById('ToolBar1').style.visibility='visible';
document.getElementById('ToolBar2').style.visibility='visible';
document.getElementById('ToolBar3').style.visibility='visible';



Hope i helped you along






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net