[wp-trac] [WordPress Trac] #20901: Taxonomy descriptions should be TinyMCE editable
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 6 18:10:44 UTC 2012
#20901: Taxonomy descriptions should be TinyMCE editable
--------------------------+------------------------------
Reporter: joostdevalk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by wonderboymusic):
I just messed around with this - it's pretty easy on {{{edit-tag-
form.php}}}, since the page reloads with the form submit:
{{{
<?php
wp_editor( $tag->description, 'description', array( 'textarea_rows' => 5 )
)
?>
}}}
It's harder on {{{edit-tags.php}}} because you have to mess with
{{{wplink.js}}} to get the form submission to work, and you have to alter
the editor so it fits in the space. You also have to decide whether to
parse the data that is displayed in the list table in the description
column:
{{{
<?php
wp_editor( '', 'tag-description', array(
'textarea_rows' => 5,
'quicktags' => array( 'buttons' =>
'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ),
'tinymce' => array(
'theme_advanced_buttons1' =>
'bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,
|, spellchecker,wp_adv',
'theme_advanced_buttons2' =>
'formatselect,underline,justifyfull,forecolor,|,charmap,|,outdent,indent,|,undo,redo,wp_help',
'theme_advanced_buttons3' => '',
'theme_advanced_buttons4' => '',
)
) ) ?>
}}}
{{{wplink.js}}} is in a weird limbo state - see #21152
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20901#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list