Static-Edit
A simple yet powerful static website editor.
Installation
You can install this via npm or yarn.
$ yarn add static-edit# OR $ npm install static-edit
You can also download the file directly from here: - static-edit.min.js - static-edit.js
Getting started
Add the script at the end of the page that you want to edit.
Initialize the script right after that line
Add the HTML class editable
to any content that you want to edit.
For example:
Hello world!Foo Bar
Options
You can customize the editor with the following options (the examples show the default):
API
The following events are dispatched to the current window:
window window window
Elem is a class that have the following public method/properties: