New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

editable-component

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editable-component

Turn element into contenteditable

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Editable

Turn element into contenteditable

Introduction

This component is a container of sorts and doesn't have any special functionality. Its main purpose is to give the other plugins for contenteditable elements to be mounted.

I am in the process of writing:

  • nickjackson/editable-placeholder
  • nickjackson/editable-sanitizer

Installation

$ component install nickjackson/editable

API

Editable(el)

Initialize a given el as a contenteditable element

#use(fn)

Convenience method to hook in plugins

#unbind()

Removes event listeners, not before emitting 'unbind' to which plugins can bind to it, and programatically unbind there callbacks.

#html(html)

.innerHTML getter/setter

#text(text)

.textContent getter/setter. Falls back to innerText.

Todo

  • Test on other browsers. Currently only tested on Chrome OSX.

License

MIT

Keywords

FAQs

Package last updated on 29 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc