我创建了一个wp_editor
在管理员上具有的自定义插件,现在当我将一些 html 标签放入编辑器中的Text
视图选项卡中<br>
并单击Visual
选项卡时,当我返回选项卡时<br>
转换为。<p> </p>
Text
这是我的 php 代码:
$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 );
我单击返回Text
选项卡,然后<br>
消失并替换为<p> </p>
有没有办法在放置<br>
时保留它<br>
?