Wysiwyg editor with php/html support (without breaking the code)

1.1k views Asked by At

I search for wysiwyg editor with fully support of HTML and PHP. I dont want extra p and b tags after php start tag and before close tag. I prefer to work with PHP to get the content with $_POST. I don't want ajax methods.

I test some editors all morning and cannot find proper.

I tested this editors: uEditor (baidu), htmlphpeditor, ckeditor, tinyMCE, Line control and some others... Every of them added extra tags in php/html code. I catch the content with $_POST. I read a lot of alternatives to strip br/p tags for ckeditor and tinymce, but without success. When i strip p - br is show and cant remove'em.

I want simple editor with php/html support and some useful bbcodes in toolbar.

1

There are 1 answers

14
messerbill On

i think tinyMCE is the best wysiwyg editor for web platforms. i use it too with my php framework. You can configure this tool very nice and ofc you also can disable those tags.

force_p_newlines : false

http://www.tinymce.com/wiki.php/Configuration:force_p_newlines

http://www.tinymce.com/wiki.php/Configuration

read docus :) they are your friend! have a nice sunny day bro ;)