1

I use tinyMCE with some ajax functions. I have my own button to save content, when the user presses on it using tinyMCE.activeEditor.getContent() I get content and send it to the server. I also use my own bbcode plugin to convert content from html to bbcode before saving. But the problem is when user uses some Accented Characters like ö,ä,ü tinyMCE.activeEditor.getContent() transforms it to ö,ä,ü. I tried to use tinyMCE.activeEditor.getContent({format : 'raw'}) but in this case bbcode is not working. It means from

  • Wir müssen uns treffen

we have
<ul><li>Wir müssen uns treffen</li></ul>

But i want to get it with bbcode
[ * ]Wir müssen uns treffen[ /* ]

4

1 に答える 1

1

Looks like you will have to employ a conversion function on the server side then that will replace &ouml;,&auml;,&uuml; etc... with their real character.

于 2012-07-30T09:22:20.323 に答える