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

ep_headings

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_headings - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

static/js/shared.js

5

ep.json

@@ -11,7 +11,8 @@ {

"aceAttribsToClasses": "ep_headings/static/js/index",
"collectContentPre": "ep_headings/static/js/index",
"collectContentPre": "ep_headings/static/js/shared",
"aceRegisterBlockElements": "ep_headings/static/js/index"
},
"hooks": {
"eejsBlock_editbarMenuLeft": "ep_headings/index"
"eejsBlock_editbarMenuLeft": "ep_headings/index",
"collectContentPre": "ep_headings/static/js/shared"
}

@@ -18,0 +19,0 @@ }

2

package.json
{
"description": "Adds heading support to Etherpad Lite.",
"name": "ep_headings",
"version": "0.1.3",
"version": "0.1.4",
"author": "fourplusone <info@fourplusone.de>",

@@ -6,0 +6,0 @@ "contributors": [

@@ -7,19 +7,5 @@ var _, $, jQuery;

var cssFiles = ['ep_headings/static/css/editor.css'];
var tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
// Here we collect our <h1>...<h6> tags and transform them tho heading
// attributes.
var collectContentPre = function(hook, context){
var tname = context.tname;
var state = context.state;
var lineAttributes = state.lineAttributes
var tagIndex = _.indexOf(tags, tname);
if(tagIndex >= 0){
lineAttributes['heading'] = tags[tagIndex];
}
};
// All our tags are block elements, so we just return them.
var tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
var aceRegisterBlockElements = function(){

@@ -112,3 +98,2 @@ return tags;

exports.aceRegisterBlockElements = aceRegisterBlockElements;
exports.collectContentPre = collectContentPre;
exports.aceInitialized = aceInitialized;

@@ -118,2 +103,2 @@ exports.postAceInit = postAceInit;

exports.aceAttribsToClasses = aceAttribsToClasses;
exports.aceEditorCSS = aceEditorCSS;
exports.aceEditorCSS = aceEditorCSS;
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