Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Latest commit

 

History

History
53 lines (28 loc) · 964 Bytes

Readme.md

File metadata and controls

53 lines (28 loc) · 964 Bytes

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