Skip to content

Commit

Permalink
refactor: isInTable function is moved to WysiwygEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohee Lee authored and sohee-lee7 committed Mar 11, 2019
1 parent 7faf0fa commit 8cf1ccd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/js/wwTableManager.js
Expand Up @@ -315,19 +315,6 @@ class WwTableManager {
return leafNode;
}

/**
* isInTable
* Check whether passed range is in table or not
* @param {Range} range range
* @returns {boolean} result
* @memberof WwTableManager
*/
isInTable(range) {
const target = range.collapsed ? range.startContainer : range.commonAncestorContainer;

return !!$(target).closest('[contenteditable=true] table').length;
}

/**
* _isBeforeTable
* Check whether passed range is right before table or not
Expand Down

0 comments on commit 8cf1ccd

Please sign in to comment.