striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit 362ddea3760b87a198b613a4d1bdde194bba84eb
parent 12ff34c3404dd989b49d82f039bc6bb2c4981cea
Author: unitehenry <unitehenry@gmail.com>
Date:   Thu,  3 Sep 2020 17:03:20 -0400

select http in insert link

Diffstat:
Msrc/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;