Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ep_element

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

ep_element

And Etherpad Lite Plugin. Set element tag name and attributes through classes.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

ep_element

An Etherpad Lite plugin which adds the ability to set the output tag and attributes.

Use: On an element, (say a span), add the class elem to enable the plugin on that element. Then, to set the output element (optional, defaults to span), add the class elem:elemname (eg. elem:a). For each attribute, add a class in the format attr-attrname:attrvalue, eg. attr-contentedtiable:true, attr-data-code:x%20y. Encode any attr values with encodeURIComponent.

Example:

<span class="elem elem:a attr-href:http%3A%2F%2Fgithub.com">github</span>

will produce:

<a href="http://github.com">github</a>

To set classes on an element, simply use attr-class:cls. You can set the style property by either creating a class as described previously, or setting the style property as per normal html development (it will be preserved).

Development:

npm run prepublish

to compile JS and package.json

FAQs

Package last updated on 06 Nov 2012

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