Make DFW use the exact same style as the normal editor, remove width resizing in DFW as it would clash with editor-style.css for some themes, fixes #17644
git-svn-id: http://svn.automattic.com/wordpress/trunk@18103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -480,16 +480,11 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
wptitlehint('wp-fullscreen-title');
|
||||
|
||||
$(document).keyup(function(e){
|
||||
var c = e.keyCode || e.charCode, a, data;
|
||||
var c = e.keyCode || e.charCode, data;
|
||||
|
||||
if ( !fullscreen.settings.visible )
|
||||
return true;
|
||||
|
||||
if ( navigator.platform && navigator.platform.indexOf('Mac') != -1 )
|
||||
a = e.ctrlKey; // Ctrl key for Mac
|
||||
else
|
||||
a = e.altKey; // Alt key for Win & Linux
|
||||
|
||||
if ( 27 == c ) { // Esc
|
||||
data = {
|
||||
event: e,
|
||||
@@ -506,15 +501,6 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
fullscreen.off();
|
||||
}
|
||||
|
||||
if ( a && (61 == c || 107 == c || 187 == c) ) // +
|
||||
api.dfw_width(25);
|
||||
|
||||
if ( a && (45 == c || 109 == c || 189 == c) ) // -
|
||||
api.dfw_width(-25);
|
||||
|
||||
if ( a && 48 == c ) // 0
|
||||
api.dfw_width(0);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user