Skip to content

Commit

Permalink
Merge branch 't/10112' into major
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Feb 22, 2013
2 parents ca74c3c + 1e9fc04 commit eaf5e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/floatingspace/plugin.js
Expand Up @@ -73,6 +73,11 @@
mode = newMode;
}

var editable = editor.editable();
// #10112 Do not fail on editable-less editor.
if ( !editable )
return;

// Show up the space on focus gain.
evt.name == 'focus' && floatSpace.show();

Expand All @@ -85,8 +90,7 @@
// available for all, it's safe to figure that out from the rest.

// http://help.dottoro.com/ljgupwlp.php
var editable = editor.editable(),
spaceRect = floatSpace.getClientRect(),
var spaceRect = floatSpace.getClientRect(),
editorRect = editable.getClientRect(),
spaceHeight = spaceRect.height,
pageScrollX = scrollOffset( 'left' );
Expand Down

0 comments on commit eaf5e73

Please sign in to comment.