biso24-editor 1.3.0 → 1.3.1

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 (53) hide show
  1. package/CKEditor4/CHANGES.md +2182 -2182
  2. package/CKEditor4/LICENSE.md +1436 -1436
  3. package/CKEditor4/README.md +39 -39
  4. package/CKEditor4/SECURITY.md +10 -10
  5. package/CKEditor4/adapters/jquery.js +158 -158
  6. package/CKEditor4/bender-runner.config.json +16 -16
  7. package/CKEditor4/build-config.js +100 -100
  8. package/CKEditor4/ckeditor.js +30065 -30065
  9. package/CKEditor4/config.js +39 -39
  10. package/CKEditor4/contents.css +161 -161
  11. package/CKEditor4/lang/vi.js +475 -475
  12. package/CKEditor4/plugins/a11yhelp/dialogs/a11yhelp.js +143 -143
  13. package/CKEditor4/plugins/a11yhelp/dialogs/lang/vi.js +122 -122
  14. package/CKEditor4/plugins/custompaste/plugin.js +57 -57
  15. package/CKEditor4/plugins/dialog/dialogDefinition.js +4 -4
  16. package/CKEditor4/plugins/dialog/styles/dialog.css +18 -18
  17. package/CKEditor4/plugins/font/lang/vi.js +14 -14
  18. package/CKEditor4/plugins/font/plugin.js +535 -535
  19. package/CKEditor4/plugins/image2/dialogs/image2.js +558 -558
  20. package/CKEditor4/plugins/image2/lang/vi.js +21 -21
  21. package/CKEditor4/plugins/image2/plugin.js +1715 -1708
  22. package/CKEditor4/plugins/justify/plugin.js +266 -266
  23. package/CKEditor4/plugins/justify_group/plugin.js +64 -64
  24. package/CKEditor4/plugins/lineheight/LICENSE +22 -22
  25. package/CKEditor4/plugins/lineheight/README.md +2 -2
  26. package/CKEditor4/plugins/lineheight/lang/vi.js +3 -3
  27. package/CKEditor4/plugins/lineheight/plugin.js +99 -99
  28. package/CKEditor4/plugins/lineheight/readme.txt +30 -30
  29. package/CKEditor4/plugins/link/dialogs/anchor.js +82 -82
  30. package/CKEditor4/plugins/link/dialogs/link.js +777 -777
  31. package/CKEditor4/plugins/menubutton/plugin.js +99 -99
  32. package/CKEditor4/plugins/pastefromword/filter/default.js +849 -849
  33. package/CKEditor4/plugins/pastetools/filter/common.js +445 -445
  34. package/CKEditor4/plugins/pastetools/filter/image.js +163 -163
  35. package/CKEditor4/plugins/pdffile/plugin.js +36 -36
  36. package/CKEditor4/plugins/placeholder_button/plugin.js +31 -31
  37. package/CKEditor4/plugins/sourcedialog/dialogs/sourcedialog.js +88 -88
  38. package/CKEditor4/plugins/sourcedialog/lang/vi.js +9 -9
  39. package/CKEditor4/plugins/sourcedialog/plugin.js +30 -30
  40. package/CKEditor4/plugins/wordfile/plugin.js +161 -161
  41. package/CKEditor4/skins/moono-lisa/dialog.css +685 -685
  42. package/CKEditor4/skins/moono-lisa/dialog_ie.css +721 -721
  43. package/CKEditor4/skins/moono-lisa/dialog_ie8.css +746 -746
  44. package/CKEditor4/skins/moono-lisa/dialog_iequirks.css +724 -724
  45. package/CKEditor4/skins/moono-lisa/editor.css +1551 -1551
  46. package/CKEditor4/skins/moono-lisa/editor_gecko.css +1556 -1556
  47. package/CKEditor4/skins/moono-lisa/editor_ie.css +1588 -1588
  48. package/CKEditor4/skins/moono-lisa/editor_ie8.css +1639 -1639
  49. package/CKEditor4/skins/moono-lisa/editor_iequirks.css +1632 -1632
  50. package/CKEditor4/skins/moono-lisa/readme.md +46 -46
  51. package/CKEditor4/styles.js +136 -136
  52. package/CKEditor4/vendor/promise.js +385 -385
  53. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Kamlesh Kushwaha
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Kamlesh Kushwaha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -1,2 +1,2 @@
1
- # lineheight
2
- Ckeditor lineheight plugin repository
1
+ # lineheight
2
+ Ckeditor lineheight plugin repository
@@ -1,3 +1,3 @@
1
- CKEDITOR.plugins.setLang('lineheight', 'vi', {
2
- title: 'T↕',
3
- });
1
+ CKEDITOR.plugins.setLang('lineheight', 'vi', {
2
+ title: 'T↕',
3
+ });
@@ -1,99 +1,99 @@
1
- (function () {
2
- function addCombo(editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition, order) {
3
- var config = editor.config,
4
- style = new CKEDITOR.style(styleDefinition);
5
- var names = entries.split(';'),
6
- values = [];
7
- var styles = {};
8
- for (var i = 0; i < names.length; i++) {
9
- var parts = names[i];
10
- if (parts) {
11
- parts = parts.split('/');
12
- var vars = {},
13
- name = (names[i] = parts[0]);
14
- vars[styleType] = values[i] = parts[1] || name;
15
- styles[name] = new CKEDITOR.style(styleDefinition, vars);
16
- styles[name]._.definition.name = name;
17
- } else names.splice(i--, 1);
18
- }
19
- editor.ui.addRichCombo(comboName, {
20
- label: editor.lang.lineheight.title,
21
- title: editor.lang.lineheight.title,
22
- toolbar: 'styles,' + order,
23
- allowedContent: style,
24
- requiredContent: style,
25
- panel: {
26
- css: [CKEDITOR.skin.getPath('editor')].concat(config.contentsCss),
27
- multiSelect: false,
28
- attributes: { 'aria-label': editor.lang.lineheight.title },
29
- },
30
- init: function () {
31
- this.startGroup(editor.lang.lineheight.title);
32
- for (var i = 0; i < names.length; i++) {
33
- var name = names[i];
34
- this.add(name, styles[name].buildPreview(), name);
35
- }
36
- },
37
- onClick: function (value) {
38
- editor.focus();
39
- editor.fire('saveSnapshot');
40
- var style = styles[value];
41
- editor[this.getValue() == value ? 'removeStyle' : 'applyStyle'](style);
42
- editor.fire('saveSnapshot');
43
- },
44
- onRender: function () {
45
- editor.on(
46
- 'selectionChange',
47
- function (ev) {
48
- var currentValue = this.getValue();
49
- var elementPath = ev.data.path,
50
- elements = elementPath.elements;
51
- for (var i = 0, element; i < elements.length; i++) {
52
- element = elements[i];
53
- for (var value in styles) {
54
- if (styles[value].checkElementMatch(element, true, editor)) {
55
- if (value != currentValue) this.setValue(value);
56
- return;
57
- }
58
- }
59
- }
60
- this.setValue('', defaultLabel);
61
- },
62
- this,
63
- );
64
- },
65
- refresh: function () {
66
- if (!editor.activeFilter.check(style)) this.setState(CKEDITOR.TRISTATE_DISABLED);
67
- },
68
- });
69
- }
70
- CKEDITOR.plugins.add('lineheight', {
71
- requires: 'richcombo',
72
- lang: 'vi,en',
73
- init: function (editor) {
74
- var config = editor.config;
75
- var defaultText = '(' + editor.lang.common.optionDefault + ')';
76
- addCombo(
77
- editor,
78
- 'lineheight',
79
- 'size',
80
- editor.lang.lineheight.title,
81
- config.line_height,
82
- editor.lang.lineheight.title,
83
- config.lineHeight_style,
84
- 40,
85
- );
86
- },
87
- });
88
- })();
89
- CKEDITOR.config.line_height = '1;1.1;1.25;1.5;1.75;2;2.5;3';
90
- CKEDITOR.config.lineHeight_style = {
91
- element: 'span',
92
- styles: { 'line-height': '#(size)' },
93
- overrides: [
94
- {
95
- element: 'line-height',
96
- attributes: { size: null },
97
- },
98
- ],
99
- };
1
+ (function () {
2
+ function addCombo(editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition, order) {
3
+ var config = editor.config,
4
+ style = new CKEDITOR.style(styleDefinition);
5
+ var names = entries.split(';'),
6
+ values = [];
7
+ var styles = {};
8
+ for (var i = 0; i < names.length; i++) {
9
+ var parts = names[i];
10
+ if (parts) {
11
+ parts = parts.split('/');
12
+ var vars = {},
13
+ name = (names[i] = parts[0]);
14
+ vars[styleType] = values[i] = parts[1] || name;
15
+ styles[name] = new CKEDITOR.style(styleDefinition, vars);
16
+ styles[name]._.definition.name = name;
17
+ } else names.splice(i--, 1);
18
+ }
19
+ editor.ui.addRichCombo(comboName, {
20
+ label: editor.lang.lineheight.title,
21
+ title: editor.lang.lineheight.title,
22
+ toolbar: 'styles,' + order,
23
+ allowedContent: style,
24
+ requiredContent: style,
25
+ panel: {
26
+ css: [CKEDITOR.skin.getPath('editor')].concat(config.contentsCss),
27
+ multiSelect: false,
28
+ attributes: { 'aria-label': editor.lang.lineheight.title },
29
+ },
30
+ init: function () {
31
+ this.startGroup(editor.lang.lineheight.title);
32
+ for (var i = 0; i < names.length; i++) {
33
+ var name = names[i];
34
+ this.add(name, styles[name].buildPreview(), name);
35
+ }
36
+ },
37
+ onClick: function (value) {
38
+ editor.focus();
39
+ editor.fire('saveSnapshot');
40
+ var style = styles[value];
41
+ editor[this.getValue() == value ? 'removeStyle' : 'applyStyle'](style);
42
+ editor.fire('saveSnapshot');
43
+ },
44
+ onRender: function () {
45
+ editor.on(
46
+ 'selectionChange',
47
+ function (ev) {
48
+ var currentValue = this.getValue();
49
+ var elementPath = ev.data.path,
50
+ elements = elementPath.elements;
51
+ for (var i = 0, element; i < elements.length; i++) {
52
+ element = elements[i];
53
+ for (var value in styles) {
54
+ if (styles[value].checkElementMatch(element, true, editor)) {
55
+ if (value != currentValue) this.setValue(value);
56
+ return;
57
+ }
58
+ }
59
+ }
60
+ this.setValue('', defaultLabel);
61
+ },
62
+ this,
63
+ );
64
+ },
65
+ refresh: function () {
66
+ if (!editor.activeFilter.check(style)) this.setState(CKEDITOR.TRISTATE_DISABLED);
67
+ },
68
+ });
69
+ }
70
+ CKEDITOR.plugins.add('lineheight', {
71
+ requires: 'richcombo',
72
+ lang: 'vi,en',
73
+ init: function (editor) {
74
+ var config = editor.config;
75
+ var defaultText = '(' + editor.lang.common.optionDefault + ')';
76
+ addCombo(
77
+ editor,
78
+ 'lineheight',
79
+ 'size',
80
+ editor.lang.lineheight.title,
81
+ config.line_height,
82
+ editor.lang.lineheight.title,
83
+ config.lineHeight_style,
84
+ 40,
85
+ );
86
+ },
87
+ });
88
+ })();
89
+ CKEDITOR.config.line_height = '1;1.1;1.25;1.5;1.75;2;2.5;3';
90
+ CKEDITOR.config.lineHeight_style = {
91
+ element: 'span',
92
+ styles: { 'line-height': '#(size)' },
93
+ overrides: [
94
+ {
95
+ element: 'line-height',
96
+ attributes: { size: null },
97
+ },
98
+ ],
99
+ };
@@ -1,30 +1,30 @@
1
- lineheight
2
- ==========
3
-
4
- CKEDITOR Line-height plugin documentation
5
- ----------------------------------------------
6
-
7
- Installation Notes:
8
-
9
- Adding plugin into the toolbar:
10
- Using CKBuilder is a recommended solution, however, if you have plugins developed by yourself or by third parties, you can add plugins to your local installation manually by following the steps described below:
11
- Extract the plugin .zip archive.
12
- Copy the plugin files to the plugins folder of your CKEditor installation. Each plugin must be placed in a sub-folder that matches its "technical" name.
13
-
14
- For example, the lineheight plugin would be installed into this folder: <CKEditor folder>/plugins/lineheight.
15
- Check and resolve plugin dependencies. If a plugin needs others to work, you will need to add these manually as well.
16
- Enable the plugin. Use the extraPlugins setting to add the plugin to your confiuration:
17
-
18
- config.extraPlugins = 'lineheight';
19
-
20
- Refer this link for configuring the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
21
-
22
-
23
- Customizing the lineheight values in the dropdown
24
- -------------------------------------------------------
25
- In order to have custom values of line-height instead of the default, you can add following line in the config.js file:
26
-
27
- config.line_height="1em;1.1em;1.2em;1.3em;1.4em;1.5em";
28
-
29
- Here, "em" is the unit of line-height which you can change to "px","%" or any other allowed unit for line-height.
30
- You can also change the numbers based on your requirements. You can have more range or low range , it all depends on your requirements.
1
+ lineheight
2
+ ==========
3
+
4
+ CKEDITOR Line-height plugin documentation
5
+ ----------------------------------------------
6
+
7
+ Installation Notes:
8
+
9
+ Adding plugin into the toolbar:
10
+ Using CKBuilder is a recommended solution, however, if you have plugins developed by yourself or by third parties, you can add plugins to your local installation manually by following the steps described below:
11
+ Extract the plugin .zip archive.
12
+ Copy the plugin files to the plugins folder of your CKEditor installation. Each plugin must be placed in a sub-folder that matches its "technical" name.
13
+
14
+ For example, the lineheight plugin would be installed into this folder: <CKEditor folder>/plugins/lineheight.
15
+ Check and resolve plugin dependencies. If a plugin needs others to work, you will need to add these manually as well.
16
+ Enable the plugin. Use the extraPlugins setting to add the plugin to your confiuration:
17
+
18
+ config.extraPlugins = 'lineheight';
19
+
20
+ Refer this link for configuring the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
21
+
22
+
23
+ Customizing the lineheight values in the dropdown
24
+ -------------------------------------------------------
25
+ In order to have custom values of line-height instead of the default, you can add following line in the config.js file:
26
+
27
+ config.line_height="1em;1.1em;1.2em;1.3em;1.4em;1.5em";
28
+
29
+ Here, "em" is the unit of line-height which you can change to "px","%" or any other allowed unit for line-height.
30
+ You can also change the numbers based on your requirements. You can have more range or low range , it all depends on your requirements.
@@ -1,82 +1,82 @@
1
- /*
2
- Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
- For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- CKEDITOR.dialog.add('anchor', function (c) {
6
- function f(b, a) {
7
- return b.createFakeElement(b.document.createElement('a', { attributes: a }), 'cke_anchor', 'anchor');
8
- }
9
- return {
10
- title: c.lang.link.anchor.title,
11
- minWidth: 300,
12
- minHeight: 60,
13
- getModel: function (b) {
14
- var a = b.getSelection();
15
- b = a.getRanges()[0];
16
- a = a.getSelectedElement();
17
- b.shrink(CKEDITOR.SHRINK_ELEMENT);
18
- (a = b.getEnclosedNode()) && a.type === CKEDITOR.NODE_TEXT && (a = a.getParent());
19
- a && !a.is('a') && (a = a.getAscendant('a') || a);
20
- b =
21
- a && a.type === CKEDITOR.NODE_ELEMENT && ('anchor' === a.data('cke-real-element-type') || a.is('a'))
22
- ? a
23
- : void 0;
24
- return b || null;
25
- },
26
- onOk: function () {
27
- var b = CKEDITOR.tools.trim(this.getValueOf('info', 'txtName')),
28
- b = { id: b, name: b, 'data-cke-saved-name': b },
29
- a = this.getModel(c);
30
- if (a)
31
- a.data('cke-realelement')
32
- ? ((b = f(c, b)), b.replace(a), CKEDITOR.env.ie && c.getSelection().selectElement(b))
33
- : a.setAttributes(b);
34
- else if (((a = (a = c.getSelection()) && a.getRanges()[0]), a.collapsed)) (b = f(c, b)), a.insertNode(b);
35
- else {
36
- CKEDITOR.env.ie && 9 > CKEDITOR.env.version && (b['class'] = 'cke_anchor');
37
- var d = a.clone();
38
- d.enlarge(CKEDITOR.ENLARGE_ELEMENT);
39
- for (
40
- var e = new CKEDITOR.dom.walker(d), d = d.collapsed ? d.startContainer : e.next(), g = a.createBookmark();
41
- d;
42
-
43
- )
44
- d.type === CKEDITOR.NODE_ELEMENT && d.getAttribute('data-cke-saved-name') && (d.remove(!0), e.reset()),
45
- (d = e.next());
46
- a.moveToBookmark(g);
47
- b = new CKEDITOR.style({ element: 'a', attributes: b });
48
- b.type = CKEDITOR.STYLE_INLINE;
49
- b.applyToRange(a);
50
- }
51
- },
52
- onShow: function () {
53
- var b = c.getSelection(),
54
- a = this.getModel(c),
55
- d = a && a.data('cke-realelement');
56
- if ((a = d ? CKEDITOR.plugins.link.tryRestoreFakeAnchor(c, a) : CKEDITOR.plugins.link.getSelectedLink(c))) {
57
- var e = a.data('cke-saved-name');
58
- this.setValueOf('info', 'txtName', e || '');
59
- !d && b.selectElement(a);
60
- }
61
- this.getContentElement('info', 'txtName').focus();
62
- },
63
- contents: [
64
- {
65
- id: 'info',
66
- label: c.lang.link.anchor.title,
67
- accessKey: 'I',
68
- elements: [
69
- {
70
- type: 'text',
71
- id: 'txtName',
72
- label: c.lang.link.anchor.name,
73
- required: !0,
74
- validate: function () {
75
- return this.getValue() ? !0 : (alert(c.lang.link.anchor.errorName), !1);
76
- },
77
- },
78
- ],
79
- },
80
- ],
81
- };
82
- });
1
+ /*
2
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
+ For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ CKEDITOR.dialog.add('anchor', function (c) {
6
+ function f(b, a) {
7
+ return b.createFakeElement(b.document.createElement('a', { attributes: a }), 'cke_anchor', 'anchor');
8
+ }
9
+ return {
10
+ title: c.lang.link.anchor.title,
11
+ minWidth: 300,
12
+ minHeight: 60,
13
+ getModel: function (b) {
14
+ var a = b.getSelection();
15
+ b = a.getRanges()[0];
16
+ a = a.getSelectedElement();
17
+ b.shrink(CKEDITOR.SHRINK_ELEMENT);
18
+ (a = b.getEnclosedNode()) && a.type === CKEDITOR.NODE_TEXT && (a = a.getParent());
19
+ a && !a.is('a') && (a = a.getAscendant('a') || a);
20
+ b =
21
+ a && a.type === CKEDITOR.NODE_ELEMENT && ('anchor' === a.data('cke-real-element-type') || a.is('a'))
22
+ ? a
23
+ : void 0;
24
+ return b || null;
25
+ },
26
+ onOk: function () {
27
+ var b = CKEDITOR.tools.trim(this.getValueOf('info', 'txtName')),
28
+ b = { id: b, name: b, 'data-cke-saved-name': b },
29
+ a = this.getModel(c);
30
+ if (a)
31
+ a.data('cke-realelement')
32
+ ? ((b = f(c, b)), b.replace(a), CKEDITOR.env.ie && c.getSelection().selectElement(b))
33
+ : a.setAttributes(b);
34
+ else if (((a = (a = c.getSelection()) && a.getRanges()[0]), a.collapsed)) (b = f(c, b)), a.insertNode(b);
35
+ else {
36
+ CKEDITOR.env.ie && 9 > CKEDITOR.env.version && (b['class'] = 'cke_anchor');
37
+ var d = a.clone();
38
+ d.enlarge(CKEDITOR.ENLARGE_ELEMENT);
39
+ for (
40
+ var e = new CKEDITOR.dom.walker(d), d = d.collapsed ? d.startContainer : e.next(), g = a.createBookmark();
41
+ d;
42
+
43
+ )
44
+ d.type === CKEDITOR.NODE_ELEMENT && d.getAttribute('data-cke-saved-name') && (d.remove(!0), e.reset()),
45
+ (d = e.next());
46
+ a.moveToBookmark(g);
47
+ b = new CKEDITOR.style({ element: 'a', attributes: b });
48
+ b.type = CKEDITOR.STYLE_INLINE;
49
+ b.applyToRange(a);
50
+ }
51
+ },
52
+ onShow: function () {
53
+ var b = c.getSelection(),
54
+ a = this.getModel(c),
55
+ d = a && a.data('cke-realelement');
56
+ if ((a = d ? CKEDITOR.plugins.link.tryRestoreFakeAnchor(c, a) : CKEDITOR.plugins.link.getSelectedLink(c))) {
57
+ var e = a.data('cke-saved-name');
58
+ this.setValueOf('info', 'txtName', e || '');
59
+ !d && b.selectElement(a);
60
+ }
61
+ this.getContentElement('info', 'txtName').focus();
62
+ },
63
+ contents: [
64
+ {
65
+ id: 'info',
66
+ label: c.lang.link.anchor.title,
67
+ accessKey: 'I',
68
+ elements: [
69
+ {
70
+ type: 'text',
71
+ id: 'txtName',
72
+ label: c.lang.link.anchor.name,
73
+ required: !0,
74
+ validate: function () {
75
+ return this.getValue() ? !0 : (alert(c.lang.link.anchor.errorName), !1);
76
+ },
77
+ },
78
+ ],
79
+ },
80
+ ],
81
+ };
82
+ });