Fixes #557, Text dragged to a note isn't saved
This commit is contained in:
parent
f28ec470c9
commit
f11189778a
|
@ -116,6 +116,11 @@
|
||||||
// everything is initialized and the editor will fail to create the
|
// everything is initialized and the editor will fail to create the
|
||||||
// inline spell checker object
|
// inline spell checker object
|
||||||
setTimeout(this._delayedInitSpellCheck, 0, this)
|
setTimeout(this._delayedInitSpellCheck, 0, this)
|
||||||
|
|
||||||
|
// oninput doesn't seem to fire on text drag
|
||||||
|
this.inputField.addEventListener('dragdrop', function(event) {
|
||||||
|
document.getBindingParent(event.target).doInput();
|
||||||
|
}, false);
|
||||||
]]>
|
]]>
|
||||||
</constructor>
|
</constructor>
|
||||||
|
|
||||||
|
@ -222,16 +227,25 @@
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|
||||||
|
<method name="doInput">
|
||||||
|
<body>
|
||||||
|
<![CDATA[
|
||||||
|
if (this._timer) {
|
||||||
|
clearTimeout(this._timer);
|
||||||
|
}
|
||||||
|
this._timer = this.timeout && setTimeout(this._fireCommand, this.timeout, this);
|
||||||
|
]]>
|
||||||
|
</body>
|
||||||
|
</method>
|
||||||
</implementation>
|
</implementation>
|
||||||
|
|
||||||
|
|
||||||
<handlers>
|
<handlers>
|
||||||
<handler event="input">
|
<handler event="input">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
if (this._timer)
|
this.doInput();
|
||||||
clearTimeout(this._timer);
|
]]>
|
||||||
this._timer = this.timeout && setTimeout(this._fireCommand, this.timeout, this);
|
|
||||||
]]>
|
|
||||||
</handler>
|
</handler>
|
||||||
</handlers>
|
</handlers>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user