-
Hello, can you help me solve the problem I fed back yesterday?
Under group'sanitize'= > false does not work.
Write this code and refresh the page after saving. The code will disappear.
<view style="display:flex;" ><view>
CopyCopied!. .. ... 'id' => 'forum_modules', 'type' => 'group', 'button_title' => '+ 添加新模块', 'accordion_title_auto' => 'true', 'sanitize' => false, // <------------------------------ It must here. 'fields' => array( array( 'id' => 'opt-code-editor-1', 'type' => 'code_editor', 'title' => 'Code Editor', 'subtitle' => '<strong>Default Editor</strong> Using: theme: default and mode: htmlmixed', ), ), ), . .. ...
CopyCopied!Posted 1 year ago # -
Hi,
I haven't any idea really, It works correctly in my side.
Hey, I have created "textarea" and "code_editor" in demo. You can test it on: http://codestarthemes.com/plugins/codestar-framework/wp-login.php?login=demo
Btw, my code is like this:
CSF::createSection( $prefix, array( 'title' => 'Jianbo', 'icon' => 'fas fa-check', 'fields' => array( array( 'id' => 'opt-textarea-without-sanitize', 'type' => 'textarea', 'title' => 'Textarea without sanitize', 'sanitize' => false, ), array( 'id' => 'opt-code-editor-without-sanitize', 'type' => 'code_editor', 'title' => 'Code Editor without sanitize', 'sanitize' => false, ), array( 'id' => 'opt-group-without-sanitize', 'type' => 'group', 'title' => 'Group', 'sanitize' => false, 'fields' => array( array( 'id' => 'opt-text', 'type' => 'text', 'title' => 'Text', ), array( 'id' => 'opt-textarea-100', 'type' => 'textarea', 'title' => 'Textarea without sanitize', ), array( 'id' => 'opt-code-editor-100', 'type' => 'code_editor', 'title' => 'Code Editor without sanitize', ), ) ), ) ) );
CopyCopied!Regards, Codestar
Posted 1 year ago # -
Hi, I am also experiencing the same issue.
My field code:
array( 'id' => 'opt-navbar-extra-custom', 'type'=> 'code_editor', 'title' =>'Custom HTML', 'sanitize' => false, ),
CopyCopied!I am trying to just save this:
<iframe src="#"></iframe>
CopyCopied!I tried your 'jianbo' demo and it seems to work. But it does not work for me. I have the latest WP 6.0.
Regards
StephanPosted 1 year ago # -
Hi,
I haven't any idea really. maybe it's a server provider security policy
Regards, Codestar
Posted 1 year ago #