Tinymce and HTML tags - Ruby on Rails 4

212 views Asked by At

I am working on Ruby on Rails. TinyMCE converts my HTML tags like:

<span>Hi</span>

to:

"&lt;span&gt;Hi&lt;/span&gt;"

config/tinymce.yml

menubar: false
toolbar:
  - bold italic underline | undo redo
plugins:
- table
  - image
  - link
forced_root_block: ""
force_br_newlines : true
force_p_newlines : false

I have tried setting encoding: false in config/tinymce.yml but it isn't working.

I don't know what setting to change. I read here: https://www.tinymce.com/docs/configure/content-filtering/#encoding that encoding is disabled by default but still it is encoding for me.

Can anyone point the problem!

0

There are 0 answers