commit 5e415790af48a8d2760424c34d68b189ecc9429c parent 483102dcf292d2dbb39cc329740642d956031d28 Author: unitehenry <unitehenry@gmail.com> Date: Wed, 30 Oct 2019 11:47:46 -0400 scrub comment Diffstat:
| M | src/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) {