antonmedv/finder

Allow custom document pointers

viveleroi opened this issue · 1 comments

I planned on using this for content within a TinyMCE editor document, which is another iframe, but the document reference is not configurable.

I would suggest a new configuration option:

finder(node, {
  document: editor.getDoc()
})

An alternative approach would be to change all references of document to input.ownerDocument. Then would work in iframes without any extra configuration.