0

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.

3
  • 1
    Why don't you make your own youtube.com/watch?v=SSAQK4Nwkm4 Commented Jun 5, 2015 at 12:00
  • What kind of PHP support do you need? Snippets or real, actual PHP? If it's just snippets I would definitely go with CKE and custom widgets. Commented Jun 5, 2015 at 12:29
  • Nope, I need real (actual) support. :) Commented Jun 5, 2015 at 14:08

1 Answer 1

1

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 ;)

Sign up to request clarification or add additional context in comments.

14 Comments

so try force_br_newlines : false, or with version 3.x forced_root_block: ''; tinymce.com/wiki.php/Configuration3x:force_br_newlines
do you set the configs inside the init() method of tinymce?
if you use version 3.x delete force_br_newlines and force_p_newlines. Just use forced_root_block: '' in this case. otherwise (if you use tinyMCE 2.x or lower) delete the forced_root_block: '' and keep the other two functions.
i can not really see anything in the video, because the quality is not that good...whats the line @ 20 seconds?
hum, ok, but what is the problem? the wysiwyg editor needs a <br> or a <p> tag to do a linebreak inside the editor. How else should the editor display, "what you see" inside him? you know what i mean?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.