@lesjoursfr/edith
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

npm version QC Checks

@lesjoursfr/edith

Edith, simple WYSIWYG editor.

Requirements

To work this library needs :

How to use

import { Edith } from "@lesjoursfr/edith";

/* Initialize the WYSIWYG Editor */
new Edith(document.querySelector("#editor"), {
	height: 200,
	toolbar: [
		[
			"style",
			[
				"bold",
				"italic",
				"underline",
				"strikethrough",
				"subscript",
				"superscript",
				"nbsp",
				"clear",
			],
		],
		/*** Other toolbar blocs ***/
	],
	buttons: {
		/*** Extra buttons for the toolbar ***/
	},
	initialContent: "Optional initial content",
});

Readme

Keywords

Package Sidebar

Install

npm i @lesjoursfr/edith

Weekly Downloads

17

Version

2.2.3

License

MIT

Unpacked Size

136 kB

Total Files

46

Last publish

Collaborators

  • e-adrien