fdz
fdz

Reputation: 73

How to use tinyMCE with symfony 1.4?

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

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

Answers (3)

user3214151
user3214151

Reputation: 1

sfOutputEscaper::unescape("Escaped Text");

Upvotes: -1

j0k
j0k

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

ilSavo
ilSavo

Reputation: 854

If you don't want to save HTML tags, why do you use a sfWidgetFormTextAreTinyMCE?!
Just use a text area...

Upvotes: 2

Related Questions