medium inspired editor popover
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js

Readme.md

redact-popover

medium inspired editor popover.

demo

Installation

Install with component(1):

$ component install yields/redact-popover

API

RedactPopover

Initialize RedactPopover with contenteditable el.

#add

Add action id with optional label. the id will be the element class.

#remove

Remove action id.

#get

Get action id.

#refresh

this method is called whenever you add() or remove() an option in order to cache the <popover> size.

if you do something that will change the size (like hide individual actions) call this method.

.tip

component/tip instance.

.classes

component/classes instance.

.events

component/events instance.

License

MIT