Skip to content

Commit 6a2d3f2

Browse files
authored
2.47.4
2 parents 6376ead + 0054a81 commit 6a2d3f2

File tree

10 files changed

+212
-16
lines changed

10 files changed

+212
-16
lines changed

dist/suneditor.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "suneditor",
3-
"version": "2.47.3",
3+
"version": "2.47.4",
44
"description": "Vanilla javascript based WYSIWYG web editor, with no dependencies",
55
"author": "JiHong.Lee",
66
"license": "MIT",
@@ -45,7 +45,7 @@
4545
"karma": "~6.3.19",
4646
"karma-chrome-launcher": "~2.2.0",
4747
"karma-jasmine": "~1.1.2",
48-
"katex": "~0.16.10",
48+
"katex": "^0.16.21",
4949
"mini-css-extract-plugin": "~0.4.5",
5050
"optimize-css-assets-webpack-plugin": "~5.0.4",
5151
"url-loader": "~1.1.2",

sample/html/options.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ <h4 style="color: #b94a48;">--Layout</h4>
135135
<option value="es">es</option>
136136
<option value="fr">fr</option>
137137
<option value="he">he</option>
138+
<option value="hu">hu</option>
138139
<option value="it">it</option>
139140
<option value="ja">ja</option>
140141
<option value="ko">ko</option>s
@@ -600,6 +601,7 @@ <h2 class="sub-title">Applied options</h2>
600601
<script src="../../src/lang/es.js"></script>
601602
<script src="../../src/lang/fr.js"></script>
602603
<script src="../../src/lang/he.js"></script>
604+
<script src="../../src/lang/hu.js"></script>
603605
<script src="../../src/lang/it.js"></script>
604606
<script src="../../src/lang/ja.js"></script>
605607
<script src="../../src/lang/ko.js"></script>
@@ -805,4 +807,4 @@ <h2 class="sub-title">Applied options</h2>
805807
sun_create();
806808
</script>
807809
</body>
808-
</html>
810+
</html>

src/lang/hu.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Lang } from './Lang';
2+
3+
declare const hu: Lang;
4+
5+
export default hu;

src/lang/hu.js

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
/*
2+
* wysiwyg web editor
3+
*
4+
* suneditor.js
5+
* Copyright 2017 JiHong Lee.
6+
* MIT license.
7+
*/
8+
'use strict';
9+
10+
(function (global, factory) {
11+
if (typeof module === 'object' && typeof module.exports === 'object') {
12+
module.exports = global.document ?
13+
factory(global, true) :
14+
function (w) {
15+
if (!w.document) {
16+
throw new Error('SUNEDITOR_LANG a window with a document');
17+
}
18+
return factory(w);
19+
};
20+
} else {
21+
factory(global);
22+
}
23+
}(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
24+
const lang = {
25+
code: 'hu',
26+
toolbar: {
27+
default: 'Alapértelmezett',
28+
save: 'Mentés',
29+
font: 'Betűtípus',
30+
formats: 'Formázás',
31+
fontSize: 'Betűméret',
32+
bold: 'Félkövér',
33+
underline: 'Aláhúzott',
34+
italic: 'Dőlt',
35+
strike: 'Áthúzott',
36+
subscript: 'Alsó index',
37+
superscript: 'Felső index',
38+
removeFormat: 'Formázás törlése',
39+
fontColor: 'Betűszín',
40+
hiliteColor: 'Háttérszín',
41+
indent: 'Behúzás növelése',
42+
outdent: 'Behúzás csökkentése',
43+
align: 'Igazítás',
44+
alignLeft: 'Balra igazítás',
45+
alignRight: 'Jobbra igazítás',
46+
alignCenter: 'Középre igazítás',
47+
alignJustify: 'Sorkizárt',
48+
list: 'Lista',
49+
orderList: 'Számozott lista',
50+
unorderList: 'Számozatlan lista',
51+
horizontalRule: 'Elválasztó',
52+
hr_solid: 'Folytonos',
53+
hr_dotted: 'Pontozott',
54+
hr_dashed: 'Szaggatott',
55+
table: 'Táblázat',
56+
link: 'Link',
57+
math: 'Matematika',
58+
image: 'Kép',
59+
video: 'Videó',
60+
audio: 'Hang',
61+
fullScreen: 'Teljes képernyő',
62+
showBlocks: 'Blokkok megjelenítése',
63+
codeView: 'Forráskód nézet',
64+
undo: 'Visszavonás',
65+
redo: 'Visszavonás visszavonása',
66+
preview: 'Előnézet',
67+
print: 'Nyomtatás',
68+
tag_p: 'Bekezdés',
69+
tag_div: 'Normál (DIV)',
70+
tag_h: 'Fejléc',
71+
tag_blockquote: 'Idézet',
72+
tag_pre: 'Kód',
73+
template: 'Minta',
74+
lineHeight: 'Sormagasság',
75+
paragraphStyle: 'Bekezdésstílus',
76+
textStyle: 'Betűstílus',
77+
imageGallery: 'Képgalléria',
78+
dir_ltr: 'Balról jobbra',
79+
dir_rtl: 'Jobbról balra',
80+
mention: 'Említés'
81+
},
82+
dialogBox: {
83+
linkBox: {
84+
title: 'Link beszúrása',
85+
url: 'URL',
86+
text: 'Megjelenített szöveg',
87+
newWindowCheck: 'Megnyitás új ablakban',
88+
downloadLinkCheck: 'Letöltési hivatkozás',
89+
bookmark: 'Könyvjelző'
90+
},
91+
mathBox: {
92+
title: 'Matematika',
93+
inputLabel: 'Matematikai jelölések',
94+
fontSizeLabel: 'Betűméret',
95+
previewLabel: 'Előnézet'
96+
},
97+
imageBox: {
98+
title: 'Kép beszúrása',
99+
file: 'Fájlfeltöltés',
100+
url: 'Képhivatkozás',
101+
altText: 'Alternatív szöveg'
102+
},
103+
videoBox: {
104+
title: 'Videó beszúrása',
105+
file: 'Fájlfeltöltés',
106+
url: 'Beágyazható URL, YouTube/Vimeo'
107+
},
108+
audioBox: {
109+
title: 'Hang beszúrása',
110+
file: 'Fájlfeltöltés',
111+
url: 'Hang URL'
112+
},
113+
browser: {
114+
tags: 'Címkék',
115+
search: 'Keresés',
116+
},
117+
caption: 'Képaláírás',
118+
close: 'Bezárás',
119+
submitButton: 'Küldés',
120+
revertButton: 'Mégse',
121+
proportion: 'Méretkorlátok',
122+
basic: 'Alapszintű',
123+
left: 'Balra',
124+
right: 'Jobbra',
125+
center: 'Középre',
126+
width: 'Szélesség',
127+
height: 'Magasság',
128+
size: 'Méret',
129+
ratio: 'Képarány'
130+
},
131+
controller: {
132+
edit: 'Szerkesztés',
133+
unlink: 'Link eltávolítása',
134+
remove: 'Törlés',
135+
insertRowAbove: 'Új sor fölötte',
136+
insertRowBelow: 'Új sor alatta',
137+
deleteRow: 'Sor törlése',
138+
insertColumnBefore: 'Új oszlop balra',
139+
insertColumnAfter: 'Új oszlop jobbra',
140+
deleteColumn: 'Oszlop törlése',
141+
fixedColumnWidth: 'Rögzített oszlopszélesség',
142+
resize100: 'Átméretezés: 100%',
143+
resize75: 'Átméretezés: 75%',
144+
resize50: 'Átméretezés: 50%',
145+
resize25: 'Átméretezés: 25%',
146+
autoSize: 'Automatikus méret',
147+
mirrorHorizontal: 'Vízszintes tükrözés',
148+
mirrorVertical: 'Függőleges tükrözés',
149+
rotateLeft: 'Forgatás balra',
150+
rotateRight: 'Forgatás jobbra',
151+
maxSize: 'Maximális méret',
152+
minSize: 'Minimális méret',
153+
tableHeader: 'Táblázatfejléc',
154+
mergeCells: 'Cellák egyesítése',
155+
splitCells: 'Cellák szétválasztása',
156+
HorizontalSplit: 'Szétválasztás vízszintesen',
157+
VerticalSplit: 'Szétválasztás függőlegesen'
158+
},
159+
menu: {
160+
spaced: 'Széthúzott',
161+
bordered: 'Körvonal',
162+
neon: 'Neon',
163+
translucent: 'Áttetsző',
164+
shadow: 'Árnyék',
165+
code: 'Kód'
166+
}
167+
};
168+
169+
if (typeof noGlobal === typeof undefined) {
170+
if (!window.SUNEDITOR_LANG) {
171+
Object.defineProperty(window, 'SUNEDITOR_LANG', {
172+
enumerable: true,
173+
writable: false,
174+
configurable: false,
175+
value: {}
176+
});
177+
}
178+
179+
Object.defineProperty(window.SUNEDITOR_LANG, 'hu', {
180+
enumerable: true,
181+
writable: true,
182+
configurable: true,
183+
value: lang
184+
});
185+
}
186+
187+
return lang;
188+
}));

src/lang/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import en from './en';
66
import es from './es';
77
import fr from './fr';
88
import he from './he';
9+
import hu from './hu';
910
import it from './it';
1011
import ja from './ja';
1112
import ko from './ko';
@@ -20,4 +21,4 @@ import ua from './ua';
2021
import ur from './ur';
2122
import zh_cn from './zh_cn';
2223

23-
export { ckb, cs, da, de, en, es, fr, he, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
24+
export { ckb, cs, da, de, en, es, fr, he, hu, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };

src/lang/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import en from './en';
88
import es from './es';
99
import fr from './fr';
1010
import he from './he';
11+
import hu from './hu';
1112
import it from './it';
1213
import ja from './ja';
1314
import ko from './ko';
@@ -22,5 +23,5 @@ import ua from './ua';
2223
import ur from './ur';
2324
import zh_cn from './zh_cn';
2425

25-
export { ckb, cs, da, de, en, es, fr, he, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
26-
export default { ckb, cs, da, de, en, es, fr, he, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
26+
export { ckb, cs, da, de, en, es, fr, he, hu, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
27+
export default { ckb, cs, da, de, en, es, fr, he, hu, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };

src/lib/util.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,7 @@ const util = {
16101610
child = children[i];
16111611
next = children[i + 1];
16121612
if (!child) break;
1613+
if (inst.isBreak(child) || inst.isMedia(child) || inst.isInputElement(child)) continue;
16131614
if((onlyText && inst._isIgnoreNodeChange(child)) || (!onlyText && (inst.isTable(child) || inst.isListCell(child) || (inst.isFormatElement(child) && !inst.isFreeFormatElement(child))))) {
16141615
if (inst.isTable(child) || inst.isListCell(child)) {
16151616
recursionFunc(child, depth + 1, i);
@@ -1646,6 +1647,7 @@ const util = {
16461647
current.parentNode.insertBefore(child, current);
16471648
inst.removeItem(current);
16481649
}
1650+
16491651
if (!next) {
16501652
if (child.nodeType === 1) recursionFunc(child, depth + 1, i);
16511653
break;

test/dev/suneditor_build_test.js

Lines changed: 1 addition & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)