0

I am using ckeditor which was working fine when I used it with grails 1.3.7. Now I upadated my codebase to grails 2.2.4 & ckeditor is giving me some issue.

When I write someting & use toolbar to format it, I get output containing html tags. For e.g.

I select bold & write something 'This is a text' it produces output

<b> This is a text </b>

Is there anything I should add in config to make it work?

4

2 回答 2

1

尝试这个。

<ckeditor:editor name="${name}" height="100px" width="98%" toolbar="Mytoolbar">

    ${myText?.decodeHTML()}

</ckeditor:editor>

它会给你想要的任何输出。

享受。

于 2013-10-22T10:06:28.527 回答
0

这是我的文本(data.bodyText)

<p><br/>Hi<br/> Long Text... &amp;nbsp;&lt;em&gt

删除我使用的所有 html 标签

$('<div/>').html(data.bodyText).text()
于 2013-10-23T07:21:51.513 回答