commit 362ddea3760b87a198b613a4d1bdde194bba84eb parent 12ff34c3404dd989b49d82f039bc6bb2c4981cea Author: unitehenry <unitehenry@gmail.com> Date: Thu, 3 Sep 2020 17:03:20 -0400 select http in insert link Diffstat:
| M | src/striveneditor.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -1197,7 +1197,7 @@ export default class StrivenEditor { const linkMenuCheck = document.createElement('input'); function resetInput() { - linkMenuFormInput.value = ''; + linkMenuFormInput.value = 'http://'; } linkMenu.id = 'link-menu'; @@ -2993,7 +2993,7 @@ export default class StrivenEditor { ); selection && (selection.value = document.getSelection().toString()); - this.linkMenu.querySelector('input').focus(); + this.linkMenu.querySelector('input').select(); }, 100); } break;