New Button problem
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=28371
Printed Date: 28 March 2026 at 6:03am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: New Button problem
Posted By: remusmania
Subject: New Button problem
Date Posted: 28 February 2010 at 9:45pm
when i press the button, want to write for
example [download] or [demo] in the textarea.
added :
includes/RTE_toolbar_inc.asp
line: 172
%>
document.writeln('<img src="<% = strRTEImagePath
%>toolbar_separator.gif" align="absmiddle"><img
class="WebWizRTEbutton" width="20" height="20"
onmouseover="overIcon(this)" onmouseout="outIcon(this)" src="<% =
strRTEImagePath %>my_icon.gif" align="absmiddle"
onclick="FormatText(\'myLink\');">')
<%
and icon appeared
on the tool bar.
added :
RTE_javascript.asp
line: 320
%>
else if (command == "myLink") {
insertLink
=
prompt("Adress", "http://");
if ((insertLink != null) && (insertLink != "")) {
editor.contentWindow.focus()
editor.contentWindow.document.body.innerText =
editor.contentWindow.document.body.innerText + '[DEMO]' + insertLink +
'[/DEMO]';
editor.contentWindow.focus();
}
}
<%
When i enter a link , Write in the textarea :
[DEMO] http://mysite.com [/DEMO] but do not...
|
Replies:
Posted By: remusmania
Date Posted: 28 February 2010 at 10:23pm
|
works
in IE but not working Firefox why ? How can we fix this problem?
|
Posted By: WebWiz-Bruce
Date Posted: 01 March 2010 at 2:37pm
Looks like you are coding for IE.
IE uses it's own horrible buggy code. Other browser uses standards compliant code, which means that if it doesn't work in Firefox it won't work in Chrome, Safari, or Opera either.
What you will probably need to do is write one lot of code for IE and a different lot of code for all the other browsers.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: remusmania
Date Posted: 01 March 2010 at 2:46pm
|
fixed problem :) "innerText" change "textContent"
|
|