开发者

Symfony TinyMCE Widget sfWidgetFormTextareaTinyMCE will show code at the end

I'm working on my first symfony project (it's great !), i am using the sfWidgetFormTextareaTinyMCE widget for a form in the backend (to display the WYSIWYG). It works fine, but at the frontend, instead of showing me the formated text, i have the strong,p,... tags开发者_开发百科 in the text. Same if i paste a youtube code for example.

Does someone knows how i could solve this issue ?

Thanks in advance.

Julien


so these strongs and p's... did you create them in WYSIWYG mode on the back end or did you try and paste actual code into the editor? To cut and paste code you need to be in source mode. Other wise you need to use the controls for bold on the tool bar and and line breaks for the p's.

If you used source mode, make sure strong and p are configured to be allowed by tinyMCE - i thought they were by default, but maybe not.


Thank's for your answer. Actually i justed used the $object->getRaw()->getValue() method instead of $object->getValue() and i got the "raw" result. In fact it was properly saved in the database, i just didn't knew how to avoid the auto escaping.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜