Thursday, 15 April 2010

javascript - Font colors set in a textarea created by wp_editor does not stay across updates (but stays correct in database) -



javascript - Font colors set in a textarea created by wp_editor does not stay across updates (but stays correct in database) -

i created meta boxes utilize wp_editor create rich-text fields (which retrieved via wordpress' get_metadata(). when utilize tinymce buttons create word specific color, saves , shows on website color. but when go page editor again, shows in tinymce box black and if click update, makes text show black on website. why not saving color information?

wp_editor( $savedvalue, "mytextbox", array( "wpautop" => false, "media_buttons" => false, "textarea_rows" => 5, "quicktags" => true, "tinymce" => array( "height" => 250 ) ) );

when form submitted, in javascript if check value shows word tags:

<span style="color: #00ffcc">word</span>

but after it's been updated , reloaded tinymce box, it's just:

<span>word</span>

some wordpress code removing quotation marks.

javascript php wordpress tinymce

No comments:

Post a Comment