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 5e415790af48a8d2760424c34d68b189ecc9429c
parent 483102dcf292d2dbb39cc329740642d956031d28
Author: unitehenry <unitehenry@gmail.com>
Date:   Wed, 30 Oct 2019 11:47:46 -0400

scrub comment

Diffstat:
Msrc/striveneditor.js | 23-----------------------
1 file changed, 0 insertions(+), 23 deletions(-)

diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -442,29 +442,6 @@ export default class StrivenEditor { this.options.placeholder && (body.dataset.placeholder = this.options.placeholder); - // Placeholder logic - // if (this.options.placeholder) { - // const placeholderNode = document.createElement("p"); - // placeholderNode.id = "placeholder-node"; - // placeholderNode.style.color = "#5f6368"; - // placeholderNode.style.margin = "0"; - // placeholderNode.textContent = this.options.placeholder; - - // body.append(placeholderNode); - - // const bodyFocus = body.onfocus; - // body.onfocus = () => { - // bodyFocus && bodyFocus(); - // (body.querySelector("#placeholder-node") === placeholderNode) && this.clearContent(); - // } - - // const bodyBlur = body.onblur; - // body.onblur = () => { - // bodyBlur && bodyBlur(); - // (this.getContent().trim() === "") && body.append(placeholderNode); - // } - // } - // Paste Handler body.onpaste = e => { function dataURLtoFile(dataurl, filename) {