I create a custom plugin that has a wp_editor
on the admin, now when I put some html tags in the editor in Text
view tab like <br>
and click on the Visual
tab.. the <br>
converts into <p> </p>
when I back to Text
tab.
this is my php code:
$html_value = '<h1>test</h1><br> ....';
$settings = array( 'textarea_name' => 'al_srms_fileform_content', 'media_buttons' => true, 'wpautop' => false );
wp_editor($html_value, 'mycustomeditor0pdf', $settings );
this is what happening:
I put <br>
tag by Text
tab.
I click Visual
to display the result.
I click back the Text
tab and the <br>
is gone and replaced by <p> </p>
is there a way the when putting a <br>
it remains <br>
?