HELP… how to input content with "returns" (or "shift-returns") ?
-
Hi,
Help !! I’m turning in circles for hours !
WP 3.9.9, WP Edit 3.5 Classipress 3.3.3
When I modify a post with the dashboard editor, all runs well.
A “return”, or “shift-return” is well recorded on the db (wp_posts table), displayed on the post, and input on the WP EDIT content area.But when I modify the same post using the Classipress screen, these “returns” are not input in the WP EDIT content area …
The code in classipress php file is :
wp_editor( $content, ‘post_content’, cp_get_editor_settings() );I’ve checked that :
$content : “returns” are well present, (hex 0a0d are visible with echo bin2hex($content); )
cp_get_editor_settings() : a var_dump gives that :- array(6) { [“wpautop”]=> bool(true) [“media_buttons”]=> bool(false) [“teeny”]=> bool(false) [“dfw”]=> bool(true) [“tinymce”]=> bool(true) [“quicktags”]=> array(2) { [“buttons”]=> string(29) “strong,em,ul,ol,li,link,close” [“drag_drop_upload”]=> bool(true) } }
Behaviour is the same when wpautop = false..
I tried to change ‘post_content’ to ‘content’, <textarea id=”content”> and wp_editor( $content, ‘content’, cp_get_editor_settings() );
>> no change !
How to remove that formating of the content as WP Edit input ??
Thax in advance
JPB
- The topic ‘HELP… how to input content with "returns" (or "shift-returns") ?’ is closed to new replies.