ep_font_family
Advanced tools
Comparing version 0.0.2 to 0.0.4
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8083
13
161