Skip to content

edith 2.2.8

Install from the command line:
Learn more about npm packages
$ npm install @lesjoursfr/edith@2.2.8
Install via package.json:
"@lesjoursfr/edith": "2.2.8"

About this version

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",
});

Details


Assets

  • edith-2.2.8.tgz

Download activity

  • Total downloads 63
  • Last 30 days 25
  • Last week 9
  • Today 0