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?
The TinyMCE getContent and setContent methods You can do this using the getContent() API method. Let's say you have initialized the editor on a textarea with id=”myTextarea”. This will return the content in the editor marked up as HTML.
The Quick Insert toolbar is intended for buttons related to inserting content, but any TinyMCE toolbar buttons or custom toolbar buttons are allowed. To disable the Quick Insert toolbar, set quickbars_insert_toolbar to false .
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.
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" ],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With