mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Editor API enhancement, first run (still needs some work), see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18498 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
});
|
||||
|
||||
ed.addCommand('wpFullScreenInit', function() {
|
||||
var d = ed.getDoc(), b = d.body, fsed;
|
||||
var d, b, fsed;
|
||||
|
||||
// Only init the editor if necessary.
|
||||
if ( ed.id == 'wp_mce_fullscreen' )
|
||||
return;
|
||||
ed = tinymce.get('content');
|
||||
d = ed.getDoc();
|
||||
b = d.body;
|
||||
|
||||
tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
// Register buttons
|
||||
if ( 'undefined' != fullscreen ) {
|
||||
ed.addButton('fullscreen', {
|
||||
ed.addButton('wp_fullscreen', {
|
||||
title : 'fullscreen.desc',
|
||||
onclick : function(){ fullscreen.on(); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user