- var f = el.canvas.getSelection().toDocumentFragment(),
- prefLen = 0,
- ret;
-
- if(el.wlxmlNode.isPrecededByTextNode()) {
- prefLen = el.wlxmlNode.prev().getText().length;
- }
-
- ret = el.wlxmlNode.unwrapContent();
- return doc.createFragment(doc.CaretFragment, {node: ret.element1, offset: prefLen + f.offset});
+ //var f = el.canvas.getSelection().toDocumentFragment(),
+ // prefLen = 0,
+ // ret;
+ //
+ //if(el.wlxmlNode.isPrecededByTextNode()) {
+ // prefLen = el.wlxmlNode.prev().getText().length;
+ //}
+ //
+ //ret = el.wlxmlNode.unwrapContent();
+ //return doc.createFragment(doc.CaretFragment, {node: ret.element1, offset: prefLen + f.offset});
+ el.wlxmlNode.detach();