Print Page | Close Window

Block code

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=14177
Printed Date: 29 March 2026 at 2:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Block code
Posted By: simoza
Subject: Block code
Date Posted: 09 March 2005 at 5:23pm
Hy All, is it possible to add in RTE the possibilty for insert a block Code adding an icon?
 
So when the message is insered inn the database, a part of it can is between tag code like this:
text text text
text
 
 


-------------



Replies:
Posted By: dj air
Date Posted: 09 March 2005 at 5:25pm
because those are specialised features you would have to MOD that into the RTE,

the RTE is a basic appllication so it can run under lots of different situations without to many modifications.,

so as said you would have to MOD that into the application.. take a look at the forum code to  see how the feature is used within the forum.



Posted By: simoza
Date Posted: 09 March 2005 at 6:22pm
OK I hope to realyze the MOD, then post here the code modification and wait for your permission and validationWink
Thanks


-------------


Posted By: simoza
Date Posted: 10 March 2005 at 10:34am
I try to understand the scrypt code for icons command.
But I don't know Scrypt language and I have some problems.
I would only that, when i click on an icon, in the textarea appeare the [code][/code] text.
So inside i can write the code.
 
If it possible and I have just write some parts of text, when i select with mouse the text, and click the icon, before and after the text appeare
text text text
.
 
Can you help me?


-------------


Posted By: simoza
Date Posted: 22 March 2005 at 6:33pm
Well, I've done a code like this:
<script language="javascript">
  function TagCode() {
 var testo="Text_Text";
if (document.form1.textarea1.value =="")
      document.form1.textarea1.value=testo;  
     else
      document.form1.textarea1.value+="\n"+testo;
  }
</script>
</head>
<body>
<form name="form1">
<textarea name="textarea1" cols="40" rows="10">
</textarea>
<a href="#" onclick="TagCode();">click here</a>
When I try this it goes correctly.
Now I have add an icon in RTE_toolbar_inc in this way:
If blnCode Then
 Response.Write(vbCrLf & " document.writeln('<img src=""" & strRTEImagePath & "toolbar_separator.gif"" align=""absmiddle"">")
 Response.Write("<img src=""" & strRTEImagePath & "icon_code.gif"" align=""absmiddle"" border=""0"" onClick=""TagCode();"" title=""" & strTxtCode & """ class=""WebWizRTEbutton"" onmouseover=""overIcon(this)"" onmouseout=""outIcon(this)"">")
 Response.Write("');")
End If
Now in which way I must insert, in RTE_javascript.asp my java code to work correctly?


-------------


Posted By: simoza
Date Posted: 28 September 2005 at 9:40am
up?Dead

-------------



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