Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Sep 7, 2018
2 parents d4b3f97 + a57ef83 commit 4714c66
Show file tree
Hide file tree
Showing 24 changed files with 303 additions and 36 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trumbowyg",
"version": "2.10.0",
"version": "2.11.0",
"homepage": "https://github.com/Alex-D/Trumbowyg",
"authors": [
{
Expand Down
20 changes: 14 additions & 6 deletions docs/documentation/plugins/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -764,19 +764,27 @@ <h4>How to use it?</h4>
&lt;script src="node_modules/trumbowyg/dist/plugins/template/trumbowyg.template.min.js">&lt;/script>
</code></pre>
<p>
Then you can use the new button definition <code>template</code>
Then you can use the new button definition <code>template</code> and can add your template code.
</p>
<pre><code class="javascript">
$('#my-editor').trumbowyg({
btns: [
['template']
]
],
plugins: {
templates: [
{
name: 'Template 1',
html: '<p>I am a template!</p>'
},
{
name: 'Template 2',
html: '<p>I am a different template!</p>'
}
]
}
});
</code></pre>
<p class="note">
Some doc to write about template options/definition... <br>
You can contribute to this documentation by submitting a Pull Request :)
</p>
</div>

<div class="feature">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trumbowyg",
"title": "Trumbowyg",
"description": "A lightweight WYSIWYG editor",
"version": "2.10.0",
"version": "2.11.0",
"main": "dist/trumbowyg.js",
"homepage": "http://alex-d.github.io/Trumbowyg",
"author": {
Expand Down
14 changes: 13 additions & 1 deletion plugins/base64/trumbowyg.base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
errFileReaderNotSupported: 'FileReader is not supported by your browser.',
errInvalidImage: 'Invalid image file.'
},
da: {
base64: 'Billede som base64',
file: 'Fil',
errFileReaderNotSupported: 'FileReader er ikke understøttet af din browser.',
errInvalidImage: 'Ugyldig billedfil.'
},
fr: {
base64: 'Image en base64',
file: 'Fichier'
Expand Down Expand Up @@ -61,7 +67,13 @@
file: 'Dosya',
errFileReaderNotSupported: 'FileReader tarayıcınız tarafından desteklenmiyor.',
errInvalidImage: 'Geçersiz resim dosyası.'
}
},
zh_tw: {
base64: '圖片(base64編碼)',
file: '檔案',
errFileReaderNotSupported: '你的瀏覽器不支援FileReader',
errInvalidImage: '不正確的檔案格式'
},
},
// jshint camelcase:true

Expand Down
15 changes: 14 additions & 1 deletion plugins/colors/trumbowyg.colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@
foreColor: 'Text color',
backColor: 'Background color'
},
da: {
foreColor: 'Tekstfarve',
backColor: 'Baggrundsfarve'
},
fr: {
foreColor: 'Couleur du texte',
backColor: 'Couleur de fond'
},
de: {
foreColor: 'Textfarbe',
backColor: 'Hintergrundfarbe'
},
nl: {
foreColor: 'Tekstkleur',
backColor: 'Achtergrondkleur'
Expand All @@ -38,6 +46,10 @@
foreColor: '文字颜色',
backColor: '背景颜色'
},
zh_tw: {
foreColor: '文字顏色',
backColor: '背景顏色'
},
ru: {
foreColor: 'Цвет текста',
backColor: 'Цвет выделения текста'
Expand Down Expand Up @@ -163,6 +175,7 @@
{
color: {
label: fn,
type: 'color',
value: '#FFFFFF'
}
},
Expand All @@ -182,4 +195,4 @@

return dropdown;
}
})(jQuery);
})(jQuery);
3 changes: 3 additions & 0 deletions plugins/emoji/trumbowyg.emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,9 @@
en: {
emoji: 'Add an emoji'
},
da: {
emoji: 'Tilføj et humørikon'
},
fr: {
emoji: 'Ajouter un emoji'
},
Expand Down
9 changes: 9 additions & 0 deletions plugins/fontfamily/trumbowyg.fontfamily.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,23 @@
en: {
fontFamily: 'Font'
},
da: {
fontFamily: 'Skrifttype'
},
fr: {
fontFamily: 'Police'
},
de: {
fontFamily: 'Schriftart'
},
nl: {
fontFamily: 'Lettertype'
},
tr: {
fontFamily: 'Yazı Tipi'
},
zh_tw:{
fontFamily: '字體',
}
}
});
Expand Down
51 changes: 47 additions & 4 deletions plugins/fontsize/trumbowyg.fontsize.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
'large': 'Large',
'x-large': 'Extra large',
'custom': 'Custom'
},
fontCustomSize: {
title: 'Custom Font Size',
label: 'Font Size',
value: '48px'
}
},
da: {
fontsize: 'Skriftstørrelse',
fontsizes: {
'x-small': 'Ekstra lille',
'small': 'Lille',
'medium': 'Normal',
'large': 'Stor',
'x-large': 'Ekstra stor',
'custom': 'Brugerdefineret'
}
},
fr: {
Expand All @@ -26,6 +42,17 @@
'custom': 'Douane'
}
},
de: {
fontsize: 'Font size',
fontsizes: {
'x-small': 'Sehr klein',
'small': 'Klein',
'medium': 'Normal',
'large': 'Groß',
'x-large': 'Sehr groß',
'custom': 'Benutzerdefiniert'
}
},
nl: {
fontsize: 'Lettergrootte',
fontsizes: {
Expand All @@ -47,6 +74,22 @@
'x-large': 'Çok Büyük',
'custom': 'Görenek'
}
},
zh_tw: {
fontsize: '字體大小',
fontsizes: {
'x-small': '最小',
'small': '小',
'medium': '中',
'large': '大',
'x-large': '最大',
'custom': '自訂大小',
},
fontCustomSize: {
title: '自訂義字體大小',
label: '字體大小',
value: '48px'
}
}
}
});
Expand Down Expand Up @@ -83,11 +126,11 @@
var freeSizeButtonName = 'fontsize_custom',
freeSizeBtnDef = {
fn: function () {
trumbowyg.openModalInsert('Custom Font Size',
trumbowyg.openModalInsert(trumbowyg.lang.fontCustomSize.title,
{
size: {
label: 'Font Size',
value: '48px'
label: trumbowyg.lang.fontCustomSize.label,
value: trumbowyg.lang.fontCustomSize.value
}
},
function (values) {
Expand All @@ -114,4 +157,4 @@

return dropdown;
}
})(jQuery);
})(jQuery);
14 changes: 13 additions & 1 deletion plugins/history/trumbowyg.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,23 @@
undo: 'Undo'
}
},
da: {
history: {
redo: 'Annuller fortryd',
undo: 'Fortryd'
}
},
fr: {
history: {
redo: 'Annuler',
undo: 'Rétablir'
}
},
zh_tw: {
history: {
redo: '重做',
undo: '復原'
}
}
},
plugins: {
Expand Down Expand Up @@ -187,4 +199,4 @@
}
}
});
})(jQuery);
})(jQuery);
3 changes: 3 additions & 0 deletions plugins/insertaudio/trumbowyg.insertaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
en: {
insertAudio: 'Insert Audio'
},
da: {
insertAudio: 'Indsæt lyd'
},
fr: {
insertAudio: 'Insérer un son'
},
Expand Down
20 changes: 19 additions & 1 deletion plugins/lineheight/trumbowyg.lineheight.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
'2.0': 'Extra large'
}
},
da: {
lineheight: 'Linjehøjde',
lineheights: {
'0.9': 'Lille',
'normal': 'Normal',
'1.5': 'Stor',
'2.0': 'Ekstra stor'
}
},
fr: {
lineheight: 'Hauteur de ligne',
lineheights: {
Expand All @@ -39,7 +48,16 @@
'1.5': 'Büyük',
'2.0': 'Çok Büyük'
}
}
},
zh_tw: {
lineheight: '文字間距',
lineheights: {
'0.9': '小',
'normal': '正常',
'1.5': '大',
'2.0': '特大'
}
},
}
});
// jshint camelcase:true
Expand Down
12 changes: 11 additions & 1 deletion plugins/mathml/trumbowyg.mathml.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
formulas: 'Formulas',
inline: 'Inline'
},
da: {
mathml: 'Indsæt formler',
formulas: 'Formler',
inline: 'Inline'
},
fr: {
mathml: 'Inserer une formule',
formulas: 'Formule',
Expand All @@ -25,7 +30,12 @@
mathml: 'Formül Ekle',
formulas: 'Formüller',
inline: 'Satır içi'
}
},
zh_tw: {
mathml: '插入方程式',
formulas: '方程式',
inline: '內嵌'
},
},
plugins: {
mathml: {
Expand Down
8 changes: 7 additions & 1 deletion plugins/mention/trumbowyg.mention.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
en: {
mention: 'Mention'
},
da: {
mention: 'Nævn'
},
fr: {
mention: 'Mentioner'
},
Expand All @@ -30,7 +33,10 @@
},
tr: {
mention: 'Bahset'
}
},
zh_tw: {
mention: '標記'
},
},

plugins: {
Expand Down
11 changes: 9 additions & 2 deletions plugins/noembed/trumbowyg.noembed.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
noembed: 'Noembed',
noembedError: 'Error'
},
da: {
noembedError: 'Fejl'
},
sk: {
noembedError: 'Chyba'
},
Expand All @@ -40,7 +43,11 @@
},
tr: {
noembedError: 'Hata'
}
},
zh_tw: {
noembed: '插入影片',
noembedError: '錯誤'
},
},

plugins: {
Expand Down Expand Up @@ -101,4 +108,4 @@
}
}
});
})(jQuery);
})(jQuery);
Loading

0 comments on commit 4714c66

Please sign in to comment.