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 7691587a142669d01ad1b6ff48e1c95a6d6b8df0
parent ad8ce20e0b52cf945476024a9fcdbb4d36ce3b28
Author: Henry Unite <unitehenry@gmail.com>
Date:   Wed, 14 Oct 2020 16:36:49 -0400

parse inserted links on set content

Diffstat:
Msrc/striveneditor.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -2497,9 +2497,7 @@ export default class StrivenEditor { se.clearContent(); if (html) { se.body.innerHTML = html; - [...se.body.querySelectorAll('a')].forEach( - link => (link.parsed = true), - ); + se.convertLinks(); } }