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 8f543b58b0383e3a5cc5baf104561a496a048c93
parent 1497fb5a8054cff2c92fdcf5a24603bbf0ee9bb4
Author: unitehenry <unitehenry@gmail.com>
Date:   Tue, 17 Mar 2020 11:27:12 -0400

link conversion

Diffstat:
Msrc/striveneditor.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -2217,7 +2217,7 @@ export default class StrivenEditor { const convertedLinks = []; links.forEach(link => { const href = link.getAttribute('href'); - const isEmail = href.includes('mailto'); + const isEmail = href ? href.includes('mailto') : false; const isLinkified = link.classList.contains('linkified') && !se.validURL(link.textContent);