Skip to content

Commit

Permalink
Search among editable's children only when looking for Magicline trig…
Browse files Browse the repository at this point in the history
…gers.
  • Loading branch information
oleq committed Nov 13, 2013
1 parent 9c493a9 commit 40dcb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/magicline/plugin.js
Expand Up @@ -472,7 +472,7 @@
trigger = node.getAscendant( that.triggers, true );

// If trigger is an element, neither editable nor editable's ascendant.
if ( trigger && !trigger.contains( that.editable ) && !trigger.equals( that.editable ) ) {
if ( trigger && that.editable.contains( trigger ) ) {
// Check for closest editable limit.
var limit = getClosestEditableLimit( trigger, true );

Expand Down

0 comments on commit 40dcb7e

Please sign in to comment.