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

yields/redact-popover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

medium inspired editor popover

Resources

Stars

Watchers

Forks

Packages

No packages published