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

ep_align

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_align - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

ep.json

@@ -17,3 +17,3 @@ {

"collectContentPost": "ep_align/static/js/shared",
"getLineHTMLForExport": "ep_align/index",
"asyncLineHTMLForExport": "ep_align/index",
"eejsBlock_dd_format":"ep_align/index"

@@ -20,0 +20,0 @@ }

@@ -13,2 +13,4 @@ var eejs = require('ep_etherpad-lite/node/eejs/');

// Replaced with the async option
/*
exports.getLineHTMLForExport = function (hook, context) {

@@ -20,13 +22,20 @@ var align = _analyzeLine(context.attribLine, context.apool);

}
*/
function _analyzeLine(alineAttrs, apool) {
exports.asyncLineHTMLForExport = function (hook, context, cb) {
cb(applyAlign);
}
function applyAlign(context){
var align = null;
if (alineAttrs) {
var opIter = Changeset.opIterator(alineAttrs);
if (context.attribLine) {
var opIter = Changeset.opIterator(context.attribLine);
if (opIter.hasNext()) {
var op = opIter.next();
align = Changeset.opAttributeValue(op, 'align', apool);
align = Changeset.opAttributeValue(op, 'align', context.apool);
}
}
return align;
if (align) {
return '<div style="width:100%;margin:0 auto;list-style-position:inside;text-align:' + align + '">' + context.lineContent + '</div>';
}
}
{
"description": "Add Left/Center/Right/Justify to lines of text in a pad",
"name": "ep_align",
"version": "0.0.11",
"version": "0.0.12",
"author": {

@@ -6,0 +6,0 @@ "name": "John McLear",

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