user_can_richedit filter and HTML
-
When I apply a filter to disable rich editing using user_can_richedit filter, when the post is saved, and if it contains a textarea HTML tag, the closing textarea is not preserved.
The formatting is preserved if I don’t disable rich editing using the filter and use the normal WordPress “Text” tab.
Why is calling the user_can_richedit filter and setting it to false, screwing up the HTML code?
e.g.
add_action( 'admin_head', 'my_handler' ); function my_handler(){ add_filter('user_can_richedit',create_function(null,'return false;'));}
Then try to edit and save a page with a simple textarea HTML box in it.
<h1>this is a test</h1> <textarea cols="40" name="myname" rows="5">Now we are inside the area - which is nice.</textarea>
The result chops off the closing textarea tag and for larger HTML pages.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘user_can_richedit filter and HTML’ is closed to new replies.