Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - add custom icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedadd custom icon

 Post Reply Post Reply
Author
s80ts0465 View Drop Down
Newbie
Newbie


Joined: 22 July 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote s80ts0465 Quote  Post ReplyReply Direct Link To This Post Topic: add custom icon
    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
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.