michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

Acumulative slashes on wp_editor #214

Closed SUGO-es closed 9 years ago

SUGO-es commented 9 years ago

Hi,

have put a TinyMCE editor in a taxonomy, I realized that I always keep slapshes added to resave values.

[Youtube id = //// "9dbme8bmiBs ////"]

I've solved by changing the code in AdminPageFramework_FieldType_textarea.php to:

Line 447: wp_editor(stripslashes($aField['value']) , $aField['attributes']['id'], $this->uniteArrays(( array )$aField['rich'], array('wpautop' => true, 'media_buttons' => true, 'textarea_name' => $aField['attributes']['name'], 'textarea_rows' => $aField['attributes']['rows'], 'tabindex' => '', 'tabfocus_elements' => ':prev,:next', 'editor_css' => '', 'editor_class' => $aField['attributes']['class'], 'teeny' => false, 'dfw' => false, 'tinymce' => true, 'quicktags' => true)));

I hope if this is a favorable solution, the inclusion in the next version.

best regards

michaeluno commented 9 years ago

I could confirm the problem. Thanks for the report.

I've uploaded 3.5.10b so you may try that and let me know if that fixes the issue.

SUGO-es commented 9 years ago

Hi,

The compiled version 3.5.10b. for my plugin and tested, it works correctly.

Michaeluno Many thanks.