MCPcopy Create free account
hub / github.com/TruthHun/BookStack / factory

Function factory

static/editor.md/plugins/plugin-template.js:14–84  ·  view source on GitHub ↗
(exports)

Source from the content-addressed store, hash-verified

12(function() {
13
14 var factory = function (exports) {
15
16 var $ = jQuery; // if using module loader(Require.js/Sea.js).
17
18 var langs = {
19 "zh-cn" : {
20 toolbar : {
21 table : "表格"
22 },
23 dialog : {
24 table : {
25 title : "添加表格",
26 cellsLabel : "单元格数",
27 alignLabel : "对齐方式",
28 rows : "行数",
29 cols : "列数",
30 aligns : ["默认", "左对齐", "居中对齐", "右对齐"]
31 }
32 }
33 },
34 "zh-tw" : {
35 toolbar : {
36 table : "添加表格"
37 },
38 dialog : {
39 table : {
40 title : "添加表格",
41 cellsLabel : "單元格數",
42 alignLabel : "對齊方式",
43 rows : "行數",
44 cols : "列數",
45 aligns : ["默認", "左對齊", "居中對齊", "右對齊"]
46 }
47 }
48 },
49 "en" : {
50 toolbar : {
51 table : "Tables"
52 },
53 dialog : {
54 table : {
55 title : "Tables",
56 cellsLabel : "Cells",
57 alignLabel : "Align",
58 rows : "Rows",
59 cols : "Cols",
60 aligns : ["Default", "Left align", "Center align", "Right align"]
61 }
62 }
63 }
64 };
65
66 exports.fn.htmlEntities = function() {
67 /*
68 var _this = this; // this == the current instance object of Editor.md
69 var lang = _this.lang;
70 var settings = _this.settings;
71 var editor = this.editor;

Callers 1

plugin-template.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected