Refresh word count when switching editors in DFW.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2baacdb2e
commit
b42b310743
|
@ -213,6 +213,9 @@ PubSub.prototype.publish = function( topic, args ) {
|
|||
}
|
||||
|
||||
$('#' + s.editor_id).val( content );
|
||||
|
||||
if ( 'undefined' != wpWordCount )
|
||||
wpWordCount.wc( content );
|
||||
}
|
||||
|
||||
set_title_hint = function( title ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -96,7 +96,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", array('utils','jquery'), '20110411' );
|
||||
$scripts->add_data( 'editor', 'group', 1 );
|
||||
|
||||
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110512' );
|
||||
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110514' );
|
||||
$scripts->add_data( 'wp-fullscreen', 'group', 1 );
|
||||
|
||||
$scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');
|
||||
|
|
Loading…
Reference in New Issue