1.0.1 • Published 9 months ago

deveditor v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

DevEditor

npm npm bundle size (version) GitHub release (by tag) jsDelivr hits (npm) npm GitHub issues GitHub closed issues

HTML Textarea functionality booster

new DevEditor(selector, settings);
  • selector (Selector|Node)
  • settings object

Deployment:

Using dev.editor.js file

<script src="dev.editor.js"></script>

Using jsDeliver CDN

<script src="https://cdn.jsdelivr.net/npm/deveditor@1.0.1/dev.editor.js"></script>

Using unpkg CDN

<script src="https://unpkg.com/deveditor@1.0.1/dev.editor.js"></script>

Uses:

No option use

<textarea class="dev-editor"></textarea>
<script>
	new DevEditor('.dev-editor', {
		AllowTabs: true,
		AutoIndent: true,
	});
</script>

Want to initialize later?

<script>
	const editor = new DevEditor('.dev-editor', {
		AutoInit: false,
		AllowTabs: true,
		AutoIndent: true,
	});

	editor.start(); // initialize
</script>

Want to stop editor?

<script>
	editor.stop(); // initialize
</script>

Change instance settings later

<script>
	const editor = new DevEditor('.dev-editor', {
		AllowTabs: true,
		AutoIndent: true,
	});

	editor.AllowTabs = false;
	editor.AutoIndent = false;
</script>

Author:

1.0.1

9 months ago

1.0.0

9 months ago