Hi,

have you tried:

function transformTinyMCE(div) {
  var html = "<b>no!</b>".unescapeHTML();
  Element.replace(div,html);
}

More:
http://prototypejs.org/api/string/unescapeHTML

2007/9/19, noc <[EMAIL PROTECTED]>:
>
> Hi,
>
> iv found an bug replacing textarea-tag-elements.
> Have a look at this:
>
> <html>
> <head>
>  <script src="prototype.js" type="text/javascript"></script>
> </head>
> <body>
> <script>
>   function transformTinyMCE(div) { Element.replace(div,"<b>no!</
> b>"); }
> </SCRIPT>
> <textarea name="aha" onclick="transformTinyMCE(this)">jipii</textarea>
> </body>
> </html>
>
> The resulting htmlcode will be:
> ...</script>&lt;b&gt;no!&lt;/b&gt;</body>...
> buggy in SeaMonkey 1.1.4 and Firefox 2.0.0.5.
> NOTICE: Bug does not occour in Internet Explorer 6!
>
>
> >
>



-- 
******************************************
Jussi Salminen
[EMAIL PROTECTED]
+358 45 630 1723

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to