jodit-pro 1.2.1 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/build/config.js +2 -1
  2. package/build/jodit.css +1 -1
  3. package/build/jodit.es5.css +2 -2
  4. package/build/jodit.es5.js +2 -2
  5. package/build/jodit.fat.css +1 -1
  6. package/build/jodit.fat.es5.css +1 -1
  7. package/build/jodit.fat.es5.js +2 -2
  8. package/build/jodit.fat.js +2 -2
  9. package/build/jodit.js +2 -2
  10. package/build/plugins/autocomplete/autocomplete.es5.js +2 -2
  11. package/build/plugins/autocomplete/autocomplete.js +2 -2
  12. package/build/plugins/backup/backup.es5.js +2 -2
  13. package/build/plugins/backup/backup.js +2 -2
  14. package/build/plugins/button-generator/button-generator.es5.js +2 -2
  15. package/build/plugins/button-generator/button-generator.js +2 -2
  16. package/build/plugins/change-case/change-case.es5.js +2 -2
  17. package/build/plugins/change-case/change-case.js +2 -2
  18. package/build/plugins/color-picker/color-picker.es5.js +2 -2
  19. package/build/plugins/color-picker/color-picker.js +2 -2
  20. package/build/plugins/emoji/emoji.es5.js +2 -2
  21. package/build/plugins/emoji/emoji.js +2 -2
  22. package/build/plugins/finder/finder.es5.js +2 -2
  23. package/build/plugins/finder/finder.js +2 -2
  24. package/build/plugins/google-search/google-search.es5.js +2 -2
  25. package/build/plugins/google-search/google-search.js +2 -2
  26. package/build/plugins/highlight-signature/highlight-signature.es5.js +10 -0
  27. package/build/plugins/highlight-signature/highlight-signature.js +10 -0
  28. package/build/plugins/keyboard/keyboard.es5.js +2 -2
  29. package/build/plugins/keyboard/keyboard.js +2 -2
  30. package/build/plugins/paste-code/paste-code.es5.js +2 -2
  31. package/build/plugins/paste-code/paste-code.js +2 -2
  32. package/build/plugins/show-blocks/show-blocks.es5.js +2 -2
  33. package/build/plugins/show-blocks/show-blocks.js +2 -2
  34. package/build/plugins/tune-block/tune-block.es5.js +2 -2
  35. package/build/plugins/tune-block/tune-block.js +2 -2
  36. package/examples/arabic.lang.html +1 -1
  37. package/examples/assets/app.css +47 -46
  38. package/examples/assets/app.js +1 -1
  39. package/examples/color-picker.html +1 -1
  40. package/examples/custom-icons.html +1 -1
  41. package/examples/custom-toolbar.html +1 -1
  42. package/examples/example.default.html +1 -1
  43. package/examples/fullsize.html +1 -1
  44. package/examples/index.html +1 -1
  45. package/examples/inline-mode.html +1 -1
  46. package/examples/oneinstance.html +1 -1
  47. package/index.html +28 -1
  48. package/package.json +2 -2
@@ -1,4 +1,5 @@
1
1
  @import 'prism.css';
2
+
2
3
  html {
3
4
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
4
5
  }
@@ -7,14 +8,15 @@ body {
7
8
  height: 100%;
8
9
  margin: 0;
9
10
  }
11
+
10
12
  body {
11
13
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial,
12
14
  sans-serif;
13
15
  font-size: 16px;
14
16
  -webkit-font-smoothing: antialiased;
15
- text-rendering: optimizelegibility;
16
- line-height: 1.5;
17
17
  font-weight: 300;
18
+ line-height: 1.5;
19
+ text-rendering: optimizelegibility;
18
20
  }
19
21
 
20
22
  body {
@@ -27,57 +29,41 @@ header,
27
29
  flex: 1 0 auto;
28
30
  }
29
31
 
30
- /*.jodit-wysiwyg{*/
31
- /*color: #000;*/
32
- /*padding: 10px;*/
33
- /*overflow-x: auto;*/
34
- /*color: #000;*/
35
- /*padding: 10px;*/
36
- /*min-height: 40px;*/
37
- /*}*/
38
32
  * {
39
- -webkit-box-sizing: border-box;
40
- -moz-box-sizing: border-box;
41
33
  box-sizing: border-box;
42
34
  }
35
+
43
36
  .table,
44
37
  .p {
45
38
  margin: 0 0 16px 0;
46
39
  }
47
40
 
48
41
  .table {
42
+ max-width: 100%;
49
43
  border: 0;
50
44
  border-collapse: collapse;
51
- empty-cells: show;
52
- max-width: 100%;
53
45
  border-spacing: 0;
54
- *border-collapse: collapse;
46
+ empty-cells: show;
55
47
  }
56
- . table tr {
48
+
49
+ .table tr {
57
50
  user-select: none;
58
- -o-user-select: none;
59
- -moz-user-select: none;
60
- -khtml-user-select: none;
61
- -webkit-user-select: none;
62
- -ms-user-select: none;
63
- }
64
- . table td,
65
- . table th {
51
+ }
52
+
53
+ .table td,
54
+ .table th {
66
55
  user-select: text;
67
- -o-user-select: text;
68
- -moz-user-select: text;
69
- -khtml-user-select: text;
70
- -webkit-user-select: text;
71
- -ms-user-select: text;
72
- }
73
- . table th,
74
- . table td {
75
- box-sizeing: border-box;
56
+ }
57
+
58
+ .table th,
59
+ .table td {
60
+ box-sizing: border-box;
76
61
  padding: 2px 5px;
77
62
  vertical-align: top;
78
63
  }
64
+
79
65
  .table td,
80
- . table th {
66
+ .table th {
81
67
  border: 1px solid #ddd;
82
68
  }
83
69
 
@@ -85,37 +71,43 @@ header,
85
71
  width: 1000px;
86
72
  margin: 0 auto;
87
73
  }
74
+
88
75
  nav {
76
+ overflow: hidden;
89
77
  height: 30px;
90
- background: linear-gradient(to left, #28a5f5, #1e87f0);
91
78
  padding: 0;
92
- overflow: hidden;
79
+ background: linear-gradient(to left, #28a5f5, #1e87f0);
93
80
  }
81
+
94
82
  footer nav {
95
- background: #f9f9f9;
96
83
  margin-top: 20px;
84
+ background: #f9f9f9;
97
85
  }
86
+
98
87
  nav > ul {
99
88
  padding: 0;
100
89
  margin: 0;
101
90
  }
91
+
102
92
  nav > ul > li {
103
- list-style: none;
104
93
  display: inline-block;
105
94
  padding: 0;
106
95
  margin: 0;
96
+ list-style: none;
107
97
  }
98
+
108
99
  nav > ul > li + li {
109
100
  margin-left: 23px;
110
101
  }
111
102
 
112
103
  nav ul li a {
113
104
  color: #ddd;
114
- text-decoration: none;
115
- text-transform: uppercase;
116
105
  font-size: 0.625rem;
117
106
  line-height: 30px;
107
+ text-decoration: none;
108
+ text-transform: uppercase;
118
109
  }
110
+
119
111
  nav ul li a:hover {
120
112
  color: #fff;
121
113
  text-decoration: underline;
@@ -127,44 +119,53 @@ footer nav ul li a {
127
119
 
128
120
  nav ul li ul {
129
121
  position: absolute;
130
- margin: 0;
122
+ z-index: 20;
123
+ display: none;
131
124
  padding: 0;
125
+ margin: 0;
132
126
  background-color: #208bf1;
133
- display: none;
134
- z-index: 20;
135
127
  }
128
+
136
129
  nav > ul > li:hover > ul {
137
130
  display: block;
138
131
  }
132
+
139
133
  nav ul li ul li {
140
- list-style: none;
141
134
  display: block;
142
135
  padding: 0;
143
136
  margin: 0;
137
+ list-style: none;
144
138
  }
139
+
145
140
  nav ul li ul li a {
146
141
  padding: 8px;
147
142
  }
143
+
148
144
  .layout {
149
145
  display: flex;
150
146
  flex-direction: row;
151
147
  }
148
+
152
149
  .layout > * {
153
150
  }
151
+
154
152
  .leftside {
155
153
  width: 20%;
156
154
  padding: 10px 10px 10px 0;
157
155
  }
156
+
158
157
  .rightside {
159
158
  width: 80%;
160
159
  padding: 10px 0 10px 10px;
161
160
  }
161
+
162
162
  pre {
163
- white-space: pre-wrap;
163
+ padding: 10px;
164
164
  background-color: #3f3f3f;
165
165
  color: #fff;
166
- padding: 10px;
166
+ white-space: pre-wrap;
167
167
  }
168
+
168
169
  h1,
169
170
  h2,
170
171
  h3,
@@ -31,7 +31,7 @@ if (examples) {
31
31
  });
32
32
  }
33
33
 
34
- [].slice.call(document.getElementsByTagName('pre')).forEach(function (pre) {
34
+ Array.from(document.getElementsByTagName('pre')).forEach(function (pre) {
35
35
  if (pre.firstChild.nodeName === 'CODE') {
36
36
  pre = pre.firstChild;
37
37
  }
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
@@ -22,7 +22,7 @@
22
22
  <li><a href="https://github.com/xdan/jodit/">Github</a></li>
23
23
  <li><a href="https://github.com/xdan/jodit/blob/master/CHANGELOG.MD">Changelog</a></li>
24
24
  <li>
25
- <a href="javascript:void(0)">Examples</a>
25
+ <a href="#examples">Examples</a>
26
26
  <ul id="examples"><!-- see app.js--></ul>
27
27
  </li>
28
28
  <li style="float:right"><a href="https://github.com/xdan/jodit/releases/latest">Download</a></li>
package/index.html CHANGED
@@ -64,10 +64,37 @@
64
64
  // theme: 'dark',
65
65
  // extraPlugins: ['tune-block'],
66
66
  language: 'en',
67
+
68
+ highlightSignature: {
69
+ schema: {
70
+ '[^\\s]+@[a-z\\.-]+': (jodit) => jodit.createInside.element('strong'),
71
+ '\\$\\{([^}]+)\\}': (jodit, matched) => {
72
+ let color = 'yellow'; // all another macros will be `yellow`
73
+
74
+ switch (matched[1]) {
75
+ case 'formSubmittedDate':
76
+ color = 'red';
77
+ break;
78
+
79
+ case 'formSessionURL':
80
+ color = '#0f0';
81
+ break;
82
+ }
83
+
84
+ return jodit.createInside.element('span', {
85
+ style: {
86
+ backgroundColor: color
87
+ }
88
+ });
89
+ }
90
+ }
91
+ },
67
92
  // toolbar: false,
68
93
  // buttons: [],
69
94
  // "textIcons": true,
70
- // disablePlugins: ['xpath'],
95
+
96
+ // disablePlugins: ['WrapTextNodes', 'cleanHtml', 'delete', 'inlinePopup', 'add-new-line', 'key-arrow-outside', 'autocomplete', 'source'],
97
+
71
98
  keyboard: {
72
99
  // showLayoutSwitcher: false,
73
100
  extraKeyButtons: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "1.2.1",
3
+ "version": "1.2.5",
4
4
  "author": "Chupurnov Valeriy <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "description": "PRO Version of Jodit Editor",
10
10
  "main": "build/jodit.js",
11
- "types": "index.d.ts",
11
+ "types": "./index.d.ts",
12
12
  "scripts": {},
13
13
  "repository": {
14
14
  "type": "git",