Skip to content

Commit

Permalink
2.47.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 authored Feb 3, 2025
2 parents 6376ead + 0054a81 commit 6a2d3f2
Show file tree
Hide file tree
Showing 10 changed files with 212 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/suneditor.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.47.3",
"version": "2.47.4",
"description": "Vanilla javascript based WYSIWYG web editor, with no dependencies",
"author": "JiHong.Lee",
"license": "MIT",
Expand Down Expand Up @@ -45,7 +45,7 @@
"karma": "~6.3.19",
"karma-chrome-launcher": "~2.2.0",
"karma-jasmine": "~1.1.2",
"katex": "~0.16.10",
"katex": "^0.16.21",
"mini-css-extract-plugin": "~0.4.5",
"optimize-css-assets-webpack-plugin": "~5.0.4",
"url-loader": "~1.1.2",
Expand Down
4 changes: 3 additions & 1 deletion sample/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ <h4 style="color: #b94a48;">--Layout</h4>
<option value="es">es</option>
<option value="fr">fr</option>
<option value="he">he</option>
<option value="hu">hu</option>
<option value="it">it</option>
<option value="ja">ja</option>
<option value="ko">ko</option>s
Expand Down Expand Up @@ -600,6 +601,7 @@ <h2 class="sub-title">Applied options</h2>
<script src="../../src/lang/es.js"></script>
<script src="../../src/lang/fr.js"></script>
<script src="../../src/lang/he.js"></script>
<script src="../../src/lang/hu.js"></script>
<script src="../../src/lang/it.js"></script>
<script src="../../src/lang/ja.js"></script>
<script src="../../src/lang/ko.js"></script>
Expand Down Expand Up @@ -805,4 +807,4 @@ <h2 class="sub-title">Applied options</h2>
sun_create();
</script>
</body>
</html>
</html>
5 changes: 5 additions & 0 deletions src/lang/hu.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Lang } from './Lang';

declare const hu: Lang;

export default hu;
188 changes: 188 additions & 0 deletions src/lang/hu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
/*
* wysiwyg web editor
*
* suneditor.js
* Copyright 2017 JiHong Lee.
* MIT license.
*/
'use strict';

(function (global, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = global.document ?
factory(global, true) :
function (w) {
if (!w.document) {
throw new Error('SUNEDITOR_LANG a window with a document');
}
return factory(w);
};
} else {
factory(global);
}
}(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
const lang = {
code: 'hu',
toolbar: {
default: 'Alapértelmezett',
save: 'Mentés',
font: 'Betűtípus',
formats: 'Formázás',
fontSize: 'Betűméret',
bold: 'Félkövér',
underline: 'Aláhúzott',
italic: 'Dőlt',
strike: 'Áthúzott',
subscript: 'Alsó index',
superscript: 'Felső index',
removeFormat: 'Formázás törlése',
fontColor: 'Betűszín',
hiliteColor: 'Háttérszín',
indent: 'Behúzás növelése',
outdent: 'Behúzás csökkentése',
align: 'Igazítás',
alignLeft: 'Balra igazítás',
alignRight: 'Jobbra igazítás',
alignCenter: 'Középre igazítás',
alignJustify: 'Sorkizárt',
list: 'Lista',
orderList: 'Számozott lista',
unorderList: 'Számozatlan lista',
horizontalRule: 'Elválasztó',
hr_solid: 'Folytonos',
hr_dotted: 'Pontozott',
hr_dashed: 'Szaggatott',
table: 'Táblázat',
link: 'Link',
math: 'Matematika',
image: 'Kép',
video: 'Videó',
audio: 'Hang',
fullScreen: 'Teljes képernyő',
showBlocks: 'Blokkok megjelenítése',
codeView: 'Forráskód nézet',
undo: 'Visszavonás',
redo: 'Visszavonás visszavonása',
preview: 'Előnézet',
print: 'Nyomtatás',
tag_p: 'Bekezdés',
tag_div: 'Normál (DIV)',
tag_h: 'Fejléc',
tag_blockquote: 'Idézet',
tag_pre: 'Kód',
template: 'Minta',
lineHeight: 'Sormagasság',
paragraphStyle: 'Bekezdésstílus',
textStyle: 'Betűstílus',
imageGallery: 'Képgalléria',
dir_ltr: 'Balról jobbra',
dir_rtl: 'Jobbról balra',
mention: 'Említés'
},
dialogBox: {
linkBox: {
title: 'Link beszúrása',
url: 'URL',
text: 'Megjelenített szöveg',
newWindowCheck: 'Megnyitás új ablakban',
downloadLinkCheck: 'Letöltési hivatkozás',
bookmark: 'Könyvjelző'
},
mathBox: {
title: 'Matematika',
inputLabel: 'Matematikai jelölések',
fontSizeLabel: 'Betűméret',
previewLabel: 'Előnézet'
},
imageBox: {
title: 'Kép beszúrása',
file: 'Fájlfeltöltés',
url: 'Képhivatkozás',
altText: 'Alternatív szöveg'
},
videoBox: {
title: 'Videó beszúrása',
file: 'Fájlfeltöltés',
url: 'Beágyazható URL, YouTube/Vimeo'
},
audioBox: {
title: 'Hang beszúrása',
file: 'Fájlfeltöltés',
url: 'Hang URL'
},
browser: {
tags: 'Címkék',
search: 'Keresés',
},
caption: 'Képaláírás',
close: 'Bezárás',
submitButton: 'Küldés',
revertButton: 'Mégse',
proportion: 'Méretkorlátok',
basic: 'Alapszintű',
left: 'Balra',
right: 'Jobbra',
center: 'Középre',
width: 'Szélesség',
height: 'Magasság',
size: 'Méret',
ratio: 'Képarány'
},
controller: {
edit: 'Szerkesztés',
unlink: 'Link eltávolítása',
remove: 'Törlés',
insertRowAbove: 'Új sor fölötte',
insertRowBelow: 'Új sor alatta',
deleteRow: 'Sor törlése',
insertColumnBefore: 'Új oszlop balra',
insertColumnAfter: 'Új oszlop jobbra',
deleteColumn: 'Oszlop törlése',
fixedColumnWidth: 'Rögzített oszlopszélesség',
resize100: 'Átméretezés: 100%',
resize75: 'Átméretezés: 75%',
resize50: 'Átméretezés: 50%',
resize25: 'Átméretezés: 25%',
autoSize: 'Automatikus méret',
mirrorHorizontal: 'Vízszintes tükrözés',
mirrorVertical: 'Függőleges tükrözés',
rotateLeft: 'Forgatás balra',
rotateRight: 'Forgatás jobbra',
maxSize: 'Maximális méret',
minSize: 'Minimális méret',
tableHeader: 'Táblázatfejléc',
mergeCells: 'Cellák egyesítése',
splitCells: 'Cellák szétválasztása',
HorizontalSplit: 'Szétválasztás vízszintesen',
VerticalSplit: 'Szétválasztás függőlegesen'
},
menu: {
spaced: 'Széthúzott',
bordered: 'Körvonal',
neon: 'Neon',
translucent: 'Áttetsző',
shadow: 'Árnyék',
code: 'Kód'
}
};

if (typeof noGlobal === typeof undefined) {
if (!window.SUNEDITOR_LANG) {
Object.defineProperty(window, 'SUNEDITOR_LANG', {
enumerable: true,
writable: false,
configurable: false,
value: {}
});
}

Object.defineProperty(window.SUNEDITOR_LANG, 'hu', {
enumerable: true,
writable: true,
configurable: true,
value: lang
});
}

return lang;
}));
3 changes: 2 additions & 1 deletion src/lang/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import en from './en';
import es from './es';
import fr from './fr';
import he from './he';
import hu from './hu';
import it from './it';
import ja from './ja';
import ko from './ko';
Expand All @@ -20,4 +21,4 @@ import ua from './ua';
import ur from './ur';
import zh_cn from './zh_cn';

export { ckb, cs, da, de, en, es, fr, he, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
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 };
5 changes: 3 additions & 2 deletions src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import en from './en';
import es from './es';
import fr from './fr';
import he from './he';
import hu from './hu';
import it from './it';
import ja from './ja';
import ko from './ko';
Expand All @@ -22,5 +23,5 @@ import ua from './ua';
import ur from './ur';
import zh_cn from './zh_cn';

export { ckb, cs, da, de, en, es, fr, he, it, ja, ko, lv, nl, pl, pt_br, ro, ru, se, ua, ur, zh_cn };
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 };
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 };
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 };
2 changes: 2 additions & 0 deletions src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,7 @@ const util = {
child = children[i];
next = children[i + 1];
if (!child) break;
if (inst.isBreak(child) || inst.isMedia(child) || inst.isInputElement(child)) continue;
if((onlyText && inst._isIgnoreNodeChange(child)) || (!onlyText && (inst.isTable(child) || inst.isListCell(child) || (inst.isFormatElement(child) && !inst.isFreeFormatElement(child))))) {
if (inst.isTable(child) || inst.isListCell(child)) {
recursionFunc(child, depth + 1, i);
Expand Down Expand Up @@ -1646,6 +1647,7 @@ const util = {
current.parentNode.insertBefore(child, current);
inst.removeItem(current);
}

if (!next) {
if (child.nodeType === 1) recursionFunc(child, depth + 1, i);
break;
Expand Down
5 changes: 1 addition & 4 deletions test/dev/suneditor_build_test.js

Large diffs are not rendered by default.

0 comments on commit 6a2d3f2

Please sign in to comment.