WordPress.org

Ready to get started?Download WordPress

Forums

Easy Custom Fields
WYSIWYG Editor Field (2 posts)

  1. belchandan
    Member
    Posted 1 year ago #

    I tried to create custom-field with wysiwyg editor, getting the editor on the edit page as well, however content set there is showing html tags under visual tab and when we switch to html tab, it convert those html entities, e.g. '<' to & gt ;

    I am using wp_editor function to print the field in the form, sample code below:
    wp_editor( $value, $id, array('wpautop'=>false, 'media_buttons'=>true, 'textarea_name'=>$id, 'tabindex' => 2 ) );

    I think, the way I am setting the value in editor in not correct.

    Please suggest me the right way for that.
    Thanks

    http://wordpress.org/extend/plugins/easy-custom-fields/

  2. belchandan
    Member
    Posted 1 year ago #

    Got it used php function html_entity_decode to decode content back, I think Easy_CF_Field's get function encode the value.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic