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 09a3ba55c8fad15cad3aed0cddfc02d304d27c77
parent 858cb0816218c93e286122d63264a54ea268c9b0
Author: Henry Unite <unitehenry@gmail.com>
Date:   Fri,  9 Oct 2020 14:18:25 -0400

strikethrough test

Diffstat:
Mdemo/src/test.js | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/demo/src/test.js b/demo/src/test.js @@ -214,6 +214,23 @@ describe('Regression Tests', () => { }, 250); }); + it("should apply strikethrough decoration to content", (done) => { + const se = getEditor(); + se.setContent("<p>Strike Me Through</p>"); + setTimeout(() => { + se.getRange().selectNode(se.body.querySelector("p")); + se.toolbar.querySelector("#toolbar-strikethrough").click(); + se.body.onfocus(); + setTimeout(() => { + assert.exists( + se.body.querySelector("strike"), + "strikethrough was applied" + ); + se.clearContent(); + done(); + }, 0); + }, 200); + }); });