fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing Canvas.getDocumentElement
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
canvas.js
diff --git
a/modules/documentCanvas/canvas/canvas.js
b/modules/documentCanvas/canvas/canvas.js
index
ad294b8
..
c4bfc09
100644
(file)
--- a/
modules/documentCanvas/canvas/canvas.js
+++ b/
modules/documentCanvas/canvas/canvas.js
@@
-116,7
+116,7
@@
$.extend(Canvas.prototype, {
return wrapperElement;
},
getDocumentElement: function(from) {
- if(from instanceof HTMLElement) {
+ if(from instanceof HTMLElement
|| from instanceof Text
) {
return documentElement.wrap(from, this);
}
},