Add support for DFW for all instances of the editor, part props sushkov, fixes #19843

git-svn-id: https://develop.svn.wordpress.org/trunk@20166 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-03-09 23:23:10 +00:00
parent 4147d09fd0
commit 78c8dedcdc
9 changed files with 417 additions and 428 deletions

View File

@@ -599,7 +599,7 @@ function edButton(id, display, tagStart, tagEnd, access, open) {
};
qt.FullscreenButton.prototype = new qt.Button();
qt.FullscreenButton.prototype.callback = function(e, c) {
if ( c.id != 'content' || typeof(fullscreen) == 'undefined' )
if ( !c.id || typeof(fullscreen) == 'undefined' )
return;
fullscreen.on();

View File

@@ -34,7 +34,7 @@
ed.addCommand('wpFullScreenInit', function() {
var d, b, fsed;
ed = tinymce.get('content');
ed = tinyMCE.activeEditor;
d = ed.getDoc();
b = d.body;