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

ep_font_family

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_font_family - npm Package Compare versions

Comparing version 0.0.2 to 0.0.4

.npmignore

2

package.json
{
"description": "Change the font of some text",
"name": "ep_font_family",
"version": "0.0.2",
"version": "0.0.4",
"author": {

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

@@ -19,3 +19,3 @@ var _, $, jQuery;

ace.ace_doInsertFontFamily(intValue);
},'insertColor' , true);
},'insertFontFamily' , true);
hs.val("dummy");

@@ -37,2 +37,6 @@ }

function aceAttribsToClasses(hook, context){
if(context.key.indexOf("FontFamily:") !== -1){
var fontFamily = /(?:^| )FontFamily:([A-Za-z0-9]*)/.exec(context.key);
return ['FontFamily:' + fontFamily[1] ];
}
if(context.key == 'FontFamily'){

@@ -39,0 +43,0 @@ return ['FontFamily:' + context.value ];

var _ = require('ep_etherpad-lite/static/js/underscore');
var fonts = ['Arial', 'Times New Roman', 'Calibri'];
var collectContentPre = function(hook, context){
/*
var tname = context.tname;
var state = context.state;
var lineAttributes = state.lineAttributes
var tagIndex = _.indexOf(fonts, tname);
if(tagIndex >= 0){
lineAttributes['font'] = fonts[tagIndex];
var fontFamily = /(?:^| )FontFamily:([A-Za-z0-9]*)/.exec(context.cls);
if(fontFamily && fontFamily[1]){
context.cc.doAttrib(context.state, fontFamily[0]);
}
*/
};

@@ -17,0 +9,0 @@

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