Easy Custom Fields
WYSIWYG Editor Field (2 posts)

  1. belchandan
    Posted 4 years 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.


  2. belchandan
    Posted 4 years 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

  • Easy Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic