cm-md-editor 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/MdEditor.js +1 -0
package/package.json
CHANGED
package/src/MdEditor.js
CHANGED
|
@@ -440,6 +440,7 @@ export class MdEditor {
|
|
|
440
440
|
|
|
441
441
|
insertTextAtCursor(text) {
|
|
442
442
|
// execCommand is deprecated, but without alternative to insert text and preserve the correct undo/redo stack
|
|
443
|
+
this.element.focus()
|
|
443
444
|
document.execCommand("insertText", false, text)
|
|
444
445
|
}
|
|
445
446
|
|