DFW: add Blockquote button, enable After the Deadline button if plugin is installed, set button state, see #17136

git-svn-id: https://develop.svn.wordpress.org/trunk@17852 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-05-10 23:21:34 +00:00
parent 0cfe07e299
commit 6b810b990f
10 changed files with 78 additions and 29 deletions
+15
View File
@@ -419,6 +419,21 @@ PubSub.prototype.publish = function( topic, args ) {
tinyMCE.execCommand('unlink');
}
api.atd = function() {
if ( s.has_tinymce && 'tinymce' === s.mode )
tinyMCE.execCommand('mceWritingImprovementTool');
}
api.help = function() {
if ( s.has_tinymce && 'tinymce' === s.mode )
tinyMCE.execCommand('WP_Help');
}
api.blockquote = function() {
if ( s.has_tinymce && 'tinymce' === s.mode )
tinyMCE.execCommand('mceBlockQuote');
}
api.refresh_buttons = function( fade ) {
fade = fade || false;