This looks like a validation issue - TinyMCE is recognizing the characters
as invalid and escaping them. You could try looking at the tinyMCE
documentation to see if there is a config setting to change this.

Blair

On 4/14/07, Ratfish <[EMAIL PROTECTED]> wrote:
>
>
> I'm using TinyMCE's mceInsertContent command to insert an image into
> my textcontrol.  When I do, I'm finding that the "{" and "}" are being
> encoded.  For example, "{" is being encoded into "%7B".  Anyone know
> how to keep that from happening?
>
> Here's the execCommand call I'm making:
>
> tinyMCE.execCommand('mceInsertContent', false, '<img src="{![' +
> selectedValue + ']!}" alt="' + selectedText + '" />');
>
> My configuration is below.  Thanks.
>
> Aaron
>
> ===================================================================
> tinyMCE.init({
>            mode : "exact",
>            elements : "tbxMessageText",
>            plugins : "table",
>            theme : "advanced",
>            theme_advanced_buttons1 :
>
> "fontselect,fontsizeselect,formatselect,bold,italic,underline,strikethrough,separator,sub,sup,separator,cut,copy,paste,undo,redo",
>            theme_advanced_buttons2 :
>
> "justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,anchor,image,separator,table,row_props,cell_props,separator,code",
>            theme_advanced_buttons3 : "",
>            theme_advanced_toolbar_location : "top",
>            theme_advanced_toolbar_align : "left",
>            theme_advanced_path_location : "bottom",
>            valid_elements: "*[*]",
>            preformatted : true
>    });
>
>
> >
>

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

Reply via email to