Reputation: 73
I need to use a HTML editor for my symfony project . Therefore I have used tinyMCE Editor with sfFormExtraPlugin .
These are the steps I have followed
php symfony plugin:install sfFormExtraPlugin
web/js
'text' => new sfWidgetFormTextareaTinyMCE(array()),
But when I saving values it both diplays and saving inside db with html tags... how can I stop this ?
OR is there any other way to use HTML editor with symfony ?
Upvotes: 0
Views: 1630
Reputation: 22756
In fact, that's the purpose of TinyMCE: provide a user friendly interface to built rich text. Then it saves the html into your database and you won't have to parse it again when you will have to show the content.
But if you want to use a different approach, you can use markdown (used in many project like Github or even here). There are different plugin to achieve markdown integration:
Upvotes: 2
Reputation: 854
If you don't want to save HTML tags, why do you use a sfWidgetFormTextAreTinyMCE?!
Just use a text area...
Upvotes: 2