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.2 to 0.0.3

.travis.yml

3

ep.json

@@ -18,3 +18,4 @@ {

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

@@ -21,0 +22,0 @@ }

@@ -8,3 +8,9 @@ var eejs = require('ep_etherpad-lite/node/eejs/');

exports.eejsBlock_dd_format = function (hook_name, args, cb) {
args.content = args.content + eejs.require("ep_align/templates/fileMenu.ejs");
return cb();
}
function getInlineStyle(header) {
// TODO!
switch (header) {

@@ -11,0 +17,0 @@ case "h1":

{
"description": "Adds Align Center & Right support",
"description": "Add Left/Center/Right/Justify to lines of text in a pad",
"name": "ep_align",
"version": "0.0.2",
"author": "John McLear <john@mclear.co.uk>",
"version": "0.0.3",
"author": {
"name": "John McLear",
"email": "john@mclear.co.uk"
},
"contributors": [],

@@ -15,3 +18,14 @@ "dependencies": {},

"url": "git://github.com/johnmclear/ep_align.git"
}
},
"readme": "# ep_align\n\n## Function\nAdds options in the editbar to add justification to text IE Left, middle(center), right and justify.\n\n## Settings\nNone\n\n## Todo\nExport support\n\nWant further functionality?\nhttp://mclear.co.uk/experience\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/johnmclear/ep_align/issues"
},
"_id": "ep_align@0.0.3",
"dist": {
"shasum": "9c71c10ccc09df9154763b8d1ebfcf12297f9cc3"
},
"_from": "ep_align@",
"_resolved": "https://registry.npmjs.org/ep_align/-/ep_align-0.0.3.tgz"
}

@@ -16,17 +16,24 @@ var _, $, jQuery;

var postAceInit = function(hook, context){
var hs = $('#align-selection');
hs.on('change', function(){
var value = $(this).val();
var intValue = parseInt(value,10);
if(!_.isNaN(intValue)){
context.ace.callWithAce(function(ace){
ace.ace_doInsertalign(intValue);
},'insertalign' , true);
hs.val("dummy");
}
})
$('.ep_align_left').click(function(){
align(context, 0);
});
$('.ep_align_center').click(function(){
align(context, 1);
});
$('.ep_align_justify').click(function(){
align(context, 3);
});
$('.ep_align_right').click(function(){
align(context, 2);
});
};
function align(context, alignment){
context.ace.callWithAce(function(ace){
ace.ace_doInsertalign(alignment);
},'insertalign' , true);
}
// Our align attribute will result in a heaading:h1... :h6 class

@@ -33,0 +40,0 @@ function aceAttribsToClasses(hook, context){

Sorry, the diff of this file is not supported yet

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