trsteel88 / TrsteelCkeditorBundle

Symfony2 bundle for easy integration of the CKEditor WYSIWYG
97 stars 58 forks source link

Styles not changed #40

Closed ajeetvarma closed 11 years ago

ajeetvarma commented 11 years ago

I m using the "trsteel88 / TrsteelCkeditorBundle" in a Symfony 2.1 project which is related to Job Portal . In the project a "candidate" entity has been created in which I have made a text field "resume_summary" . I installed the "trsteel88 / TrsteelCkeditorBundle" and configured as given in "github" tutorial and used in "CandidateType " form as $builder->add('resume_summary','ckeditor'). It works fine , but problem is that when I fetch the "resume_summary" field in twig(show.html.twig) as {{ entity.resumesummary }} it does not shows the "style changed of character value". suppose I typed a word "First Resume " and with help of ckeditor I made that word as "strong" & "italic" , and saved in database . but when I fetched the data it is coming as " First Resume " instead of First Resume .

Please help in this issue . Thanks in advanced .

Thanks & Regards

Ajeet Varma New Delhi , India

trsteel88 commented 11 years ago

What does the data look like in your database?

FYI you will need to use the raw filter for any html content you display in twig. So it would be:

{{ entity.resumesummary | raw }}

ajeetvarma commented 11 years ago

Thanks a lot , Now it works !