Alan2
Alan2

Reputation: 24572

How can I stop tinymce from adding <!DOCTYPE html><html><head></head><body> to everything I enter?

I am using TinyMCE as the editor for a field in my database. When I use it and add the text "abc" then this is what gets stored in the database:

<!DOCTYPE html><html><head></head><body><p>abc</p></body></html>

How can I stop TinyMCE from adding everything around the <p> tags?

Upvotes: 17

Views: 11951

Answers (2)

jaya
jaya

Reputation: 61

remove fullpage from plugin plugins: [ "advlist autolink autosave link image lists charmap print preview hr anchor pagebreak spellchecker", "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "table contextmenu directionality emoticons template textcolor paste textcolor colorpicker textpattern" ],

Upvotes: 6

liyakat
liyakat

Reputation: 11853

maybe this can help , it's when i have add the plugin : fullpage , add the properties button

or hold of a plugin called FullPage.js for TinyMCE.

hope this will help you.

Upvotes: 46

Related Questions