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

Function factory

static/editor.md/plugins/table-dialog/table-dialog.js:14–191  ·  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;
17 var pluginName = "table-dialog";
18
19 var langs = {
20 "zh-cn" : {
21 toolbar : {
22 table : "表格"
23 },
24 dialog : {
25 table : {
26 title : "添加表格",
27 cellsLabel : "单元格数",
28 alignLabel : "对齐方式",
29 rows : "行数",
30 cols : "列数",
31 aligns : ["默认", "左对齐", "居中对齐", "右对齐"]
32 }
33 }
34 },
35 "zh-tw" : {
36 toolbar : {
37 table : "添加表格"
38 },
39 dialog : {
40 table : {
41 title : "添加表格",
42 cellsLabel : "單元格數",
43 alignLabel : "對齊方式",
44 rows : "行數",
45 cols : "列數",
46 aligns : ["默認", "左對齊", "居中對齊", "右對齊"]
47 }
48 }
49 },
50 "en" : {
51 toolbar : {
52 table : "Tables"
53 },
54 dialog : {
55 table : {
56 title : "Tables",
57 cellsLabel : "Cells",
58 alignLabel : "Align",
59 rows : "Rows",
60 cols : "Cols",
61 aligns : ["Default", "Left align", "Center align", "Right align"]
62 }
63 }
64 }
65 };
66
67 exports.fn.tableDialog = function() {
68 var _this = this;
69 var cm = this.cm;
70 var editor = this.editor;
71 var settings = this.settings;

Callers 1

table-dialog.jsFile · 0.70

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected