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.4 to 0.0.6

2

package.json
{
"description": "Add Left/Center/Right/Justify to lines of text in a pad",
"name": "ep_align",
"version": "0.0.4",
"version": "0.0.6",
"author": {

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

@@ -34,2 +34,3 @@ var _, $, jQuery;

ace.ace_doInsertalign(alignment);
ace.ace_focus();
},'insertalign' , true);

@@ -39,4 +40,8 @@ }

// Our align attribute will result in a heaading:h1... :h6 class
// Our align attribute will result in an align:left...right class
function aceAttribsToClasses(hook, context){
if(context.key.indexOf("align:") !== -1){
var align = /(?:^| )align:([A-Za-z0-9]*)/.exec(context.key);
return ['align:' + align[1] ];
}
if(context.key == 'align'){

@@ -57,4 +62,4 @@ return ['align:' + context.value ];

var modifier = {
preHtml: '<p style="width:100%;text-align:' + tag + '"><span>',
postHtml: '</span></p>',
preHtml: '<'+tag+'><p style="width:100%;text-align:' + tag + '"><span>',
postHtml: '</span></p></'+tag+'>',
processedMarker: true

@@ -61,0 +66,0 @@ };

@@ -10,3 +10,2 @@ var _ = require('ep_etherpad-lite/static/js/underscore');

var tagIndex = _.indexOf(tags, tname);
if(tagIndex >= 0){

@@ -13,0 +12,0 @@ lineAttributes['align'] = tags[tagIndex];

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