deveditor
v1.0.1
Published
HTML Textarea functionality booster
Downloads
3
Maintainers
Readme
DevEditor
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/[email protected]/dev.editor.js"></script>
Using unpkg CDN
<script src="https://unpkg.com/[email protected]/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>