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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/MdEditor.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-md-editor",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "a simple markdown editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
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