Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
medium inspired editor popover
JavaScript
branch: master

This branch is 4 commits behind yields:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.