diff --git a/src/assets/scripts/ads-add/ads-add.controller.js b/src/assets/scripts/ads-add/ads-add.controller.js new file mode 100644 index 0000000..c0846e9 --- /dev/null +++ b/src/assets/scripts/ads-add/ads-add.controller.js @@ -0,0 +1,12 @@ +const AdsAddController = ($scope, AdsAddService, $routeParams, UserService) => { + $scope.$on('loadUserSuccess', function (event, user) { + $scope.user = user; + + $scope.classifications = ['class1', 'class2']; + $scope.skills = ['s1', 's2']; + + }); + UserService.loadUser(); +} + +export default AdsAddController; \ No newline at end of file diff --git a/src/assets/scripts/ads-add/ads-add.html b/src/assets/scripts/ads-add/ads-add.html new file mode 100644 index 0000000..c9d59e5 --- /dev/null +++ b/src/assets/scripts/ads-add/ads-add.html @@ -0,0 +1,88 @@ +
+
+ +
+

Create a new Internship Ad

+
+ +
+
+ + + +
+
+
+
+
+ company +
+
+ +
{{user.company.name}}
+
+
+
+
+
+
About the business:
+ +
About the role:
+ +
+
+
+ + +
+
+
+
Location:
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
Application close:
+ + +
Main Classification:
+ + +
Skills:
+ +
+
{{classification}}
+
{{skill}}
+
+

Posted 3 days ago

+
+
+
+ + +
+ + +
+
+
+ + +
+ +
\ No newline at end of file diff --git a/src/assets/scripts/ads-add/ads-add.service.js b/src/assets/scripts/ads-add/ads-add.service.js new file mode 100644 index 0000000..c8759aa --- /dev/null +++ b/src/assets/scripts/ads-add/ads-add.service.js @@ -0,0 +1,8 @@ +const AdsAddService = ($http) => { + let serv = {}; + + + return serv; +} + +export default AdsAddService; \ No newline at end of file diff --git a/src/assets/scripts/ads-add/index.js b/src/assets/scripts/ads-add/index.js new file mode 100644 index 0000000..27aa25e --- /dev/null +++ b/src/assets/scripts/ads-add/index.js @@ -0,0 +1,13 @@ +import angular from 'angular'; +import ngRoute from 'angular-route'; +import ngCookie from 'angular-cookies'; +import AdsAddController from './ads-add.controller'; +import AdsAddService from './ads-add.service' + +angular.module('nwAdsAdd', [ngRoute, ngCookie]) + .config(['$httpProvider', function($httpProvider) { + $httpProvider.defaults.withCredentials = true; + }]) + .factory(AdsAddService.name, AdsAddService) + .controller(AdsAddController.name, AdsAddController); + \ No newline at end of file diff --git a/src/assets/scripts/ads-details/ads-details.html b/src/assets/scripts/ads-details/ads-details.html index 9fddd12..ecbc3b7 100644 --- a/src/assets/scripts/ads-details/ads-details.html +++ b/src/assets/scripts/ads-details/ads-details.html @@ -42,8 +42,8 @@

14th March 2019 (Friday)

Skills:
-
- {{ skill }} +
+ {{ skill }}

{{ daysAgo(ad.timestamp) }}

diff --git a/src/assets/scripts/app/index.js b/src/assets/scripts/app/index.js index a0935ed..db45c68 100644 --- a/src/assets/scripts/app/index.js +++ b/src/assets/scripts/app/index.js @@ -12,6 +12,7 @@ angular.module('NomitWisp', 'nwLogout', 'nwAds', 'nwAdsDetails', + 'nwAdsAdd', 'nwProfile', 'nwSignup', 'nwHistory', @@ -34,6 +35,10 @@ angular.module('NomitWisp', controller: 'AdsDetailsController', templateUrl: 'assets/scripts/ads-details/ads-details.html' }) + .when('/ads_add', { + controller: 'AdsAddController', + templateUrl: 'assets/scripts/ads-add/ads-add.html' + }) .when('/profile', { controller: 'ProfileController', templateUrl: 'assets/scripts/profile/profile.html' diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index 61d55b1..d0465e3 100755 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -5,7 +5,6 @@ import './masonry'; import './charts'; import './popover'; import './scrollbar'; -import './search'; import './sidebar'; import './skycons'; import './vectorMaps'; @@ -25,8 +24,10 @@ import './nwTopbar'; import './dashboard' import './ads'; import './ads-details'; +import './ads-add'; import './profile'; import './signup'; import './history'; +import './trumbowyg'; import './app'; \ No newline at end of file diff --git a/src/assets/scripts/nwTopbar/topbar.controller.js b/src/assets/scripts/nwTopbar/topbar.controller.js index 06709b1..131b569 100644 --- a/src/assets/scripts/nwTopbar/topbar.controller.js +++ b/src/assets/scripts/nwTopbar/topbar.controller.js @@ -1,3 +1,5 @@ +import functionSearch from '../search'; + /** @ngInject */ import Avatar from 'avatar-initials'; @@ -12,6 +14,7 @@ const TopbarController = ($scope, UserService) => { }); UserService.loadUser(); + functionSearch(); } export default TopbarController; \ No newline at end of file diff --git a/src/assets/scripts/search/index.js b/src/assets/scripts/search/index.js index bbd983b..7fa321f 100755 --- a/src/assets/scripts/search/index.js +++ b/src/assets/scripts/search/index.js @@ -1,9 +1,11 @@ import * as $ from 'jquery'; -export default (function () { +const functionSearch = () => { $('.search-toggle').on('click', e => { $('.search-box, .search-input').toggleClass('active'); $('.search-input input').focus(); e.preventDefault(); }); -}()); +} + +export default functionSearch; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/index.js b/src/assets/scripts/trumbowyg/index.js new file mode 100755 index 0000000..caa4d48 --- /dev/null +++ b/src/assets/scripts/trumbowyg/index.js @@ -0,0 +1,23 @@ +import * as $ from 'jquery'; +import './trumbowyg'; + +export default (function () { + $.trumbowyg.svgPath = '/assets/static/trumbowyg/icons.svg'; + window.addEventListener('load', () => { + if ($('.wysiwyg-editor').length > 0) { + $('.wysiwyg-editor').trumbowyg({ + btns: [ + ['undo', 'redo'], + ['formatting'], + ['strong'], + ['link'], + ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'], + ['unorderedList', 'orderedList'], + ['horizontalRule'], + ['removeformat'] + ], + autogrow: true + }); + } + }); +}()); diff --git a/src/assets/scripts/trumbowyg/langs/ar.js b/src/assets/scripts/trumbowyg/langs/ar.js new file mode 100755 index 0000000..a2f1e6b --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ar.js @@ -0,0 +1,67 @@ +/* =========================================================== + * ar.js + * Arabic translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Abo Mokh ahmed (abomokhahmed) + * Github : https://github.com/abomokhahmed + * Reviewed by : Abdellah Chadidi (chadidi) + * Github : https://github.com/chadidi + */ + +jQuery.trumbowyg.langs.ar = { + _dir: 'rtl', + + viewHTML: 'إعرض-HTML', + + undo: 'تراجع', + redo: 'إعادة', + + formatting: 'تنسيق', + + p: 'فقرة', + blockquote: 'اقتباس', + code: 'كود', + header: 'رأس', + + bold: 'عريض', + italic: 'مائل', + strikethrough: 'مشطوب', + underline: 'خطّ سفلي', + + strong: 'بارز', + em: 'تغميق', + del: 'حذف', + + superscript: 'الأس', + subscript: 'أس سفلي', + + unorderedList: 'قائمة غير مرتّبة', + orderedList: 'قائمة مرتّبة', + + insertImage: 'إدراج صورة', + insertVideo: 'إدراج فيديو', + link: 'رابط', + createLink: 'انشاء رابط', + unlink: 'حذف رابط', + + justifyLeft: 'تصحيح للشمال', + justifyCenter: 'توسيط', + justifyRight: 'تصحيح لليمين', + justifyFull: 'تصحيح لكلا الإتّجاهين', + + horizontalRule: 'إدراج خطّ أفقي', + + fullscreen: 'ملء الشاشة', + + close: 'إغلاق', + + submit: 'إرسال', + reset: 'إعادة تعيين', + + required: 'إلزامي', + description: 'وصف', + title: 'عنوان', + text: 'نصّ', + target: 'الهدف' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ar.min.js b/src/assets/scripts/trumbowyg/langs/ar.min.js new file mode 100755 index 0000000..d9a05bd --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ar.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * ar.js + * Arabic translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Abo Mokh ahmed (abomokhahmed) + * Github : https://github.com/abomokhahmed + * Reviewed by : Abdellah Chadidi (chadidi) + * Github : https://github.com/chadidi + */ +jQuery.trumbowyg.langs.ar={_dir:"rtl",viewHTML:"إعرض-HTML",undo:"تراجع",redo:"إعادة",formatting:"تنسيق",p:"فقرة",blockquote:"اقتباس",code:"كود",header:"رأس",bold:"عريض",italic:"مائل",strikethrough:"مشطوب",underline:"خطّ سفلي",strong:"بارز",em:"تغميق",del:"حذف",superscript:"الأس",subscript:"أس سفلي",unorderedList:"قائمة غير مرتّبة",orderedList:"قائمة مرتّبة",insertImage:"إدراج صورة",insertVideo:"إدراج فيديو",link:"رابط",createLink:"انشاء رابط",unlink:"حذف رابط",justifyLeft:"تصحيح للشمال",justifyCenter:"توسيط",justifyRight:"تصحيح لليمين",justifyFull:"تصحيح لكلا الإتّجاهين",horizontalRule:"إدراج خطّ أفقي",fullscreen:"ملء الشاشة",close:"إغلاق",submit:"إرسال",reset:"إعادة تعيين",required:"إلزامي",description:"وصف",title:"عنوان",text:"نصّ",target:"الهدف"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/bg.js b/src/assets/scripts/trumbowyg/langs/bg.js new file mode 100755 index 0000000..4e16818 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/bg.js @@ -0,0 +1,54 @@ +/* =========================================================== + * bg.js + * Bulgarian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Aleksandar Dimitrov + */ + +jQuery.trumbowyg.langs.bg = { + viewHTML: 'Прегледай HTML', + + formatting: 'Форматиране', + p: 'Параграф', + blockquote: 'Цитат', + code: 'Код', + header: 'Заглавие', + + bold: 'Удебелен', + italic: 'Наклонен', + strikethrough: 'Зачеркнат', + underline: 'Подчертан', + + strong: 'Удебелен', + em: 'Наклонен', + del: 'Зачеркнат', + + unorderedList: 'Обикновен списък', + orderedList: 'Номериран списък', + + insertImage: 'Добави изображение', + insertVideo: 'Добави видео', + link: 'Връзка', + createLink: 'Създай връзка', + unlink: 'Премахни връзката', + + justifyLeft: 'Подравни от ляво', + justifyCenter: 'Центрирай', + justifyRight: 'Подравни от дясно', + justifyFull: 'Подравни по ширина', + + horizontalRule: 'Хоризонтална линия', + + fullscreen: 'На цял екран', + + close: 'Затвори', + + submit: 'Впиши', + reset: 'Отмени', + + required: 'Задължително', + description: 'Описание', + title: 'Заглавие', + text: 'Текст' +}; diff --git a/src/assets/scripts/trumbowyg/langs/bg.min.js b/src/assets/scripts/trumbowyg/langs/bg.min.js new file mode 100755 index 0000000..1614baa --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/bg.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * bg.js + * Bulgarian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Aleksandar Dimitrov + */ +jQuery.trumbowyg.langs.bg={viewHTML:"Прегледай HTML",formatting:"Форматиране",p:"Параграф",blockquote:"Цитат",code:"Код",header:"Заглавие",bold:"Удебелен",italic:"Наклонен",strikethrough:"Зачеркнат",underline:"Подчертан",strong:"Удебелен",em:"Наклонен",del:"Зачеркнат",unorderedList:"Обикновен списък",orderedList:"Номериран списък",insertImage:"Добави изображение",insertVideo:"Добави видео",link:"Връзка",createLink:"Създай връзка",unlink:"Премахни връзката",justifyLeft:"Подравни от ляво",justifyCenter:"Центрирай",justifyRight:"Подравни от дясно",justifyFull:"Подравни по ширина",horizontalRule:"Хоризонтална линия",fullscreen:"На цял екран",close:"Затвори",submit:"Впиши",reset:"Отмени",required:"Задължително",description:"Описание",title:"Заглавие",text:"Текст"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/by.js b/src/assets/scripts/trumbowyg/langs/by.js new file mode 100755 index 0000000..8f991e6 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/by.js @@ -0,0 +1,61 @@ +/* =========================================================== + * by.js + * Belarusian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Yury Karalkou + */ + +jQuery.trumbowyg.langs.by = { + viewHTML: 'Паглядзець HTML', + + undo: 'Скасаваць', + redo: 'Паўтарыць', + + formatting: 'Фарматаванне', + p: 'Звычайны', + blockquote: 'Цытата', + code: 'Код', + header: 'Загаловак', + + bold: 'Паўтлусты', + italic: 'Курсіў', + strikethrough: 'Закрэслены', + underline: 'Падкрэслены', + + strong: 'Паўтлусты', + em: 'Курсіў', + del: 'Закрэслены', + + superscript: 'Верхні індэкс', + subscript: 'Індэкс', + + unorderedList: 'Звычайны спіс', + orderedList: 'Нумараваны спіс', + + insertImage: 'Уставіць выяву', + insertVideo: 'Уставіць відэа', + link: 'Спасылка', + createLink: 'Уставіць спасылку', + unlink: 'Выдаліць спасылку', + + justifyLeft: 'Па леваму боку', + justifyCenter: 'У цэнтры', + justifyRight: 'Па праваму боку', + justifyFull: 'Па шырыні', + + horizontalRule: 'Гарызантальная лінія', + removeformat: 'Ачысціць фарматаванне', + + fullscreen: 'На ўвесь экран', + + close: 'Зачыніць', + + submit: 'Уставіць', + reset: 'Скасаваць', + + required: 'Абавязкова', + description: 'Апісанне', + title: 'Падказка', + text: 'Тэкст' +}; diff --git a/src/assets/scripts/trumbowyg/langs/by.min.js b/src/assets/scripts/trumbowyg/langs/by.min.js new file mode 100755 index 0000000..fce437b --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/by.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * by.js + * Belarusian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Yury Karalkou + */ +jQuery.trumbowyg.langs.by={viewHTML:"Паглядзець HTML",undo:"Скасаваць",redo:"Паўтарыць",formatting:"Фарматаванне",p:"Звычайны",blockquote:"Цытата",code:"Код",header:"Загаловак",bold:"Паўтлусты",italic:"Курсіў",strikethrough:"Закрэслены",underline:"Падкрэслены",strong:"Паўтлусты",em:"Курсіў",del:"Закрэслены",superscript:"Верхні індэкс",subscript:"Індэкс",unorderedList:"Звычайны спіс",orderedList:"Нумараваны спіс",insertImage:"Уставіць выяву",insertVideo:"Уставіць відэа",link:"Спасылка",createLink:"Уставіць спасылку",unlink:"Выдаліць спасылку",justifyLeft:"Па леваму боку",justifyCenter:"У цэнтры",justifyRight:"Па праваму боку",justifyFull:"Па шырыні",horizontalRule:"Гарызантальная лінія",removeformat:"Ачысціць фарматаванне",fullscreen:"На ўвесь экран",close:"Зачыніць",submit:"Уставіць",reset:"Скасаваць",required:"Абавязкова",description:"Апісанне",title:"Падказка",text:"Тэкст"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ca.js b/src/assets/scripts/trumbowyg/langs/ca.js new file mode 100755 index 0000000..2705692 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ca.js @@ -0,0 +1,57 @@ +/* =========================================================== + * ca.js + * Catalan translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Àlfons Sánchez (alsanan) + * Twitter : @alsanan + * Website : about.me/alsanan + * Github : https://github.com/alsanan + */ + +jQuery.trumbowyg.langs.ca = { + viewHTML: 'Veure HTML', + + formatting: 'Formatar', + p: 'Paragraf', + blockquote: 'Citació', + code: 'Codi', + header: 'Títol', + + bold: 'Negreta', + italic: 'Itàlica', + strikethrough: 'Suprimir', + underline: 'Subratllat', + + strong: 'Forta', + em: 'Èmfasi', + del: 'Apagar', + + unorderedList: 'Lista desordenada', + orderedList: 'Lista ordenada', + + insertImage: 'Inserir imatge', + insertVideo: 'Inserir vídeo', + link: 'Enllaç', + createLink: 'Crear un enllaç', + unlink: 'Eliminar enllaç', + + justifyLeft: 'Alinear a esquerra', + justifyCenter: 'Centrar', + justifyRight: 'Alinear a dreta', + justifyFull: 'Justificar', + + horizontalRule: 'Inserir separador horitzontal', + + fullscreen: 'Pantalla completa', + + close: 'Tancar', + + submit: 'Enviar', + reset: 'Reiniciar', + + required: 'Obligatori', + description: 'Descripció', + title: 'Títol', + text: 'Text' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ca.min.js b/src/assets/scripts/trumbowyg/langs/ca.min.js new file mode 100755 index 0000000..f6cf1f2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ca.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * ca.js + * Catalan translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Àlfons Sánchez (alsanan) + * Twitter : @alsanan + * Website : about.me/alsanan + * Github : https://github.com/alsanan + */ +jQuery.trumbowyg.langs.ca={viewHTML:"Veure HTML",formatting:"Formatar",p:"Paragraf",blockquote:"Citació",code:"Codi",header:"Títol",bold:"Negreta",italic:"Itàlica",strikethrough:"Suprimir",underline:"Subratllat",strong:"Forta",em:"Èmfasi",del:"Apagar",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",insertImage:"Inserir imatge",insertVideo:"Inserir vídeo",link:"Enllaç",createLink:"Crear un enllaç",unlink:"Eliminar enllaç",justifyLeft:"Alinear a esquerra",justifyCenter:"Centrar",justifyRight:"Alinear a dreta",justifyFull:"Justificar",horizontalRule:"Inserir separador horitzontal",fullscreen:"Pantalla completa",close:"Tancar",submit:"Enviar",reset:"Reiniciar",required:"Obligatori",description:"Descripció",title:"Títol",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/cs.js b/src/assets/scripts/trumbowyg/langs/cs.js new file mode 100755 index 0000000..41946e5 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/cs.js @@ -0,0 +1,54 @@ +/* =========================================================== + * cs.js + * Czech translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Jan Svoboda (https://github.com/svoboda-jan) + */ + +jQuery.trumbowyg.langs.cs = { + viewHTML: 'Zobrazit HTML', + + formatting: 'Formátování', + p: 'Odstavec', + blockquote: 'Citace', + code: 'Kód', + header: 'Nadpis', + + bold: 'Tučné', + italic: 'Kurzíva', + strikethrough: 'Přeškrtnuté', + underline: 'Podtržené', + + strong: 'Tučné', + em: 'Zvýraznit', + del: 'Smazat', + + unorderedList: 'Netříděný seznam', + orderedList: 'Tříděný seznam', + + insertImage: 'Vložit obrázek', + insertVideo: 'Vložit video', + link: 'Odkaz', + createLink: 'Vložit odkaz', + unlink: 'Smazat odkaz', + + justifyLeft: 'Zarovnat doleva', + justifyCenter: 'Zarovnat na střed', + justifyRight: 'Zarovnat doprava', + justifyFull: 'Zarovnat do bloku', + + horizontalRule: 'Vložit vodorovnou čáru', + + fullscreen: 'Režim celé obrazovky', + + close: 'Zavřít', + + submit: 'Potvrdit', + reset: 'Zrušit', + + required: 'Povinné', + description: 'Popis', + title: 'Nadpis', + text: 'Text' +}; diff --git a/src/assets/scripts/trumbowyg/langs/cs.min.js b/src/assets/scripts/trumbowyg/langs/cs.min.js new file mode 100755 index 0000000..0666e15 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/cs.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * cs.js + * Czech translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Jan Svoboda (https://github.com/svoboda-jan) + */ +jQuery.trumbowyg.langs.cs={viewHTML:"Zobrazit HTML",formatting:"Formátování",p:"Odstavec",blockquote:"Citace",code:"Kód",header:"Nadpis",bold:"Tučné",italic:"Kurzíva",strikethrough:"Přeškrtnuté",underline:"Podtržené",strong:"Tučné",em:"Zvýraznit",del:"Smazat",unorderedList:"Netříděný seznam",orderedList:"Tříděný seznam",insertImage:"Vložit obrázek",insertVideo:"Vložit video",link:"Odkaz",createLink:"Vložit odkaz",unlink:"Smazat odkaz",justifyLeft:"Zarovnat doleva",justifyCenter:"Zarovnat na střed",justifyRight:"Zarovnat doprava",justifyFull:"Zarovnat do bloku",horizontalRule:"Vložit vodorovnou čáru",fullscreen:"Režim celé obrazovky",close:"Zavřít",submit:"Potvrdit",reset:"Zrušit",required:"Povinné",description:"Popis",title:"Nadpis",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/da.js b/src/assets/scripts/trumbowyg/langs/da.js new file mode 100755 index 0000000..bb03116 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/da.js @@ -0,0 +1,64 @@ +/* =========================================================== + * da.js + * Danish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Christian Pedersen + * Github : https://github.com/chripede + */ + +jQuery.trumbowyg.langs.da = { + viewHTML: 'Vis HTML', + + undo: 'Fortryd', + redo: 'Anuller fortryd', + + formatting: 'Formattering', + p: 'Afsnit', + blockquote: 'Citat', + code: 'Kode', + header: 'Overskrift', + + bold: 'Fed', + italic: 'Kursiv', + strikethrough: 'Gennemstreg', + underline: 'Understreg', + + strong: 'Vigtig', + em: 'Fremhæv', + del: 'Slettet', + + superscript: 'Hævet skrift', + subscript: 'Sænket skrift', + + unorderedList: 'Uordnet liste', + orderedList: 'Ordnet liste', + + insertImage: 'Indsæt billede', + insertVideo: 'Indsæt video', + link: 'Link', + createLink: 'Indsæt link', + unlink: 'Fjern link', + + justifyLeft: 'Venstrestil', + justifyCenter: 'Centrer', + justifyRight: 'Højrestil', + justifyFull: 'Lige margener', + + horizontalRule: 'Horisontal linie', + removeformat: 'Ryd formattering', + + fullscreen: 'Fuld skærm', + + close: 'Luk', + + submit: 'Bekræft', + reset: 'Annuller', + + required: 'Påkrævet', + description: 'Beskrivelse', + title: 'Titel', + text: 'Tekst', + target: 'Mål', + width: 'Bredde' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/da.min.js b/src/assets/scripts/trumbowyg/langs/da.min.js new file mode 100755 index 0000000..ea8083a --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/da.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * da.js + * Danish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Christian Pedersen + * Github : https://github.com/chripede + */ +jQuery.trumbowyg.langs.da={viewHTML:"Vis HTML",undo:"Fortryd",redo:"Anuller fortryd",formatting:"Formattering",p:"Afsnit",blockquote:"Citat",code:"Kode",header:"Overskrift",bold:"Fed",italic:"Kursiv",strikethrough:"Gennemstreg",underline:"Understreg",strong:"Vigtig",em:"Fremhæv",del:"Slettet",superscript:"Hævet skrift",subscript:"Sænket skrift",unorderedList:"Uordnet liste",orderedList:"Ordnet liste",insertImage:"Indsæt billede",insertVideo:"Indsæt video",link:"Link",createLink:"Indsæt link",unlink:"Fjern link",justifyLeft:"Venstrestil",justifyCenter:"Centrer",justifyRight:"Højrestil",justifyFull:"Lige margener",horizontalRule:"Horisontal linie",removeformat:"Ryd formattering",fullscreen:"Fuld skærm",close:"Luk",submit:"Bekræft",reset:"Annuller",required:"Påkrævet",description:"Beskrivelse",title:"Titel",text:"Tekst",target:"Mål",width:"Bredde"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/de.js b/src/assets/scripts/trumbowyg/langs/de.js new file mode 100755 index 0000000..4af424a --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/de.js @@ -0,0 +1,57 @@ +/* =========================================================== + * de.js + * German translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Manfred Timm + * Github : https://github.com/Manfred62 + */ + +jQuery.trumbowyg.langs.de = { + viewHTML: 'HTML anzeigen', + + formatting: 'Formatieren', + p: 'Absatz', + blockquote: 'Zitat', + code: 'Code', + header: 'Überschrift', + + bold: 'Fett', + italic: 'Kursiv', + strikethrough: 'Durchgestrichen', + underline: 'Unterstrichen', + + strong: 'Wichtig', + em: 'Betont', + del: 'Gelöscht', + + unorderedList: 'Ungeordnete Liste', + orderedList: 'Geordnete Liste', + + image: 'Bild', + insertImage: 'Bild einfügen', + insertVideo: 'Video einfügen', + link: 'Link', + createLink: 'Link einfügen', + unlink: 'Link entfernen', + + justifyLeft: 'Links ausrichten', + justifyCenter: 'Zentrieren', + justifyRight: 'Rechts ausrichten', + justifyFull: 'Blocksatz', + + horizontalRule: 'Horizontale Linie einfügen', + removeformat: 'Format entfernen', + + fullscreen: 'Vollbild', + + close: 'Schließen', + + submit: 'Bestätigen', + reset: 'Abbrechen', + + required: 'Erforderlich', + description: 'Beschreibung', + title: 'Titel', + text: 'Text' +}; diff --git a/src/assets/scripts/trumbowyg/langs/de.min.js b/src/assets/scripts/trumbowyg/langs/de.min.js new file mode 100755 index 0000000..f0f0d91 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/de.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * de.js + * German translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Manfred Timm + * Github : https://github.com/Manfred62 + */ +jQuery.trumbowyg.langs.de={viewHTML:"HTML anzeigen",formatting:"Formatieren",p:"Absatz",blockquote:"Zitat",code:"Code",header:"Überschrift",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",strong:"Wichtig",em:"Betont",del:"Gelöscht",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",image:"Bild",insertImage:"Bild einfügen",insertVideo:"Video einfügen",link:"Link",createLink:"Link einfügen",unlink:"Link entfernen",justifyLeft:"Links ausrichten",justifyCenter:"Zentrieren",justifyRight:"Rechts ausrichten",justifyFull:"Blocksatz",horizontalRule:"Horizontale Linie einfügen",removeformat:"Format entfernen",fullscreen:"Vollbild",close:"Schließen",submit:"Bestätigen",reset:"Abbrechen",required:"Erforderlich",description:"Beschreibung",title:"Titel",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/el.js b/src/assets/scripts/trumbowyg/langs/el.js new file mode 100755 index 0000000..6ae0e52 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/el.js @@ -0,0 +1,59 @@ +/* =========================================================== + * el.js + * Greek translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Merianos Nikos + * Twitter : @_webresources + * Website : http://www.wp-lion.com + * LinkedIn: https://gr.linkedin.com/in/merianosnikos + * Behance: https://www.behance.net/web_design_blog + */ + +jQuery.trumbowyg.langs.el = { + viewHTML: 'Προβολή κώδικα HTML', + + formatting: 'Μορφοποίηση', + p: 'Παράγραφος', + blockquote: 'Παράθεση', + code: 'Κώδικας', + header: 'Επικεφαλίδα', + + bold: 'Έντονα', + italic: 'Πλάγια', + strikethrough: 'Διαγραφή', + underline: 'Υπογράμμιση', + + strong: 'Έντονα', + em: 'Πλάγια', + del: 'Διαγραφή', + + unorderedList: 'Αταξινόμητη λίστα', + orderedList: 'Ταξινομημένη λίστα', + + insertImage: 'Εισαγωγή εικόνας', + insertVideo: 'Εισαγωγή βίντεο', + link: 'Σύνδεσμος', + createLink: 'Δημιουργία συνδέσμου', + unlink: 'Διαγραφή συνδέσμου', + + justifyLeft: 'Στοίχιση αριστερά', + justifyCenter: 'Στοίχιση στο κέντρο', + justifyRight: 'Στοίχιση δεξιά', + justifyFull: 'Πλήρης στοίχιση', + + horizontalRule: 'Οριζόντια γραμμή', + removeformat: 'Καθαρισμός μορφοποίησης', + + fullscreen: 'Πλήρης οθόνη', + + close: 'Κλείσιμο', + + submit: 'Υποβολή', + reset: 'Επαναφορά', + + required: 'Απαραίτητο', + description: 'Περιγραφή', + title: 'Τίτλος', + text: 'Κείμενο' +}; diff --git a/src/assets/scripts/trumbowyg/langs/el.min.js b/src/assets/scripts/trumbowyg/langs/el.min.js new file mode 100755 index 0000000..ffb9701 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/el.min.js @@ -0,0 +1,12 @@ +/* =========================================================== + * el.js + * Greek translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Merianos Nikos + * Twitter : @_webresources + * Website : http://www.wp-lion.com + * LinkedIn: https://gr.linkedin.com/in/merianosnikos + * Behance: https://www.behance.net/web_design_blog + */ +jQuery.trumbowyg.langs.el={viewHTML:"Προβολή κώδικα HTML",formatting:"Μορφοποίηση",p:"Παράγραφος",blockquote:"Παράθεση",code:"Κώδικας",header:"Επικεφαλίδα",bold:"Έντονα",italic:"Πλάγια",strikethrough:"Διαγραφή",underline:"Υπογράμμιση",strong:"Έντονα",em:"Πλάγια",del:"Διαγραφή",unorderedList:"Αταξινόμητη λίστα",orderedList:"Ταξινομημένη λίστα",insertImage:"Εισαγωγή εικόνας",insertVideo:"Εισαγωγή βίντεο",link:"Σύνδεσμος",createLink:"Δημιουργία συνδέσμου",unlink:"Διαγραφή συνδέσμου",justifyLeft:"Στοίχιση αριστερά",justifyCenter:"Στοίχιση στο κέντρο",justifyRight:"Στοίχιση δεξιά",justifyFull:"Πλήρης στοίχιση",horizontalRule:"Οριζόντια γραμμή",removeformat:"Καθαρισμός μορφοποίησης",fullscreen:"Πλήρης οθόνη",close:"Κλείσιμο",submit:"Υποβολή",reset:"Επαναφορά",required:"Απαραίτητο",description:"Περιγραφή",title:"Τίτλος",text:"Κείμενο"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/es.js b/src/assets/scripts/trumbowyg/langs/es.js new file mode 100755 index 0000000..fd6db5a --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/es.js @@ -0,0 +1,63 @@ +/* =========================================================== + * es.js + * Spanish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Moisés Márquez + * Email : moises.marquez.g@gmail.com + */ + +jQuery.trumbowyg.langs.es = { + viewHTML: 'Ver HTML', + + undo: 'Deshacer', + redo: 'Rehacer', + + formatting: 'Formato', + p: 'Párrafo', + blockquote: 'Cita', + code: 'Código', + header: 'Título', + + bold: 'Negrita', + italic: 'Cursiva', + strikethrough: 'Tachado', + underline: 'Subrayado', + + strong: 'Negrita', + em: 'Énfasis', + del: 'Borrar', + + superscript: 'Sobrescrito', + subscript: 'Subíndice', + + unorderedList: 'Lista Desordenada', + orderedList: 'Lista Ordenada', + + insertImage: 'Insertar una imagen', + insertVideo: 'Insertar un vídeo', + link: 'Enlace', + createLink: 'Insertar un enlace', + unlink: 'Suprimir un enlace', + + justifyLeft: 'Izquierda', + justifyCenter: 'Centrar', + justifyRight: 'Derecha', + justifyFull: 'Justificado', + + horizontalRule: 'Insertar separador horizontal', + removeformat: 'Eliminar formato', + + fullscreen: 'Pantalla completa', + + close: 'Cerrar', + + submit: 'Enviar', + reset: 'Cancelar', + + required: 'Obligatorio', + description: 'Descripción', + title: 'Título', + text: 'Texto', + target: 'Target' +}; diff --git a/src/assets/scripts/trumbowyg/langs/es.min.js b/src/assets/scripts/trumbowyg/langs/es.min.js new file mode 100755 index 0000000..16cbb04 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/es.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * es.js + * Spanish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Moisés Márquez + * Email : moises.marquez.g@gmail.com + */ +jQuery.trumbowyg.langs.es={viewHTML:"Ver HTML",undo:"Deshacer",redo:"Rehacer",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Cursiva",strikethrough:"Tachado",underline:"Subrayado",strong:"Negrita",em:"Énfasis",del:"Borrar",superscript:"Sobrescrito",subscript:"Subíndice",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un vídeo",link:"Enlace",createLink:"Insertar un enlace",unlink:"Suprimir un enlace",justifyLeft:"Izquierda",justifyCenter:"Centrar",justifyRight:"Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separador horizontal",removeformat:"Eliminar formato",fullscreen:"Pantalla completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto",target:"Target"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/es_ar.js b/src/assets/scripts/trumbowyg/langs/es_ar.js new file mode 100755 index 0000000..5c74c40 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/es_ar.js @@ -0,0 +1,56 @@ +/* =========================================================== + * es_ar.js + * Spanish (Argentina) translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Félix Vera + * Email : felix.vera@gmail.com + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.es_ar = { + viewHTML: 'Ver HTML', + + formatting: 'Formato', + p: 'Párrafo', + blockquote: 'Cita', + code: 'Código', + header: 'Título', + + bold: 'Negrita', + italic: 'Itálica', + strikethrough: 'Tachado', + underline: 'Subrayado', + + strong: 'Fuere', + em: 'Énfasis', + del: 'Borrar', + + unorderedList: 'Lista Desordenada', + orderedList: 'Lista Ordenada', + + insertImage: 'Insertar una imagen', + insertVideo: 'Insertar un video', + link: 'Vínculo', + createLink: 'Insertar un vínculo', + unlink: 'Suprimir un vínculo', + + justifyLeft: 'Alinear a la Izquierda', + justifyCenter: 'Centrar', + justifyRight: 'Alinear a la Derecha', + justifyFull: 'Justificado', + + horizontalRule: 'Insertar separado Horizontal', + + fullscreen: 'Pantalla Completa', + + close: 'Cerrar', + + submit: 'Enviar', + reset: 'Cancelar', + + required: 'Obligatorio', + description: 'Descripción', + title: 'Título', + text: 'Texto' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/es_ar.min.js b/src/assets/scripts/trumbowyg/langs/es_ar.min.js new file mode 100755 index 0000000..0488482 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/es_ar.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * es_ar.js + * Spanish (Argentina) translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Félix Vera + * Email : felix.vera@gmail.com + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.es_ar={viewHTML:"Ver HTML",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Itálica",strikethrough:"Tachado",underline:"Subrayado",strong:"Fuere",em:"Énfasis",del:"Borrar",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un video",link:"Vínculo",createLink:"Insertar un vínculo",unlink:"Suprimir un vínculo",justifyLeft:"Alinear a la Izquierda",justifyCenter:"Centrar",justifyRight:"Alinear a la Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separado Horizontal",fullscreen:"Pantalla Completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/fa.js b/src/assets/scripts/trumbowyg/langs/fa.js new file mode 100755 index 0000000..347cf80 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fa.js @@ -0,0 +1,58 @@ +/* =========================================================== + * fa.js + * Persian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Kiarash Soleimanzadeh + * Github : https://github.com/kiyarash + * Email : kiarash.s@hotmail.com + */ + +jQuery.trumbowyg.langs.fa = { + _dir: 'rtl', + + viewHTML: 'نمایش کد اچ تی ام ال', + + formatting: 'قالب بندی', + p: 'پاراگراف', + blockquote: 'نقل قول', + code: 'کد', + header: 'سر تیتر', + + bold: 'ضخیم', + italic: 'مورب', + strikethrough: 'میان خط دار', + underline: 'زیر خط دار', + + strong: 'برجسته', + em: 'مورب', + del: 'حذف شده', + + unorderedList: 'لیست نامرتب', + orderedList: 'لیست مرتب', + + insertImage: 'درج تصویر', + insertVideo: 'درج ویدئو', + link: 'لینک', + createLink: 'درج لینک', + unlink: 'حذف لینک', + + justifyLeft: 'تراز به چپ', + justifyCenter: 'تراز به وسط', + justifyRight: 'تراز به راست', + justifyFull: 'تراز به چپ و راست', + + horizontalRule: 'درج خط افقی', + + fullscreen: 'تمام صفحه', + + close: 'بستن', + + submit: 'تائید', + reset: 'انصراف', + + required: 'اجباری', + description: 'توضیحات', + title: 'عنوان', + text: 'متن' +}; diff --git a/src/assets/scripts/trumbowyg/langs/fa.min.js b/src/assets/scripts/trumbowyg/langs/fa.min.js new file mode 100755 index 0000000..eb5aa07 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fa.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * fa.js + * Persian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Kiarash Soleimanzadeh + * Github : https://github.com/kiyarash + * Email : kiarash.s@hotmail.com + */ +jQuery.trumbowyg.langs.fa={_dir:"rtl",viewHTML:"نمایش کد اچ تی ام ال",formatting:"قالب بندی",p:"پاراگراف",blockquote:"نقل قول",code:"کد",header:"سر تیتر",bold:"ضخیم",italic:"مورب",strikethrough:"میان خط دار",underline:"زیر خط دار",strong:"برجسته",em:"مورب",del:"حذف شده",unorderedList:"لیست نامرتب",orderedList:"لیست مرتب",insertImage:"درج تصویر",insertVideo:"درج ویدئو",link:"لینک",createLink:"درج لینک",unlink:"حذف لینک",justifyLeft:"تراز به چپ",justifyCenter:"تراز به وسط",justifyRight:"تراز به راست",justifyFull:"تراز به چپ و راست",horizontalRule:"درج خط افقی",fullscreen:"تمام صفحه",close:"بستن",submit:"تائید",reset:"انصراف",required:"اجباری",description:"توضیحات",title:"عنوان",text:"متن"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/fi.js b/src/assets/scripts/trumbowyg/langs/fi.js new file mode 100755 index 0000000..cc620c2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fi.js @@ -0,0 +1,58 @@ +/* =========================================================== + * fi.js + * Finnish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Teppo Koivula (teppokoivula) + * Github : https://github.com/teppokoivula + */ + +jQuery.trumbowyg.langs.fi = { + viewHTML: 'Näytä HTML', + + undo: 'Kumoa', + redo: 'Tee uudelleen', + + formatting: 'Muotoilu', + p: 'Kappale', + blockquote: 'Lainaus', + code: 'Koodi', + header: 'Otsikko', + + bold: 'Lihavointi', + italic: 'Kursivointi', + strikethrough: 'Yliviivaus', + underline: 'Allevivaus', + + strong: 'Vahvennus', + em: 'Painotus', + del: 'Poistettu', + + unorderedList: 'Luettelo', + orderedList: 'Numeroitu luettelo', + + insertImage: 'Lisää kuva', + insertVideo: 'Lisää video', + link: 'Linkki', + createLink: 'Luo linkki', + unlink: 'Poista linkki', + + justifyLeft: 'Tasaa vasemmalle', + justifyCenter: 'Keskitä', + justifyRight: 'Tasaa oikealle', + justifyFull: 'Tasaa', + + horizontalRule: 'Vaakaviiva', + + fullscreen: 'Kokoruutu', + + close: 'Sulje', + + submit: 'Lisää', + reset: 'Palauta', + + required: 'Pakollinen', + description: 'Kuvaus', + title: 'Otsikko', + text: 'Teksti' +}; diff --git a/src/assets/scripts/trumbowyg/langs/fi.min.js b/src/assets/scripts/trumbowyg/langs/fi.min.js new file mode 100755 index 0000000..28ea650 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fi.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * fi.js + * Finnish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Teppo Koivula (teppokoivula) + * Github : https://github.com/teppokoivula + */ +jQuery.trumbowyg.langs.fi={viewHTML:"Näytä HTML",undo:"Kumoa",redo:"Tee uudelleen",formatting:"Muotoilu",p:"Kappale",blockquote:"Lainaus",code:"Koodi",header:"Otsikko",bold:"Lihavointi",italic:"Kursivointi",strikethrough:"Yliviivaus",underline:"Allevivaus",strong:"Vahvennus",em:"Painotus",del:"Poistettu",unorderedList:"Luettelo",orderedList:"Numeroitu luettelo",insertImage:"Lisää kuva",insertVideo:"Lisää video",link:"Linkki",createLink:"Luo linkki",unlink:"Poista linkki",justifyLeft:"Tasaa vasemmalle",justifyCenter:"Keskitä",justifyRight:"Tasaa oikealle",justifyFull:"Tasaa",horizontalRule:"Vaakaviiva",fullscreen:"Kokoruutu",close:"Sulje",submit:"Lisää",reset:"Palauta",required:"Pakollinen",description:"Kuvaus",title:"Otsikko",text:"Teksti"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/fr.js b/src/assets/scripts/trumbowyg/langs/fr.js new file mode 100755 index 0000000..a43f20d --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fr.js @@ -0,0 +1,66 @@ +/* =========================================================== + * fr.js + * French translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + * Reviewed by : Abdou Developer (test20091) + * Github : https://github.com/test20091 + */ + +jQuery.trumbowyg.langs.fr = { + viewHTML: 'Voir le HTML', + + undo: 'Annuler', + redo: 'Refaire', + + formatting: 'Format', + p: 'Paragraphe', + blockquote: 'Citation', + code: 'Code', + header: 'Titre', + + bold: 'Gras', + italic: 'Italique', + strikethrough: 'Barré', + underline: 'Souligné', + + strong: 'Fort', + em: 'Emphase', + del: 'Supprimé', + + superscript: 'Exposant', + subscript: 'Indice', + + unorderedList: 'Liste à puces', + orderedList: 'Liste ordonnée', + + insertImage: 'Insérer une image', + insertVideo: 'Insérer une video', + link: 'Lien', + createLink: 'Insérer un lien', + unlink: 'Supprimer le lien', + + justifyLeft: 'Aligner à gauche', + justifyCenter: 'Centrer', + justifyRight: 'Aligner à droite', + justifyFull: 'Justifier', + + horizontalRule: 'Insérer un séparateur horizontal', + removeformat: 'Supprimer formatage', + + fullscreen: 'Plein écran', + + close: 'Fermer', + + submit: 'Valider', + reset: 'Annuler', + + required: 'Obligatoire', + description: 'Description', + title: 'Titre', + text: 'Texte', + target: 'Cible' +}; diff --git a/src/assets/scripts/trumbowyg/langs/fr.min.js b/src/assets/scripts/trumbowyg/langs/fr.min.js new file mode 100755 index 0000000..ec835f4 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/fr.min.js @@ -0,0 +1,12 @@ +/* =========================================================== + * fr.js + * French translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + * Reviewed by : Abdou Developer (test20091) + * Github : https://github.com/test20091 + */ +jQuery.trumbowyg.langs.fr={viewHTML:"Voir le HTML",undo:"Annuler",redo:"Refaire",formatting:"Format",p:"Paragraphe",blockquote:"Citation",code:"Code",header:"Titre",bold:"Gras",italic:"Italique",strikethrough:"Barré",underline:"Souligné",strong:"Fort",em:"Emphase",del:"Supprimé",superscript:"Exposant",subscript:"Indice",unorderedList:"Liste à puces",orderedList:"Liste ordonnée",insertImage:"Insérer une image",insertVideo:"Insérer une video",link:"Lien",createLink:"Insérer un lien",unlink:"Supprimer le lien",justifyLeft:"Aligner à gauche",justifyCenter:"Centrer",justifyRight:"Aligner à droite",justifyFull:"Justifier",horizontalRule:"Insérer un séparateur horizontal",removeformat:"Supprimer formatage",fullscreen:"Plein écran",close:"Fermer",submit:"Valider",reset:"Annuler",required:"Obligatoire",description:"Description",title:"Titre",text:"Texte",target:"Cible"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/he.js b/src/assets/scripts/trumbowyg/langs/he.js new file mode 100755 index 0000000..1826523 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/he.js @@ -0,0 +1,57 @@ +/* =========================================================== + * he.js + * Hebrew translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Udi Doron (udidoron) + * Github : https://github.com/udidoron + */ + +jQuery.trumbowyg.langs.he = { + _dir: 'rtl', + + viewHTML: 'צפה ב-HTML', + + formatting: 'פורמט', + p: 'פסקה', + blockquote: 'ציטוט', + code: 'קוד', + header: 'ראשית', + + bold: 'מודגש', + italic: 'נטוי', + strikethrough: 'קו חוצה', + underline: 'קו תחתון', + + strong: 'בולט', + em: 'הדגשה', + del: 'נמחק', + + unorderedList: 'רשימה ללא סדר', + orderedList: 'רשימה מסודרת', + + insertImage: 'הכנס תמונה', + insertVideo: 'הכנס סרטון', + link: 'קישור', + createLink: 'צור קישור', + unlink: 'הסר קישור', + + justifyLeft: 'ישר לשמאל', + justifyCenter: 'מרכז', + justifyRight: 'ישר לימין', + justifyFull: 'ישר לשני הצדדים', + + horizontalRule: 'הכנס קו אופקי', + + fullscreen: 'מסך מלא', + + close: 'סגור', + + submit: 'שלח', + reset: 'אתחל מחדש', + + required: 'נחוץ', + description: 'תיאור', + title: 'כותרת', + text: 'טקסט' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/he.min.js b/src/assets/scripts/trumbowyg/langs/he.min.js new file mode 100755 index 0000000..9da2975 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/he.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * he.js + * Hebrew translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Udi Doron (udidoron) + * Github : https://github.com/udidoron + */ +jQuery.trumbowyg.langs.he={_dir:"rtl",viewHTML:"צפה ב-HTML",formatting:"פורמט",p:"פסקה",blockquote:"ציטוט",code:"קוד",header:"ראשית",bold:"מודגש",italic:"נטוי",strikethrough:"קו חוצה",underline:"קו תחתון",strong:"בולט",em:"הדגשה",del:"נמחק",unorderedList:"רשימה ללא סדר",orderedList:"רשימה מסודרת",insertImage:"הכנס תמונה",insertVideo:"הכנס סרטון",link:"קישור",createLink:"צור קישור",unlink:"הסר קישור",justifyLeft:"ישר לשמאל",justifyCenter:"מרכז",justifyRight:"ישר לימין",justifyFull:"ישר לשני הצדדים",horizontalRule:"הכנס קו אופקי",fullscreen:"מסך מלא",close:"סגור",submit:"שלח",reset:"אתחל מחדש",required:"נחוץ",description:"תיאור",title:"כותרת",text:"טקסט"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/hr.js b/src/assets/scripts/trumbowyg/langs/hr.js new file mode 100755 index 0000000..44c47a3 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/hr.js @@ -0,0 +1,54 @@ +/* =========================================================== + * hr.js + * Croatian translation for Trumbowyg + * https://www.github.com/Buda9 + * =========================================================== + * Author : Davor Budimir (https://www.github.com/Buda9) + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.hr = { + viewHTML: 'Poglеdaj HTML kód', + + formatting: 'Formatiranjе', + p: 'Odlomak', + blockquote: 'Citat', + code: 'Kód', + header: 'Zaglavlje', + + bold: 'Podеbljano', + italic: 'Nakošeno', + strikethrough: 'Prеcrtano', + underline: 'Podvučеno', + + strong: 'Podеbljano', + em: 'Istaknuto', + del: 'Obrisano', + + unorderedList: 'Neuređen popis', + orderedList: 'Uređen popis', + insertImage: 'Dodaj sliku', + insertVideo: 'Dodaj vidеo', + link: 'Povezica', + createLink: 'Dodaj povezicu', + unlink: 'Ukloni povezicu', + + justifyLeft: 'Lijеvo poravnanjе', + justifyCenter: 'Središnje poravnanjе', + justifyRight: 'Dеsno poravnanjе', + justifyFull: 'Obostrano poravnanjе', + + horizontalRule: 'Horizontalna crta', + + fullscreen: 'Puni zaslon', + + close: 'Zatvori', + + submit: 'Unеsi', + reset: 'Otkaži', + + required: 'Obavеzno poljе', + description: 'Opis', + title: 'Naslov', + text: 'Tеkst' +}; diff --git a/src/assets/scripts/trumbowyg/langs/hr.min.js b/src/assets/scripts/trumbowyg/langs/hr.min.js new file mode 100755 index 0000000..ddbdd4d --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/hr.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * hr.js + * Croatian translation for Trumbowyg + * https://www.github.com/Buda9 + * =========================================================== + * Author : Davor Budimir (https://www.github.com/Buda9) + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.hr={viewHTML:"Poglеdaj HTML kód",formatting:"Formatiranjе",p:"Odlomak",blockquote:"Citat",code:"Kód",header:"Zaglavlje",bold:"Podеbljano",italic:"Nakošeno",strikethrough:"Prеcrtano",underline:"Podvučеno",strong:"Podеbljano",em:"Istaknuto",del:"Obrisano",unorderedList:"Neuređen popis",orderedList:"Uređen popis",insertImage:"Dodaj sliku",insertVideo:"Dodaj vidеo",link:"Povezica",createLink:"Dodaj povezicu",unlink:"Ukloni povezicu",justifyLeft:"Lijеvo poravnanjе",justifyCenter:"Središnje poravnanjе",justifyRight:"Dеsno poravnanjе",justifyFull:"Obostrano poravnanjе",horizontalRule:"Horizontalna crta",fullscreen:"Puni zaslon",close:"Zatvori",submit:"Unеsi",reset:"Otkaži",required:"Obavеzno poljе",description:"Opis",title:"Naslov",text:"Tеkst"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/hu.js b/src/assets/scripts/trumbowyg/langs/hu.js new file mode 100755 index 0000000..f835d2d --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/hu.js @@ -0,0 +1,58 @@ +/* =========================================================== + * hu.js + * Hungarian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Peter MATO + * Web: http://fixme.hu + * GitHub: https://github.com/matopeter + */ + +jQuery.trumbowyg.langs.hu = { + viewHTML: 'HTML nézet', + + formatting: 'Stílusok', + + p: 'Bekezdés', + blockquote: 'Idézet', + code: 'Kód', + header: 'Címsor', + + bold: 'Félkövér', + italic: 'Dőlt', + strikethrough: 'Áthúzott', + underline: 'Aláhúzott', + + strong: 'Vastag', + em: 'Kiemelt', + del: 'Törölt', + + unorderedList: 'Felsorolás', + orderedList: 'Számozás', + + insertImage: 'Kép beszúrása', + insertVideo: 'Video beszúrása', + link: 'Link', + createLink: 'Link létrehozása', + unlink: 'Link eltávolítása', + + justifyLeft: 'Balra igazítás', + justifyCenter: 'Középre igazítás', + justifyRight: 'Jobbra igazítás', + justifyFull: 'Sorkizárt', + + horizontalRule: 'Vízszintes vonal', + + fullscreen: 'Teljes képernyő', + close: 'Bezár', + + submit: 'Beküldés', + reset: 'Alaphelyzet', + + required: 'Kötelező', + description: 'Leírás', + title: 'Cím', + text: 'Szöveg', + + removeformat: 'Formázás eltávolítása' +}; diff --git a/src/assets/scripts/trumbowyg/langs/hu.min.js b/src/assets/scripts/trumbowyg/langs/hu.min.js new file mode 100755 index 0000000..92c464e --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/hu.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * hu.js + * Hungarian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Peter MATO + * Web: http://fixme.hu + * GitHub: https://github.com/matopeter + */ +jQuery.trumbowyg.langs.hu={viewHTML:"HTML nézet",formatting:"Stílusok",p:"Bekezdés",blockquote:"Idézet",code:"Kód",header:"Címsor",bold:"Félkövér",italic:"Dőlt",strikethrough:"Áthúzott",underline:"Aláhúzott",strong:"Vastag",em:"Kiemelt",del:"Törölt",unorderedList:"Felsorolás",orderedList:"Számozás",insertImage:"Kép beszúrása",insertVideo:"Video beszúrása",link:"Link",createLink:"Link létrehozása",unlink:"Link eltávolítása",justifyLeft:"Balra igazítás",justifyCenter:"Középre igazítás",justifyRight:"Jobbra igazítás",justifyFull:"Sorkizárt",horizontalRule:"Vízszintes vonal",fullscreen:"Teljes képernyő",close:"Bezár",submit:"Beküldés",reset:"Alaphelyzet",required:"Kötelező",description:"Leírás",title:"Cím",text:"Szöveg",removeformat:"Formázás eltávolítása"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/id.js b/src/assets/scripts/trumbowyg/langs/id.js new file mode 100755 index 0000000..32aabb3 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/id.js @@ -0,0 +1,57 @@ +/* =========================================================== + * id.js + * Indonesian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Rezha Julio (kimiamania) + * Twitter : @kimiamania + * Website : http://rezhajulio.web.id + * Github : https://github.com/kimiamania + */ + +jQuery.trumbowyg.langs.id = { + viewHTML: 'Lihat HTML', + + formatting: 'Penyusunan', + p: 'Paragraf', + blockquote: 'Kutipan', + code: 'Kode', + header: 'Kepala', + + bold: 'Tebal', + italic: 'Miring', + strikethrough: 'Coret', + underline: 'Garis bawah', + + strong: 'Tebal', + em: 'Miring', + del: 'Dicoret', + + unorderedList: 'Daftar tak teratur', + orderedList: 'Daftar teratur', + + insertImage: 'Sisipkan gambar', + insertVideo: 'Sisipkan video', + link: 'Tautan', + createLink: 'Sisipkan Tautan', + unlink: 'Singkirkan tautan', + + justifyLeft: 'Rata kiri', + justifyCenter: 'Rata Tengah', + justifyRight: 'Rata kanan', + justifyFull: 'Rata kiri dan kanan', + + horizontalRule: 'Sisipkan garis mendatar', + + fullscreen: 'Layar penuh', + + close: 'Tutup', + + submit: 'Setuju', + reset: 'Batal', + + required: 'Diperlukan', + description: 'Deskripsi', + title: 'Judul', + text: 'Teks' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/id.min.js b/src/assets/scripts/trumbowyg/langs/id.min.js new file mode 100755 index 0000000..418fc88 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/id.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * id.js + * Indonesian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Rezha Julio (kimiamania) + * Twitter : @kimiamania + * Website : http://rezhajulio.web.id + * Github : https://github.com/kimiamania + */ +jQuery.trumbowyg.langs.id={viewHTML:"Lihat HTML",formatting:"Penyusunan",p:"Paragraf",blockquote:"Kutipan",code:"Kode",header:"Kepala",bold:"Tebal",italic:"Miring",strikethrough:"Coret",underline:"Garis bawah",strong:"Tebal",em:"Miring",del:"Dicoret",unorderedList:"Daftar tak teratur",orderedList:"Daftar teratur",insertImage:"Sisipkan gambar",insertVideo:"Sisipkan video",link:"Tautan",createLink:"Sisipkan Tautan",unlink:"Singkirkan tautan",justifyLeft:"Rata kiri",justifyCenter:"Rata Tengah",justifyRight:"Rata kanan",justifyFull:"Rata kiri dan kanan",horizontalRule:"Sisipkan garis mendatar",fullscreen:"Layar penuh",close:"Tutup",submit:"Setuju",reset:"Batal",required:"Diperlukan",description:"Deskripsi",title:"Judul",text:"Teks"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/it.js b/src/assets/scripts/trumbowyg/langs/it.js new file mode 100755 index 0000000..5e3b49f --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/it.js @@ -0,0 +1,59 @@ +/* =========================================================== + * it.js + * Italian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Mirko Buffoni + */ + +jQuery.trumbowyg.langs.it = { + viewHTML: 'Mostra HTML', + + formatting: 'Formattazione', + p: 'Paragrafo', + blockquote: 'Citazione', + code: 'Codice', + header: 'Intestazione', + + bold: 'Grassetto', + italic: 'Italico', + strikethrough: 'Barrato', + underline: 'Sottolineato', + + strong: 'Rafforza', + em: 'Enfatizza', + del: 'Cancella', + + unorderedList: 'Elenco puntato', + orderedList: 'Elenco numerato', + + insertImage: 'Inserisci immagine', + insertVideo: 'Inserisci video', + link: 'Collegamento', + createLink: 'Crea un collegamento', + unlink: 'Elimina collegamento', + + justifyLeft: 'Allinea a sinistra', + justifyCenter: 'Centra', + justifyRight: 'Allinea a destra', + justifyFull: 'Giustifica', + + horizontalRule: 'Inserisci un separatore orizzontale', + + fullscreen: 'Schermo intero', + + close: 'Chiudi', + + submit: 'Invia', + reset: 'Annulla', + + required: 'Obbligatorio', + description: 'Descrizione', + title: 'Titolo', + text: 'Testo', + + removeformat: 'Rimuovi Formattazione', + + superscript: 'Apice', + subscript: 'Pedice', +}; diff --git a/src/assets/scripts/trumbowyg/langs/it.min.js b/src/assets/scripts/trumbowyg/langs/it.min.js new file mode 100755 index 0000000..5714de4 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/it.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * it.js + * Italian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Mirko Buffoni + */ +jQuery.trumbowyg.langs.it={viewHTML:"Mostra HTML",formatting:"Formattazione",p:"Paragrafo",blockquote:"Citazione",code:"Codice",header:"Intestazione",bold:"Grassetto",italic:"Italico",strikethrough:"Barrato",underline:"Sottolineato",strong:"Rafforza",em:"Enfatizza",del:"Cancella",unorderedList:"Elenco puntato",orderedList:"Elenco numerato",insertImage:"Inserisci immagine",insertVideo:"Inserisci video",link:"Collegamento",createLink:"Crea un collegamento",unlink:"Elimina collegamento",justifyLeft:"Allinea a sinistra",justifyCenter:"Centra",justifyRight:"Allinea a destra",justifyFull:"Giustifica",horizontalRule:"Inserisci un separatore orizzontale",fullscreen:"Schermo intero",close:"Chiudi",submit:"Invia",reset:"Annulla",required:"Obbligatorio",description:"Descrizione",title:"Titolo",text:"Testo",removeformat:"Rimuovi Formattazione",superscript:"Apice",subscript:"Pedice"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ja.js b/src/assets/scripts/trumbowyg/langs/ja.js new file mode 100755 index 0000000..a92e77f --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ja.js @@ -0,0 +1,63 @@ +/* =========================================================== + * ja.js + * Japanese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Kouta Fukuhara (foo9) + * Twitter : @foo9 + * Website : https://github.com/foo9 + */ + +jQuery.trumbowyg.langs.ja = { + viewHTML: 'HTML表示', + + undo: '元に戻す', + redo: 'やり直す', + + formatting: 'フォーマット', + p: '段落', + blockquote: '引用', + code: 'コード', + header: '見出し', + + bold: '太字', + italic: '斜体', + strikethrough: '取り消し線', + underline: '下線', + + strong: '太字', + em: '斜体', + del: '取り消し線', + + superscript: '上付き文字', + subscript: '下付き文字', + + unorderedList: '順序なしリスト', + orderedList: '順序ありリスト', + + insertImage: '画像の挿入', + link: 'リンク', + createLink: 'リンクの作成', + unlink: 'リンクの削除', + + justifyLeft: '左揃え', + justifyCenter: '中央揃え', + justifyRight: '右揃え', + justifyFull: '両端揃え', + + horizontalRule: '横罫線', + removeformat: 'フォーマットの削除', + + fullscreen: '全画面表示', + + close: '閉じる', + + submit: '送信', + reset: 'キャンセル', + + required: '必須', + description: '説明', + title: 'タイトル', + text: 'テキスト', + target: 'ターゲット' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ja.min.js b/src/assets/scripts/trumbowyg/langs/ja.min.js new file mode 100755 index 0000000..e974f02 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ja.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * ja.js + * Japanese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Kouta Fukuhara (foo9) + * Twitter : @foo9 + * Website : https://github.com/foo9 + */ +jQuery.trumbowyg.langs.ja={viewHTML:"HTML表示",undo:"元に戻す",redo:"やり直す",formatting:"フォーマット",p:"段落",blockquote:"引用",code:"コード",header:"見出し",bold:"太字",italic:"斜体",strikethrough:"取り消し線",underline:"下線",strong:"太字",em:"斜体",del:"取り消し線",superscript:"上付き文字",subscript:"下付き文字",unorderedList:"順序なしリスト",orderedList:"順序ありリスト",insertImage:"画像の挿入",link:"リンク",createLink:"リンクの作成",unlink:"リンクの削除",justifyLeft:"左揃え",justifyCenter:"中央揃え",justifyRight:"右揃え",justifyFull:"両端揃え",horizontalRule:"横罫線",removeformat:"フォーマットの削除",fullscreen:"全画面表示",close:"閉じる",submit:"送信",reset:"キャンセル",required:"必須",description:"説明",title:"タイトル",text:"テキスト",target:"ターゲット"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ko.js b/src/assets/scripts/trumbowyg/langs/ko.js new file mode 100755 index 0000000..c6706de --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ko.js @@ -0,0 +1,56 @@ +/* =========================================================== + * ko.js + * Korean translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : JoongSeob Vito Kim (dorajistyle) + * Blog : http://dorajistyle.pe.kr + * Github : https://github.com/dorajistyle + */ + +jQuery.trumbowyg.langs.ko = { + viewHTML: 'HTML로 보기', + + formatting: '양식', + p: '문단', + blockquote: '인용부호', + code: '코드', + header: '머릿말', + + bold: '진하게', + italic: '기울임', + strikethrough: '취소선', + underline: '밑줄', + + strong: '굵게', + em: '강조', + del: '취소', + + unorderedList: '순차 목록', + orderedList: '비순차 목록', + + insertImage: '이미지 넣기', + insertVideo: '비디오 넣기', + link: '링크', + createLink: '링크 넣기', + unlink: '링크 없애기', + + justifyLeft: '왼쪽 정렬', + justifyCenter: '가운데 정렬', + justifyRight: '오른쪽 정렬', + justifyFull: '혼합 정렬', + + horizontalRule: '가로줄 넣기', + + fullscreen: '전체 화면', + + close: '닫기', + + submit: '전송', + reset: '초기화', + + required: '꼭 입력해야 합니다.', + description: '설명', + title: '제목', + text: '본문 내용' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ko.min.js b/src/assets/scripts/trumbowyg/langs/ko.min.js new file mode 100755 index 0000000..76e9c24 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ko.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * ko.js + * Korean translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : JoongSeob Vito Kim (dorajistyle) + * Blog : http://dorajistyle.pe.kr + * Github : https://github.com/dorajistyle + */ +jQuery.trumbowyg.langs.ko={viewHTML:"HTML로 보기",formatting:"양식",p:"문단",blockquote:"인용부호",code:"코드",header:"머릿말",bold:"진하게",italic:"기울임",strikethrough:"취소선",underline:"밑줄",strong:"굵게",em:"강조",del:"취소",unorderedList:"순차 목록",orderedList:"비순차 목록",insertImage:"이미지 넣기",insertVideo:"비디오 넣기",link:"링크",createLink:"링크 넣기",unlink:"링크 없애기",justifyLeft:"왼쪽 정렬",justifyCenter:"가운데 정렬",justifyRight:"오른쪽 정렬",justifyFull:"혼합 정렬",horizontalRule:"가로줄 넣기",fullscreen:"전체 화면",close:"닫기",submit:"전송",reset:"초기화",required:"꼭 입력해야 합니다.",description:"설명",title:"제목",text:"본문 내용"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/lt.js b/src/assets/scripts/trumbowyg/langs/lt.js new file mode 100755 index 0000000..83207ed --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/lt.js @@ -0,0 +1,59 @@ +/* =========================================================== + * lt.js + * Lithuanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Justas Brazauskas + */ + +jQuery.trumbowyg.langs.lt = { + viewHTML: 'Žiūrėti HTML', + + formatting: 'Formatuoti', + p: 'Paragrafas', + blockquote: 'Citata', + code: 'Kodas', + header: 'Antraštė', + + bold: 'Paryškinti', + italic: 'Kursyvuoti', + strikethrough: 'Perbraukti', + underline: 'Pabrėžti', + + strong: 'Paryškinti', + em: 'Pabrėžti', + del: 'Trinti', + + unorderedList: 'Sąrašas', + orderedList: 'Numeruotas sąrašas', + + insertImage: 'Pridėti vaizdą', + insertVideo: 'Pridėti video', + link: 'Nuoroda', + createLink: 'Kurti nuorodą', + unlink: 'Ištrinti nuorodą', + + justifyLeft: 'Lyginti kairėn', + justifyCenter: 'Lygiuoti Centre', + justifyRight: 'Lyginti dešinėn', + justifyFull: 'Centruoti', + + horizontalRule: 'Horizontali linija', + + fullscreen: 'Pilnas ekranas', + + close: 'Uždaryti', + + submit: 'Siųsti', + reset: 'Atšaukti', + + required: 'Privaloma', + description: 'Aprašymas', + title: 'Pavadinimas', + text: 'Tekstas', + + removeformat: 'Pašalinti formatavimą', + + superscript: 'Viršutinis indeksas', + subscript: 'Apatinis indeksas', +}; diff --git a/src/assets/scripts/trumbowyg/langs/lt.min.js b/src/assets/scripts/trumbowyg/langs/lt.min.js new file mode 100755 index 0000000..53f73bf --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/lt.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * lt.js + * Lithuanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Justas Brazauskas + */ +jQuery.trumbowyg.langs.lt={viewHTML:"Žiūrėti HTML",formatting:"Formatuoti",p:"Paragrafas",blockquote:"Citata",code:"Kodas",header:"Antraštė",bold:"Paryškinti",italic:"Kursyvuoti",strikethrough:"Perbraukti",underline:"Pabrėžti",strong:"Paryškinti",em:"Pabrėžti",del:"Trinti",unorderedList:"Sąrašas",orderedList:"Numeruotas sąrašas",insertImage:"Pridėti vaizdą",insertVideo:"Pridėti video",link:"Nuoroda",createLink:"Kurti nuorodą",unlink:"Ištrinti nuorodą",justifyLeft:"Lyginti kairėn",justifyCenter:"Lygiuoti Centre",justifyRight:"Lyginti dešinėn",justifyFull:"Centruoti",horizontalRule:"Horizontali linija",fullscreen:"Pilnas ekranas",close:"Uždaryti",submit:"Siųsti",reset:"Atšaukti",required:"Privaloma",description:"Aprašymas",title:"Pavadinimas",text:"Tekstas",removeformat:"Pašalinti formatavimą",superscript:"Viršutinis indeksas",subscript:"Apatinis indeksas"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/mn.js b/src/assets/scripts/trumbowyg/langs/mn.js new file mode 100755 index 0000000..ffee651 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/mn.js @@ -0,0 +1,49 @@ +/* =========================================================== + * mn.js + * Mongolian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Ganbayar.B (ganbayar13) + */ + +jQuery.trumbowyg.langs.mn = { + viewHTML: 'HTML харах', + undo: 'Буцаах', + redo: 'Дахих', + formatting: 'Формат', + p: 'Догол мөр', + blockquote: 'Ишлэл', + code: 'Код', + header: 'Гарчиг', + bold: 'Тод', + italic: 'Налуу', + strikethrough: 'Дундуур зураас', + underline: 'Доогуур зураас', + strong: 'Тод', + em: 'Налуу', + del: 'Дундуур зураас', + superscript: 'Дээд индекс', + subscript: 'Доод индекс', + unorderedList: 'Дугаарлаагүй жагсаалт', + orderedList: 'Дугаарласан жагсаалт', + insertImage: 'Зураг оруулах', + insertVideo: 'Видео оруулах', + link: 'Холбоос', + createLink: 'Холбоос үүсгэх', + unlink: 'Холбоос цуцлах', + justifyLeft: 'Зүүн тийш шахах', + justifyCenter: 'Голлуулах', + justifyRight: 'Баруун Баруун тийш шахах', + justifyFull: 'Тэгшитгэх', + horizontalRule: 'Хөндлөн шугам', + removeformat: 'Формат арилгах', + fullscreen: 'Дэлгэц дүүргэх', + close: 'Хаах', + submit: 'Оруулах', + reset: 'Цуцлах', + required: 'Шаардлагатай', + description: 'Тайлбар', + title: 'Гарчиг', + text: 'Текст', + target: 'Бай' +}; diff --git a/src/assets/scripts/trumbowyg/langs/mn.min.js b/src/assets/scripts/trumbowyg/langs/mn.min.js new file mode 100755 index 0000000..2bf7f7e --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/mn.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * mn.js + * Mongolian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Ganbayar.B (ganbayar13) + */ +jQuery.trumbowyg.langs.mn={viewHTML:"HTML харах",undo:"Буцаах",redo:"Дахих",formatting:"Формат",p:"Догол мөр",blockquote:"Ишлэл",code:"Код",header:"Гарчиг",bold:"Тод",italic:"Налуу",strikethrough:"Дундуур зураас",underline:"Доогуур зураас",strong:"Тод",em:"Налуу",del:"Дундуур зураас",superscript:"Дээд индекс",subscript:"Доод индекс",unorderedList:"Дугаарлаагүй жагсаалт",orderedList:"Дугаарласан жагсаалт",insertImage:"Зураг оруулах",insertVideo:"Видео оруулах",link:"Холбоос",createLink:"Холбоос үүсгэх",unlink:"Холбоос цуцлах",justifyLeft:"Зүүн тийш шахах",justifyCenter:"Голлуулах",justifyRight:"Баруун Баруун тийш шахах",justifyFull:"Тэгшитгэх",horizontalRule:"Хөндлөн шугам",removeformat:"Формат арилгах",fullscreen:"Дэлгэц дүүргэх",close:"Хаах",submit:"Оруулах",reset:"Цуцлах",required:"Шаардлагатай",description:"Тайлбар",title:"Гарчиг",text:"Текст",target:"Бай"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/my.js b/src/assets/scripts/trumbowyg/langs/my.js new file mode 100755 index 0000000..55b4e8d --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/my.js @@ -0,0 +1,54 @@ +/* =========================================================== + * my.js + * Malaysian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : JohnPozy + */ + +jQuery.trumbowyg.langs.id = { + viewHTML: 'Lihat HTML', + + formatting: 'Pemformatan', + p: 'Perenggan', + blockquote: 'Blockquote', + code: 'Kod', + header: 'Pengepala', + + bold: 'Tebal', + italic: 'Condong', + strikethrough: 'Garis batal', + underline: 'Garis bawah', + + strong: 'Kuat', + em: 'Condong', + del: 'Hapus', + + unorderedList: 'Senarai tidak tertib', + orderedList: 'Senarai tertib', + + insertImage: 'Masukkan imej', + insertVideo: 'Masukkan video', + link: 'Pautan', + createLink: 'Cipta pautan', + unlink: 'Hapus pautan', + + justifyLeft: 'Mengimbangkan ke kiri', + justifyCenter: 'Mengimbangkan ke tengah', + justifyRight: 'Mengimbangkan ke kanan', + justifyFull: 'Mengimbangkan ke kiri dan kanan', + + horizontalRule: 'Masukkan garis mendatar', + + fullscreen: 'Skrin penuh', + + close: 'Tutup', + + submit: 'Hantar', + reset: 'Batal', + + required: 'Diperlukan', + description: 'Perihal', + title: 'Tajuk', + text: 'Teks' +}; diff --git a/src/assets/scripts/trumbowyg/langs/my.min.js b/src/assets/scripts/trumbowyg/langs/my.min.js new file mode 100755 index 0000000..8dda593 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/my.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * my.js + * Malaysian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : JohnPozy + */ +jQuery.trumbowyg.langs.id={viewHTML:"Lihat HTML",formatting:"Pemformatan",p:"Perenggan",blockquote:"Blockquote",code:"Kod",header:"Pengepala",bold:"Tebal",italic:"Condong",strikethrough:"Garis batal",underline:"Garis bawah",strong:"Kuat",em:"Condong",del:"Hapus",unorderedList:"Senarai tidak tertib",orderedList:"Senarai tertib",insertImage:"Masukkan imej",insertVideo:"Masukkan video",link:"Pautan",createLink:"Cipta pautan",unlink:"Hapus pautan",justifyLeft:"Mengimbangkan ke kiri",justifyCenter:"Mengimbangkan ke tengah",justifyRight:"Mengimbangkan ke kanan",justifyFull:"Mengimbangkan ke kiri dan kanan",horizontalRule:"Masukkan garis mendatar",fullscreen:"Skrin penuh",close:"Tutup",submit:"Hantar",reset:"Batal",required:"Diperlukan",description:"Perihal",title:"Tajuk",text:"Teks"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/nl.js b/src/assets/scripts/trumbowyg/langs/nl.js new file mode 100755 index 0000000..7f14c95 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/nl.js @@ -0,0 +1,61 @@ +/* =========================================================== + * nl.js + * Dutch translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Danny Hiemstra + * Github : https://github.com/dhiemstra + */ + +jQuery.trumbowyg.langs.nl = { + viewHTML: 'HTML bekijken', + + undo: 'Ongedaan maken', + redo: 'Opnieuw', + + formatting: 'Opmaak', + p: 'Paragraaf', + blockquote: 'Citaat', + code: 'Code', + header: 'Kop', + + bold: 'Vet', + italic: 'Cursief', + strikethrough: 'Doorhalen', + underline: 'Onderlijnen', + + strong: 'Sterk', + em: 'Nadruk', + del: 'Verwijderd', + + unorderedList: 'Ongenummerde lijst', + orderedList: 'Genummerde lijst', + + insertImage: 'Afbeelding invoegen', + insertVideo: 'Video invoegen', + link: 'Link', + createLink: 'Link maken', + unlink: 'Link verwijderen', + + justifyLeft: 'Links uitlijnen', + justifyCenter: 'Centreren', + justifyRight: 'Rechts uitlijnen', + justifyFull: 'Uitvullen', + + horizontalRule: 'Horizontale lijn', + removeFormat: 'Opmaak verwijderen', + + fullscreen: 'Volledig scherm', + + close: 'Sluiten', + + submit: 'Opslaan', + reset: 'Annuleren', + + required: 'Verplicht', + description: 'Omschrijving', + title: 'Titel', + text: 'Tekst', + target: 'Doel', + width: 'Breedte' +}; diff --git a/src/assets/scripts/trumbowyg/langs/nl.min.js b/src/assets/scripts/trumbowyg/langs/nl.min.js new file mode 100755 index 0000000..60ee624 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/nl.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * nl.js + * Dutch translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Danny Hiemstra + * Github : https://github.com/dhiemstra + */ +jQuery.trumbowyg.langs.nl={viewHTML:"HTML bekijken",undo:"Ongedaan maken",redo:"Opnieuw",formatting:"Opmaak",p:"Paragraaf",blockquote:"Citaat",code:"Code",header:"Kop",bold:"Vet",italic:"Cursief",strikethrough:"Doorhalen",underline:"Onderlijnen",strong:"Sterk",em:"Nadruk",del:"Verwijderd",unorderedList:"Ongenummerde lijst",orderedList:"Genummerde lijst",insertImage:"Afbeelding invoegen",insertVideo:"Video invoegen",link:"Link",createLink:"Link maken",unlink:"Link verwijderen",justifyLeft:"Links uitlijnen",justifyCenter:"Centreren",justifyRight:"Rechts uitlijnen",justifyFull:"Uitvullen",horizontalRule:"Horizontale lijn",removeFormat:"Opmaak verwijderen",fullscreen:"Volledig scherm",close:"Sluiten",submit:"Opslaan",reset:"Annuleren",required:"Verplicht",description:"Omschrijving",title:"Titel",text:"Tekst",target:"Doel",width:"Breedte"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/no_nb.js b/src/assets/scripts/trumbowyg/langs/no_nb.js new file mode 100755 index 0000000..151125e --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/no_nb.js @@ -0,0 +1,56 @@ +/* =========================================================== + * no_nb.js + * Norwegian Bokmål translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Jon Severin Eivik Jakobsen + * Github : https://github.com/jsejakobsen + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.no_nb = { + viewHTML: 'Vis HTML', + + formatting: 'Formater', + p: 'Avsnitt', + blockquote: 'Sitat', + code: 'Kode', + header: 'Overskrift', + + bold: 'Fet', + italic: 'Kursiv', + strikethrough: 'Gjennomstreking', + underline: 'Understreking', + + strong: 'Viktig', + em: 'Fremhevet', + del: 'Slettet', + + unorderedList: 'Uordnet liste', + orderedList: 'Ordnet liste', + + insertImage: 'Sett inn bilde', + insertVideo: 'Sett inn video', + link: 'Lenke', + createLink: 'Sett inn lenke', + unlink: 'Fjern lenke', + + justifyLeft: 'Venstrejuster', + justifyCenter: 'Midtstill', + justifyRight: 'Høyrejuster', + justifyFull: 'Blokkjuster', + + horizontalRule: 'Horisontal linje', + + fullscreen: 'Full skjerm', + + close: 'Lukk', + + submit: 'Bekreft', + reset: 'Avbryt', + + required: 'Påkrevd', + description: 'Beskrivelse', + title: 'Tittel', + text: 'Tekst' +}; diff --git a/src/assets/scripts/trumbowyg/langs/no_nb.min.js b/src/assets/scripts/trumbowyg/langs/no_nb.min.js new file mode 100755 index 0000000..3599d07 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/no_nb.min.js @@ -0,0 +1,10 @@ +/* =========================================================== + * no_nb.js + * Norwegian Bokmål translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Jon Severin Eivik Jakobsen + * Github : https://github.com/jsejakobsen + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.no_nb={viewHTML:"Vis HTML",formatting:"Formater",p:"Avsnitt",blockquote:"Sitat",code:"Kode",header:"Overskrift",bold:"Fet",italic:"Kursiv",strikethrough:"Gjennomstreking",underline:"Understreking",strong:"Viktig",em:"Fremhevet",del:"Slettet",unorderedList:"Uordnet liste",orderedList:"Ordnet liste",insertImage:"Sett inn bilde",insertVideo:"Sett inn video",link:"Lenke",createLink:"Sett inn lenke",unlink:"Fjern lenke",justifyLeft:"Venstrejuster",justifyCenter:"Midtstill",justifyRight:"Høyrejuster",justifyFull:"Blokkjuster",horizontalRule:"Horisontal linje",fullscreen:"Full skjerm",close:"Lukk",submit:"Bekreft",reset:"Avbryt",required:"Påkrevd",description:"Beskrivelse",title:"Tittel",text:"Tekst"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ph.js b/src/assets/scripts/trumbowyg/langs/ph.js new file mode 100755 index 0000000..5dfa242 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ph.js @@ -0,0 +1,54 @@ +/* =========================================================== + * ph.js + * Filipino translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : @leogono + */ + +jQuery.trumbowyg.langs.ph = { + viewHTML: 'Tumingin sa HTML', + + formatting: 'Formatting', + p: 'Talata', + blockquote: 'Blockquote', + code: 'Kowd', + header: 'Header', + + bold: 'Makapal', + italic: 'Hilig', + strikethrough: 'Strikethrough', + underline: 'Salungguhit', + + strong: 'Malakas', + em: 'Hilig', + del: 'Tinanggal', + + unorderedList: 'Hindi nakahanay na listahan', + orderedList: 'Nakahanay na listahan', + + insertImage: 'Ilagay ang larawan', + insertVideo: 'Ilagay ang video', + link: 'Koneksyon', + createLink: 'Iugnay', + unlink: 'Tanggalin ang koneksyon', + + justifyLeft: 'Ihanay sa kaliwa', + justifyCenter: 'Ihanay sa gitna', + justifyRight: 'Ihanay sa kanan', + justifyFull: 'Ihanay sa kaliwa at kanan', + + horizontalRule: 'Pahalang na linya', + + fullscreen: 'Fullscreen', + + close: 'Isara', + + submit: 'Ipasa', + reset: 'I-reset', + + required: 'Kailangan', + description: 'Paglalarawan', + title: 'Pamagat', + text: 'Teksto' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ph.min.js b/src/assets/scripts/trumbowyg/langs/ph.min.js new file mode 100755 index 0000000..ae04358 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ph.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * ph.js + * Filipino translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : @leogono + */ +jQuery.trumbowyg.langs.ph={viewHTML:"Tumingin sa HTML",formatting:"Formatting",p:"Talata",blockquote:"Blockquote",code:"Kowd",header:"Header",bold:"Makapal",italic:"Hilig",strikethrough:"Strikethrough",underline:"Salungguhit",strong:"Malakas",em:"Hilig",del:"Tinanggal",unorderedList:"Hindi nakahanay na listahan",orderedList:"Nakahanay na listahan",insertImage:"Ilagay ang larawan",insertVideo:"Ilagay ang video",link:"Koneksyon",createLink:"Iugnay",unlink:"Tanggalin ang koneksyon",justifyLeft:"Ihanay sa kaliwa",justifyCenter:"Ihanay sa gitna",justifyRight:"Ihanay sa kanan",justifyFull:"Ihanay sa kaliwa at kanan",horizontalRule:"Pahalang na linya",fullscreen:"Fullscreen",close:"Isara",submit:"Ipasa",reset:"I-reset",required:"Kailangan",description:"Paglalarawan",title:"Pamagat",text:"Teksto"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/pl.js b/src/assets/scripts/trumbowyg/langs/pl.js new file mode 100755 index 0000000..a963583 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pl.js @@ -0,0 +1,55 @@ +/* =========================================================== + * pl.js + * Polish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Paweł Abramowicz + * Github : https://github.com/pawelabrams + */ + +jQuery.trumbowyg.langs.pl = { + viewHTML: 'Pokaż HTML', + + formatting: 'Format', + p: 'Akapit', + blockquote: 'Cytat', + code: 'Kod', + header: 'Nagłówek', + + bold: 'Pogrubienie', + italic: 'Pochylenie', + strikethrough: 'Przekreślenie', + underline: 'Podkreślenie', + + strong: 'Wytłuszczenie', + em: 'Uwydatnienie', + del: 'Usunięte', + + unorderedList: 'Lista nieuporządkowana', + orderedList: 'Lista uporządkowana', + + insertImage: 'Wstaw obraz', + insertVideo: 'Wstaw film', + link: 'Link', + createLink: 'Wstaw link', + unlink: 'Usuń link', + + justifyLeft: 'Wyrównaj do lewej', + justifyCenter: 'Wyśrodkuj', + justifyRight: 'Wyrównaj do prawej', + justifyFull: 'Wyjustuj', + + horizontalRule: 'Odkreśl linią', + + fullscreen: 'Pełny ekran', + + close: 'Zamknij', + + submit: 'Zastosuj', + reset: 'Przywróć', + + required: 'Wymagane', + description: 'Opis', + title: 'Tytuł', + text: 'Tekst' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/pl.min.js b/src/assets/scripts/trumbowyg/langs/pl.min.js new file mode 100755 index 0000000..7d7a436 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pl.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * pl.js + * Polish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Paweł Abramowicz + * Github : https://github.com/pawelabrams + */ +jQuery.trumbowyg.langs.pl={viewHTML:"Pokaż HTML",formatting:"Format",p:"Akapit",blockquote:"Cytat",code:"Kod",header:"Nagłówek",bold:"Pogrubienie",italic:"Pochylenie",strikethrough:"Przekreślenie",underline:"Podkreślenie",strong:"Wytłuszczenie",em:"Uwydatnienie",del:"Usunięte",unorderedList:"Lista nieuporządkowana",orderedList:"Lista uporządkowana",insertImage:"Wstaw obraz",insertVideo:"Wstaw film",link:"Link",createLink:"Wstaw link",unlink:"Usuń link",justifyLeft:"Wyrównaj do lewej",justifyCenter:"Wyśrodkuj",justifyRight:"Wyrównaj do prawej",justifyFull:"Wyjustuj",horizontalRule:"Odkreśl linią",fullscreen:"Pełny ekran",close:"Zamknij",submit:"Zastosuj",reset:"Przywróć",required:"Wymagane",description:"Opis",title:"Tytuł",text:"Tekst"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/pt.js b/src/assets/scripts/trumbowyg/langs/pt.js new file mode 100755 index 0000000..6873b7c --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pt.js @@ -0,0 +1,65 @@ +/* =========================================================== + * pt.js + * Portuguese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Ramiro Varandas Jr (ramirovjr) + * Twitter : @ramirovjnr + * Website : about.me/ramirovjnr + * Github : https://github.com/ramirovjr + */ + +jQuery.trumbowyg.langs.pt = { + viewHTML: 'Ver HTML', + + undo: 'Desfazer', + redo: 'Refazer', + + formatting: 'Formatar', + p: 'Paragráfo', + blockquote: 'Citação', + code: 'Código', + header: 'Título', + + bold: 'Negrito', + italic: 'Itálico', + strikethrough: 'Suprimir', + underline: 'Sublinhado', + + strong: 'Negrito', + em: 'Ênfase', + del: 'Apagar', + + superscript: 'Sobrescrito', + subscript: 'Subscrito', + + unorderedList: 'Lista não ordenada', + orderedList: 'Lista ordenada', + + insertImage: 'Inserir imagem', + insertVideo: 'Inserir vídeo', + link: 'Link', + createLink: 'Criar um link', + unlink: 'Remover link', + + justifyLeft: 'Alinhar a esquerda', + justifyCenter: 'Centralizar', + justifyRight: 'Alinhar a direita', + justifyFull: 'Justificar', + + horizontalRule: 'Inserir separador horizontal', + removeformat: 'Remover formatação', + + fullscreen: 'Tela cheia', + + close: 'Fechar', + + submit: 'Enviar', + reset: 'Limpar', + + required: 'Obrigatório', + description: 'Descrição', + title: 'Título', + text: 'Texto', + target: 'Target' +}; diff --git a/src/assets/scripts/trumbowyg/langs/pt.min.js b/src/assets/scripts/trumbowyg/langs/pt.min.js new file mode 100755 index 0000000..63fb239 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pt.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * pt.js + * Portuguese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Ramiro Varandas Jr (ramirovjr) + * Twitter : @ramirovjnr + * Website : about.me/ramirovjnr + * Github : https://github.com/ramirovjr + */ +jQuery.trumbowyg.langs.pt={viewHTML:"Ver HTML",undo:"Desfazer",redo:"Refazer",formatting:"Formatar",p:"Paragráfo",blockquote:"Citação",code:"Código",header:"Título",bold:"Negrito",italic:"Itálico",strikethrough:"Suprimir",underline:"Sublinhado",strong:"Negrito",em:"Ênfase",del:"Apagar",superscript:"Sobrescrito",subscript:"Subscrito",unorderedList:"Lista não ordenada",orderedList:"Lista ordenada",insertImage:"Inserir imagem",insertVideo:"Inserir vídeo",link:"Link",createLink:"Criar um link",unlink:"Remover link",justifyLeft:"Alinhar a esquerda",justifyCenter:"Centralizar",justifyRight:"Alinhar a direita",justifyFull:"Justificar",horizontalRule:"Inserir separador horizontal",removeformat:"Remover formatação",fullscreen:"Tela cheia",close:"Fechar",submit:"Enviar",reset:"Limpar",required:"Obrigatório",description:"Descrição",title:"Título",text:"Texto",target:"Target"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/pt_br.js b/src/assets/scripts/trumbowyg/langs/pt_br.js new file mode 100755 index 0000000..251dba8 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pt_br.js @@ -0,0 +1,65 @@ +/* =========================================================== + * pt_br.js + * Portuguese Brazilian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Alex Gotardi (alexgotardi) + * Twitter : @alexgotardi + * Github : https://github.com/alexgotardi + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.pt_br = { + viewHTML: 'Ver HTML', + + undo: 'Desfazer', + redo: 'Refazer', + + formatting: 'Formatar', + p: 'Parágrafo', + blockquote: 'Citação', + code: 'Código', + header: 'Título', + + bold: 'Negrito', + italic: 'Itálico', + strikethrough: 'Tachado', + underline: 'Sublinhado', + + strong: 'Negrito', + em: 'Ênfase', + del: 'Apagar', + + superscript: 'Sobrescrito', + subscript: 'Subscrito', + + unorderedList: 'Lista não ordenada', + orderedList: 'Lista ordenada', + + insertImage: 'Inserir imagem', + insertVideo: 'Inserir vídeo', + link: 'Link', + createLink: 'Criar um link', + unlink: 'Remover link', + + justifyLeft: 'Alinhar a esquerda', + justifyCenter: 'Centralizar', + justifyRight: 'Alinhar a direita', + justifyFull: 'Justificar', + + horizontalRule: 'Inserir separador horizontal', + removeformat: 'Remover formatação', + + fullscreen: 'Tela cheia', + + close: 'Fechar', + + submit: 'Enviar', + reset: 'Limpar', + + required: 'Obrigatório', + description: 'Descrição', + title: 'Título', + text: 'Texto', + target: 'Alvo' +}; diff --git a/src/assets/scripts/trumbowyg/langs/pt_br.min.js b/src/assets/scripts/trumbowyg/langs/pt_br.min.js new file mode 100755 index 0000000..9e1d4fd --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/pt_br.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * pt_br.js + * Portuguese Brazilian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Alex Gotardi (alexgotardi) + * Twitter : @alexgotardi + * Github : https://github.com/alexgotardi + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.pt_br={viewHTML:"Ver HTML",undo:"Desfazer",redo:"Refazer",formatting:"Formatar",p:"Parágrafo",blockquote:"Citação",code:"Código",header:"Título",bold:"Negrito",italic:"Itálico",strikethrough:"Tachado",underline:"Sublinhado",strong:"Negrito",em:"Ênfase",del:"Apagar",superscript:"Sobrescrito",subscript:"Subscrito",unorderedList:"Lista não ordenada",orderedList:"Lista ordenada",insertImage:"Inserir imagem",insertVideo:"Inserir vídeo",link:"Link",createLink:"Criar um link",unlink:"Remover link",justifyLeft:"Alinhar a esquerda",justifyCenter:"Centralizar",justifyRight:"Alinhar a direita",justifyFull:"Justificar",horizontalRule:"Inserir separador horizontal",removeformat:"Remover formatação",fullscreen:"Tela cheia",close:"Fechar",submit:"Enviar",reset:"Limpar",required:"Obrigatório",description:"Descrição",title:"Título",text:"Texto",target:"Alvo"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ro.js b/src/assets/scripts/trumbowyg/langs/ro.js new file mode 100755 index 0000000..ad1663f --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ro.js @@ -0,0 +1,58 @@ +/* =========================================================== + * ro.js + * Romanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Vladut Radulescu (pacMakaveli) + * Email: pacMakaveli90@gmail.com + * Twitter : @pacMakaveli90 + * Website : creative-studio51.co.uk + * Github : https://github.com/pacMakaveli + */ + +jQuery.trumbowyg.langs.ro = { + viewHTML: 'Vizualizare HTML', + + formatting: 'Format', + p: 'Paragraf', + blockquote: 'Citație', + code: 'Cod', + header: 'Titlu', + + bold: 'Bold', + italic: 'Italic', + strikethrough: 'Tăiat', + underline: 'Subliniat', + + strong: 'Puternic', + em: 'Accentuat', + del: 'Sterge', + + unorderedList: 'Lista dezordonată', + orderedList: 'Liste ordonată', + + insertImage: 'Adăugare Imagine', + insertVideo: 'Adăugare Video', + link: 'Link', + createLink: 'Crează link', + unlink: 'Remover link', + + justifyLeft: 'Aliniază stânga', + justifyCenter: 'Aliniază centru', + justifyRight: 'Aliniază dreapta', + justifyFull: 'Justificare', + + horizontalRule: 'Linie orizontală', + + fullscreen: 'Tot ecranul', + + close: 'Închide', + + submit: 'Procesează', + reset: 'Resetează', + + required: 'Obligatoriu', + description: 'Descriere', + title: 'Titlu', + text: 'Text' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ro.min.js b/src/assets/scripts/trumbowyg/langs/ro.min.js new file mode 100755 index 0000000..7f071e8 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ro.min.js @@ -0,0 +1,12 @@ +/* =========================================================== + * ro.js + * Romanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Vladut Radulescu (pacMakaveli) + * Email: pacMakaveli90@gmail.com + * Twitter : @pacMakaveli90 + * Website : creative-studio51.co.uk + * Github : https://github.com/pacMakaveli + */ +jQuery.trumbowyg.langs.ro={viewHTML:"Vizualizare HTML",formatting:"Format",p:"Paragraf",blockquote:"Citație",code:"Cod",header:"Titlu",bold:"Bold",italic:"Italic",strikethrough:"Tăiat",underline:"Subliniat",strong:"Puternic",em:"Accentuat",del:"Sterge",unorderedList:"Lista dezordonată",orderedList:"Liste ordonată",insertImage:"Adăugare Imagine",insertVideo:"Adăugare Video",link:"Link",createLink:"Crează link",unlink:"Remover link",justifyLeft:"Aliniază stânga",justifyCenter:"Aliniază centru",justifyRight:"Aliniază dreapta",justifyFull:"Justificare",horizontalRule:"Linie orizontală",fullscreen:"Tot ecranul",close:"Închide",submit:"Procesează",reset:"Resetează",required:"Obligatoriu",description:"Descriere",title:"Titlu",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/rs.js b/src/assets/scripts/trumbowyg/langs/rs.js new file mode 100755 index 0000000..b529e27 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/rs.js @@ -0,0 +1,53 @@ +/* =========================================================== + * rs.js + * Serbian (Cyrlic) translation for Trumbowyg + * https://www.github.com/johonunu + * =========================================================== + * Author : Nikola Trifunovic (https://www.github.com/johonunu) + */ + +jQuery.trumbowyg.langs.rs = { + viewHTML: 'Погледај HTML кóд', + + formatting: 'Форматирање', + p: 'Параграф', + blockquote: 'Цитат', + code: 'Кóд', + header: 'Наслов', + + bold: 'Подебљано', + italic: 'Курзив', + strikethrough: 'Прецртано', + underline: 'Подвучено', + + strong: 'Подебљано', + em: 'Истакнуто', + del: 'Обрисано', + + unorderedList: 'Ненабројива листа', + orderedList: 'Набројива листа', + insertImage: 'Унеси слику', + insertVideo: 'Унеси видео', + link: 'Линк', + createLink: 'Унеси линк', + unlink: 'Уклони линк', + + justifyLeft: 'Лево равнање', + justifyCenter: 'Централно равнање', + justifyRight: 'Десно равнање', + justifyFull: 'Обострано равнање', + + horizontalRule: 'Хоризонтална линија', + + fullscreen: 'Режим читавог екрана', + + close: 'Затвори', + + submit: 'Унеси', + reset: 'Откажи', + + required: 'Обавезно поље', + description: 'Опис', + title: 'Наслов', + text: 'Текст' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/rs.min.js b/src/assets/scripts/trumbowyg/langs/rs.min.js new file mode 100755 index 0000000..6940450 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/rs.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * rs.js + * Serbian (Cyrlic) translation for Trumbowyg + * https://www.github.com/johonunu + * =========================================================== + * Author : Nikola Trifunovic (https://www.github.com/johonunu) + */ +jQuery.trumbowyg.langs.rs={viewHTML:"Погледај HTML кóд",formatting:"Форматирање",p:"Параграф",blockquote:"Цитат",code:"Кóд",header:"Наслов",bold:"Подебљано",italic:"Курзив",strikethrough:"Прецртано",underline:"Подвучено",strong:"Подебљано",em:"Истакнуто",del:"Обрисано",unorderedList:"Ненабројива листа",orderedList:"Набројива листа",insertImage:"Унеси слику",insertVideo:"Унеси видео",link:"Линк",createLink:"Унеси линк",unlink:"Уклони линк",justifyLeft:"Лево равнање",justifyCenter:"Централно равнање",justifyRight:"Десно равнање",justifyFull:"Обострано равнање",horizontalRule:"Хоризонтална линија",fullscreen:"Режим читавог екрана",close:"Затвори",submit:"Унеси",reset:"Откажи",required:"Обавезно поље",description:"Опис",title:"Наслов",text:"Текст"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/rs_latin.js b/src/assets/scripts/trumbowyg/langs/rs_latin.js new file mode 100755 index 0000000..3931cde --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/rs_latin.js @@ -0,0 +1,54 @@ +/* =========================================================== + * rs_latin.js + * Serbian (Latin) translation for Trumbowyg + * https://www.github.com/johonunu + * =========================================================== + * Author : Nikola Trifunovic (https://www.github.com/johonunu) + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.rs_latin = { + viewHTML: 'Poglеdaj HTML kód', + + formatting: 'Formatiranjе', + p: 'Paragraf', + blockquote: 'Citat', + code: 'Kód', + header: 'Naslov', + + bold: 'Podеbljano', + italic: 'Kurziv', + strikethrough: 'Prеcrtano', + underline: 'Podvučеno', + + strong: 'Podеbljano', + em: 'Istaknuto', + del: 'Obrisano', + + unorderedList: 'Nеnabrojiva lista', + orderedList: 'Nabrojiva lista', + insertImage: 'Unеsi sliku', + insertVideo: 'Unеsi vidеo', + link: 'Link', + createLink: 'Unеsi link', + unlink: 'Ukloni link', + + justifyLeft: 'Lеvo ravnanjе', + justifyCenter: 'Cеntralno ravnanjе', + justifyRight: 'Dеsno ravnanjе', + justifyFull: 'Obostrano ravnanjе', + + horizontalRule: 'Horizontalna linija', + + fullscreen: 'Rеžim čitavog еkrana', + + close: 'Zatvori', + + submit: 'Unеsi', + reset: 'Otkaži', + + required: 'Obavеzno poljе', + description: 'Opis', + title: 'Naslov', + text: 'Tеkst' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/rs_latin.min.js b/src/assets/scripts/trumbowyg/langs/rs_latin.min.js new file mode 100755 index 0000000..985b363 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/rs_latin.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * rs_latin.js + * Serbian (Latin) translation for Trumbowyg + * https://www.github.com/johonunu + * =========================================================== + * Author : Nikola Trifunovic (https://www.github.com/johonunu) + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.rs_latin={viewHTML:"Poglеdaj HTML kód",formatting:"Formatiranjе",p:"Paragraf",blockquote:"Citat",code:"Kód",header:"Naslov",bold:"Podеbljano",italic:"Kurziv",strikethrough:"Prеcrtano",underline:"Podvučеno",strong:"Podеbljano",em:"Istaknuto",del:"Obrisano",unorderedList:"Nеnabrojiva lista",orderedList:"Nabrojiva lista",insertImage:"Unеsi sliku",insertVideo:"Unеsi vidеo",link:"Link",createLink:"Unеsi link",unlink:"Ukloni link",justifyLeft:"Lеvo ravnanjе",justifyCenter:"Cеntralno ravnanjе",justifyRight:"Dеsno ravnanjе",justifyFull:"Obostrano ravnanjе",horizontalRule:"Horizontalna linija",fullscreen:"Rеžim čitavog еkrana",close:"Zatvori",submit:"Unеsi",reset:"Otkaži",required:"Obavеzno poljе",description:"Opis",title:"Naslov",text:"Tеkst"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ru.js b/src/assets/scripts/trumbowyg/langs/ru.js new file mode 100755 index 0000000..9388007 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ru.js @@ -0,0 +1,61 @@ +/* =========================================================== + * ru.js + * Russion translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Yuri Lya + */ + +jQuery.trumbowyg.langs.ru = { + viewHTML: 'Посмотреть HTML', + + undo: 'Отменить', + redo: 'Повторить', + + formatting: 'Форматирование', + p: 'Обычный', + blockquote: 'Цитата', + code: 'Код', + header: 'Заголовок', + + bold: 'Полужирный', + italic: 'Курсив', + strikethrough: 'Зачеркнутый', + underline: 'Подчеркнутый', + + strong: 'Полужирный', + em: 'Курсив', + del: 'Зачеркнутый', + + superscript: 'Надстрочный', + subscript: 'Подстрочный', + + unorderedList: 'Обычный список', + orderedList: 'Нумерованный список', + + insertImage: 'Вставить изображение', + insertVideo: 'Вставить видео', + link: 'Ссылка', + createLink: 'Вставить ссылку', + unlink: 'Удалить ссылку', + + justifyLeft: 'По левому краю', + justifyCenter: 'По центру', + justifyRight: 'По правому краю', + justifyFull: 'По ширине', + + horizontalRule: 'Горизонтальная линия', + removeformat: 'Очистить форматирование', + + fullscreen: 'Во весь экран', + + close: 'Закрыть', + + submit: 'Вставить', + reset: 'Отменить', + + required: 'Обязательное', + description: 'Описание', + title: 'Подсказка', + text: 'Текст' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ru.min.js b/src/assets/scripts/trumbowyg/langs/ru.min.js new file mode 100755 index 0000000..a8feee2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ru.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * ru.js + * Russion translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Yuri Lya + */ +jQuery.trumbowyg.langs.ru={viewHTML:"Посмотреть HTML",undo:"Отменить",redo:"Повторить",formatting:"Форматирование",p:"Обычный",blockquote:"Цитата",code:"Код",header:"Заголовок",bold:"Полужирный",italic:"Курсив",strikethrough:"Зачеркнутый",underline:"Подчеркнутый",strong:"Полужирный",em:"Курсив",del:"Зачеркнутый",superscript:"Надстрочный",subscript:"Подстрочный",unorderedList:"Обычный список",orderedList:"Нумерованный список",insertImage:"Вставить изображение",insertVideo:"Вставить видео",link:"Ссылка",createLink:"Вставить ссылку",unlink:"Удалить ссылку",justifyLeft:"По левому краю",justifyCenter:"По центру",justifyRight:"По правому краю",justifyFull:"По ширине",horizontalRule:"Горизонтальная линия",removeformat:"Очистить форматирование",fullscreen:"Во весь экран",close:"Закрыть",submit:"Вставить",reset:"Отменить",required:"Обязательное",description:"Описание",title:"Подсказка",text:"Текст"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/sk.js b/src/assets/scripts/trumbowyg/langs/sk.js new file mode 100755 index 0000000..d9b7ff2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sk.js @@ -0,0 +1,54 @@ +/* =========================================================== + * sk.js + * Slovak translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : VeeeneX (https://github.com/VeeeneX) + */ + +jQuery.trumbowyg.langs.sk = { + viewHTML: 'Zobraziť HTML', + + formatting: 'Formátovanie', + p: 'Paragraf', + blockquote: 'Citácia', + code: 'Kód', + header: 'Nadpis', + + bold: 'Tučné', + italic: 'Kurzíva', + strikethrough: 'Preškrtnuté', + underline: 'Podčiarknuté', + + strong: 'Tučné', + em: 'Zvýrazniť', + del: 'Zmazať', + + unorderedList: 'Netriedený zoznam', + orderedList: 'Triedený zoznam', + + insertImage: 'Vložiť obrázok', + insertVideo: 'Vložiť video', + link: 'Odkaz', + createLink: 'Vložiť odkaz', + unlink: 'Zmazať odkaz', + + justifyLeft: 'Zarovnať doľava', + justifyCenter: 'Zarovnať na stred', + justifyRight: 'Zarovnať doprava', + justifyFull: 'Zarovnať do bloku', + + horizontalRule: 'Vložit vodorovnú čiaru', + + fullscreen: 'Režim celej obrazovky', + + close: 'Zavrieť', + + submit: 'Potvrdiť', + reset: 'Zrušiť', + + required: 'Povinné', + description: 'Popis', + title: 'Nadpis', + text: 'Text' +}; diff --git a/src/assets/scripts/trumbowyg/langs/sk.min.js b/src/assets/scripts/trumbowyg/langs/sk.min.js new file mode 100755 index 0000000..cb74fd2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sk.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * sk.js + * Slovak translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : VeeeneX (https://github.com/VeeeneX) + */ +jQuery.trumbowyg.langs.sk={viewHTML:"Zobraziť HTML",formatting:"Formátovanie",p:"Paragraf",blockquote:"Citácia",code:"Kód",header:"Nadpis",bold:"Tučné",italic:"Kurzíva",strikethrough:"Preškrtnuté",underline:"Podčiarknuté",strong:"Tučné",em:"Zvýrazniť",del:"Zmazať",unorderedList:"Netriedený zoznam",orderedList:"Triedený zoznam",insertImage:"Vložiť obrázok",insertVideo:"Vložiť video",link:"Odkaz",createLink:"Vložiť odkaz",unlink:"Zmazať odkaz",justifyLeft:"Zarovnať doľava",justifyCenter:"Zarovnať na stred",justifyRight:"Zarovnať doprava",justifyFull:"Zarovnať do bloku",horizontalRule:"Vložit vodorovnú čiaru",fullscreen:"Režim celej obrazovky",close:"Zavrieť",submit:"Potvrdiť",reset:"Zrušiť",required:"Povinné",description:"Popis",title:"Nadpis",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/sq.js b/src/assets/scripts/trumbowyg/langs/sq.js new file mode 100755 index 0000000..da3543a --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sq.js @@ -0,0 +1,65 @@ +/* =========================================================== + * sq.js + * Albanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Adalen Vladi + */ + +jQuery.trumbowyg.langs.sq = { + + viewHTML: 'Shfaq HTML', + + undo: 'Prish', + redo: 'Ribej', + + formatting: 'Formatimi', + p: 'Paragraf', + blockquote: 'Citat', + code: 'Kodi', + header: 'Koka', + + bold: 'Spikatur', + italic: 'Pjerret', + strikethrough: 'Vize ne mes', + underline: 'Nenvizo', + + strong: 'I trashe', + em: 'I theksuar', + del: 'I fshire', + + superscript: 'Indeks i sipërm', + subscript: 'Indeks i poshtem', + + unorderedList: 'Liste e parenditur', + orderedList: 'Liste e renditur', + + + insertImage: 'Fut Foto', + insertVideo: 'Fut Video', + link: 'Link', + createLink: 'Krijo Link', + unlink: 'Hiq Link', + + justifyLeft: 'Drejto Majtas', + justifyCenter: 'Drejto ne Qender', + justifyRight: 'Drejto Djathtas', + justifyFull: 'Drejto Vete', + + horizontalRule: 'Vendos rregulloren horizontale', + removeformat: 'Hiq formatin', + + fullscreen: 'Ekran i plotë', + + close: 'Mbyll', + + submit: 'Konfirmo', + reset: 'Anullo', + + required: 'I detyrueshem', + description: 'Pershkrimi', + title: 'Titulli', + text: 'Tekst', + target: 'Objektivi', + width: 'Gjeresia' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/sq.min.js b/src/assets/scripts/trumbowyg/langs/sq.min.js new file mode 100755 index 0000000..eeae06b --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sq.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * sq.js + * Albanian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Adalen Vladi + */ +jQuery.trumbowyg.langs.sq={viewHTML:"Shfaq HTML",undo:"Prish",redo:"Ribej",formatting:"Formatimi",p:"Paragraf",blockquote:"Citat",code:"Kodi",header:"Koka",bold:"Spikatur",italic:"Pjerret",strikethrough:"Vize ne mes",underline:"Nenvizo",strong:"I trashe",em:"I theksuar",del:"I fshire",superscript:"Indeks i sipërm",subscript:"Indeks i poshtem",unorderedList:"Liste e parenditur",orderedList:"Liste e renditur",insertImage:"Fut Foto",insertVideo:"Fut Video",link:"Link",createLink:"Krijo Link",unlink:"Hiq Link",justifyLeft:"Drejto Majtas",justifyCenter:"Drejto ne Qender",justifyRight:"Drejto Djathtas",justifyFull:"Drejto Vete",horizontalRule:"Vendos rregulloren horizontale",removeformat:"Hiq formatin",fullscreen:"Ekran i plotë",close:"Mbyll",submit:"Konfirmo",reset:"Anullo",required:"I detyrueshem",description:"Pershkrimi",title:"Titulli",text:"Tekst",target:"Objektivi",width:"Gjeresia"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/sv.js b/src/assets/scripts/trumbowyg/langs/sv.js new file mode 100755 index 0000000..c61c7d5 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sv.js @@ -0,0 +1,58 @@ +/* =========================================================== + * sv.js + * Swedish translation for Trumbowyg + * http://www.tim-international.net + * =========================================================== + * Author : T. Almroth + * Github : https://github.com/timint + * + * Review : M Hagberg + * Github : https://github.com/pestbarn + */ + +jQuery.trumbowyg.langs.sv = { + viewHTML: 'Visa HTML', + + formatting: 'Formatering', + p: 'Paragraf', + blockquote: 'Citat', + code: 'Kod', + header: 'Rubrik', + + bold: 'Fet', + italic: 'Kursiv', + strikethrough: 'Genomstruken', + underline: 'Understruken', + + strong: 'Fet', + em: 'Kursiv', + del: 'Rensa formatering', + + unorderedList: 'Punktlista', + orderedList: 'Numrerad lista', + + insertImage: 'Infoga bild', + insertVideo: 'Infoga video', + link: 'Länk', + createLink: 'Infoga länk', + unlink: 'Ta bort länk', + + justifyLeft: 'Vänsterjustera', + justifyCenter: 'Centrera', + justifyRight: 'Högerjustera', + justifyFull: 'Marginaljustera', + + horizontalRule: 'Horisontell linje', + + fullscreen: 'Fullskärm', + + close: 'Stäng', + + submit: 'Bekräfta', + reset: 'Återställ', + + required: 'Obligatorisk', + description: 'Beskrivning', + title: 'Titel', + text: 'Text' +}; diff --git a/src/assets/scripts/trumbowyg/langs/sv.min.js b/src/assets/scripts/trumbowyg/langs/sv.min.js new file mode 100755 index 0000000..1d6ac42 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/sv.min.js @@ -0,0 +1,12 @@ +/* =========================================================== + * sv.js + * Swedish translation for Trumbowyg + * http://www.tim-international.net + * =========================================================== + * Author : T. Almroth + * Github : https://github.com/timint + * + * Review : M Hagberg + * Github : https://github.com/pestbarn + */ +jQuery.trumbowyg.langs.sv={viewHTML:"Visa HTML",formatting:"Formatering",p:"Paragraf",blockquote:"Citat",code:"Kod",header:"Rubrik",bold:"Fet",italic:"Kursiv",strikethrough:"Genomstruken",underline:"Understruken",strong:"Fet",em:"Kursiv",del:"Rensa formatering",unorderedList:"Punktlista",orderedList:"Numrerad lista",insertImage:"Infoga bild",insertVideo:"Infoga video",link:"Länk",createLink:"Infoga länk",unlink:"Ta bort länk",justifyLeft:"Vänsterjustera",justifyCenter:"Centrera",justifyRight:"Högerjustera",justifyFull:"Marginaljustera",horizontalRule:"Horisontell linje",fullscreen:"Fullskärm",close:"Stäng",submit:"Bekräfta",reset:"Återställ",required:"Obligatorisk",description:"Beskrivning",title:"Titel",text:"Text"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/th.js b/src/assets/scripts/trumbowyg/langs/th.js new file mode 100755 index 0000000..5d51eed --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/th.js @@ -0,0 +1,55 @@ +/* =========================================================== + * th.js + * Thai translation for Trumbowyg + * https://github.com/ionsoft/Trumbowyg + * =========================================================== + * Author : Gonatee Klanktong + * Github : https://github.com/gonateek + */ + +jQuery.trumbowyg.langs.de = { + viewHTML: 'ดู HTML', + + formatting: 'จัดรูปแบบ', + p: 'ย่อหน้า', + blockquote: 'อ้างอิง', + code: 'โค๊ด', + header: 'ส่วนหัว', + + bold: 'หนา', + italic: 'เอียง', + strikethrough: 'ขีดทับ', + underline: 'เส้นใต้', + + strong: 'สำคัญ', + em: 'เน้น', + del: 'ลบ', + + unorderedList: 'รายการ', + orderedList: 'รายการ(ตัวเลข)', + + insertImage: 'ใส่รูป', + insertVideo: 'ใส่วิดีโอ', + link: 'ลิงค์', + createLink: 'สร้างลิงค์', + unlink: 'ยกเลิกลิงค์', + + justifyLeft: 'ชิดซ้าย', + justifyCenter: 'กลาง', + justifyRight: 'ชิดขวา', + justifyFull: 'เต็มบรรทัด', + + horizontalRule: 'เส้นแนวนอน', + + fullscreen: 'เต็มหน้าจอ', + + close: 'ปิด', + + submit: 'ตกลง', + reset: 'เริ่มใหม่', + + required: 'จำเป็น', + description: 'คำอธิบาย', + title: 'หัวเรื่อง', + text: 'ข้อความ' +}; diff --git a/src/assets/scripts/trumbowyg/langs/th.min.js b/src/assets/scripts/trumbowyg/langs/th.min.js new file mode 100755 index 0000000..c4a6e4c --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/th.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * th.js + * Thai translation for Trumbowyg + * https://github.com/ionsoft/Trumbowyg + * =========================================================== + * Author : Gonatee Klanktong + * Github : https://github.com/gonateek + */ +jQuery.trumbowyg.langs.de={viewHTML:"ดู HTML",formatting:"จัดรูปแบบ",p:"ย่อหน้า",blockquote:"อ้างอิง",code:"โค๊ด",header:"ส่วนหัว",bold:"หนา",italic:"เอียง",strikethrough:"ขีดทับ",underline:"เส้นใต้",strong:"สำคัญ",em:"เน้น",del:"ลบ",unorderedList:"รายการ",orderedList:"รายการ(ตัวเลข)",insertImage:"ใส่รูป",insertVideo:"ใส่วิดีโอ",link:"ลิงค์",createLink:"สร้างลิงค์",unlink:"ยกเลิกลิงค์",justifyLeft:"ชิดซ้าย",justifyCenter:"กลาง",justifyRight:"ชิดขวา",justifyFull:"เต็มบรรทัด",horizontalRule:"เส้นแนวนอน",fullscreen:"เต็มหน้าจอ",close:"ปิด",submit:"ตกลง",reset:"เริ่มใหม่",required:"จำเป็น",description:"คำอธิบาย",title:"หัวเรื่อง",text:"ข้อความ"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/tr.js b/src/assets/scripts/trumbowyg/langs/tr.js new file mode 100755 index 0000000..0a16604 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/tr.js @@ -0,0 +1,55 @@ +/* =========================================================== + * tr.js + * Turkish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Emrah Bilbay (munzur) + * Github : https://github.com/munzur + */ + +jQuery.trumbowyg.langs.tr = { + viewHTML: 'HTML Kodu', + + formatting: 'Biçimlendirme', + p: 'Paragraf', + blockquote: 'Alıntı', + code: 'Kod', + header: 'Başlık', + + bold: 'Kalın', + italic: 'İtalik', + strikethrough: 'Üzeri çizgili', + underline: 'Altı çizgili', + + strong: 'Koyu', + em: 'Vurgulu', + del: 'Üzeri çizgili', + + unorderedList: 'Simgeli liste', + orderedList: 'Numaralı liste', + + insertImage: 'Resim yerleştir', + insertVideo: 'Video yerleştir', + link: 'Link', + createLink: 'Link yerleştir', + unlink: 'Linki sil', + + justifyLeft: 'Sola hizala', + justifyCenter: 'Ortaya hizala', + justifyRight: 'Sağa hizala', + justifyFull: 'Yasla', + + horizontalRule: 'Yatay satır ekle', + + fullscreen: 'Tam ekran', + + close: 'Kapat', + + submit: 'Onayla', + reset: 'Sıfırla', + + required: 'Gerekli', + description: 'Açıklama', + title: 'Başlık', + text: 'Metin' +}; diff --git a/src/assets/scripts/trumbowyg/langs/tr.min.js b/src/assets/scripts/trumbowyg/langs/tr.min.js new file mode 100755 index 0000000..8d36ef2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/tr.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * tr.js + * Turkish translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Emrah Bilbay (munzur) + * Github : https://github.com/munzur + */ +jQuery.trumbowyg.langs.tr={viewHTML:"HTML Kodu",formatting:"Biçimlendirme",p:"Paragraf",blockquote:"Alıntı",code:"Kod",header:"Başlık",bold:"Kalın",italic:"İtalik",strikethrough:"Üzeri çizgili",underline:"Altı çizgili",strong:"Koyu",em:"Vurgulu",del:"Üzeri çizgili",unorderedList:"Simgeli liste",orderedList:"Numaralı liste",insertImage:"Resim yerleştir",insertVideo:"Video yerleştir",link:"Link",createLink:"Link yerleştir",unlink:"Linki sil",justifyLeft:"Sola hizala",justifyCenter:"Ortaya hizala",justifyRight:"Sağa hizala",justifyFull:"Yasla",horizontalRule:"Yatay satır ekle",fullscreen:"Tam ekran",close:"Kapat",submit:"Onayla",reset:"Sıfırla",required:"Gerekli",description:"Açıklama",title:"Başlık",text:"Metin"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/ua.js b/src/assets/scripts/trumbowyg/langs/ua.js new file mode 100755 index 0000000..673c657 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ua.js @@ -0,0 +1,54 @@ +/* =========================================================== + * ua.js + * Ukrainian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Igor Buksha + */ + +jQuery.trumbowyg.langs.ua = { + viewHTML: 'Подивитись HTML', + + formatting: 'Форматування', + p: 'Звичайний', + blockquote: 'Витяг', + code: 'Код', + header: 'Заголовок', + + bold: 'Напівжирний', + italic: 'Курсив', + strikethrough: 'Закреслений', + underline: 'Підкреслений', + + strong: 'Напівжирний', + em: 'Курсив', + del: 'Закреслений', + + unorderedList: 'Звичайний список', + orderedList: 'Нумерований список', + + insertImage: 'Вставити зображення', + insertVideo: 'Вставити відео', + link: 'Посилання', + createLink: 'Вставити посилання', + unlink: 'Видалити посилання', + + justifyLeft: 'По лівому краю', + justifyCenter: 'В центрі', + justifyRight: 'По правому краю', + justifyFull: 'По ширині', + + horizontalRule: 'Горизонтальна лінія', + + fullscreen: 'На весь екран', + + close: 'Закрити', + + submit: 'Вставити', + reset: 'Скасувати', + + required: 'Обов\'язкове', + description: 'Опис', + title: 'Підказка', + text: 'Текст' +}; diff --git a/src/assets/scripts/trumbowyg/langs/ua.min.js b/src/assets/scripts/trumbowyg/langs/ua.min.js new file mode 100755 index 0000000..dab8106 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/ua.min.js @@ -0,0 +1,8 @@ +/* =========================================================== + * ua.js + * Ukrainian translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Igor Buksha + */ +jQuery.trumbowyg.langs.ua={viewHTML:"Подивитись HTML",formatting:"Форматування",p:"Звичайний",blockquote:"Витяг",code:"Код",header:"Заголовок",bold:"Напівжирний",italic:"Курсив",strikethrough:"Закреслений",underline:"Підкреслений",strong:"Напівжирний",em:"Курсив",del:"Закреслений",unorderedList:"Звичайний список",orderedList:"Нумерований список",insertImage:"Вставити зображення",insertVideo:"Вставити відео",link:"Посилання",createLink:"Вставити посилання",unlink:"Видалити посилання",justifyLeft:"По лівому краю",justifyCenter:"В центрі",justifyRight:"По правому краю",justifyFull:"По ширині",horizontalRule:"Горизонтальна лінія",fullscreen:"На весь екран",close:"Закрити",submit:"Вставити",reset:"Скасувати",required:"Обов'язкове",description:"Опис",title:"Підказка",text:"Текст"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/vi.js b/src/assets/scripts/trumbowyg/langs/vi.js new file mode 100755 index 0000000..451e079 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/vi.js @@ -0,0 +1,55 @@ +/* =========================================================== + * vi.js + * Vietnamese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : heocoi + * Github: https://github.com/heocoi + */ + +jQuery.trumbowyg.langs.vi = { + viewHTML: 'Hiển thị HTML', + + formatting: 'Định dạng', + p: 'Đoạn', + blockquote: 'Trích dẫn', + code: 'Code', + header: 'Đầu trang', + + bold: 'In đậm', + italic: 'In nghiêng', + strikethrough: 'Gạch ngang', + underline: 'Gạch chân', + + strong: 'In đậm', + em: 'In nghiêng', + del: 'Gạch ngang', + + unorderedList: 'Danh sách không thứ tự', + orderedList: 'Danh sách có thứ tự', + + insertImage: 'Chèn hình ảnh', + insertVideo: 'Chèn video', + link: 'Đường dẫn', + createLink: 'Tạo đường dẫn', + unlink: 'Hủy đường dẫn', + + justifyLeft: 'Canh lề trái', + justifyCenter: 'Canh giữa', + justifyRight: 'Canh lề phải', + justifyFull: 'Canh đều', + + horizontalRule: 'Thêm đường kẻ ngang', + + fullscreen: 'Toàn màn hình', + + close: 'Đóng', + + submit: 'Đồng ý', + reset: 'Hủy bỏ', + + required: 'Bắt buộc', + description: 'Mô tả', + title: 'Tiêu đề', + text: 'Nội dung' +}; diff --git a/src/assets/scripts/trumbowyg/langs/vi.min.js b/src/assets/scripts/trumbowyg/langs/vi.min.js new file mode 100755 index 0000000..96734f3 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/vi.min.js @@ -0,0 +1,9 @@ +/* =========================================================== + * vi.js + * Vietnamese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : heocoi + * Github: https://github.com/heocoi + */ +jQuery.trumbowyg.langs.vi={viewHTML:"Hiển thị HTML",formatting:"Định dạng",p:"Đoạn",blockquote:"Trích dẫn",code:"Code",header:"Đầu trang",bold:"In đậm",italic:"In nghiêng",strikethrough:"Gạch ngang",underline:"Gạch chân",strong:"In đậm",em:"In nghiêng",del:"Gạch ngang",unorderedList:"Danh sách không thứ tự",orderedList:"Danh sách có thứ tự",insertImage:"Chèn hình ảnh",insertVideo:"Chèn video",link:"Đường dẫn",createLink:"Tạo đường dẫn",unlink:"Hủy đường dẫn",justifyLeft:"Canh lề trái",justifyCenter:"Canh giữa",justifyRight:"Canh lề phải",justifyFull:"Canh đều",horizontalRule:"Thêm đường kẻ ngang",fullscreen:"Toàn màn hình",close:"Đóng",submit:"Đồng ý",reset:"Hủy bỏ",required:"Bắt buộc",description:"Mô tả",title:"Tiêu đề",text:"Nội dung"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/zh_cn.js b/src/assets/scripts/trumbowyg/langs/zh_cn.js new file mode 100755 index 0000000..80877a4 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/zh_cn.js @@ -0,0 +1,57 @@ +/* =========================================================== + * zh_cn.js + * Simplified Chinese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Liu Kai (akai) + * Twitter : @akai404 + * Github : https://github.com/akai + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.zh_cn = { + viewHTML: '源代码', + + formatting: '格式', + p: '段落', + blockquote: '引用', + code: '代码', + header: '标题', + + bold: '加粗', + italic: '斜体', + strikethrough: '删除线', + underline: '下划线', + + strong: '加粗', + em: '斜体', + del: '删除线', + + unorderedList: '无序列表', + orderedList: '有序列表', + + insertImage: '插入图片', + insertVideo: '插入视频', + link: '超链接', + createLink: '插入链接', + unlink: '取消链接', + + justifyLeft: '居左对齐', + justifyCenter: '居中对齐', + justifyRight: '居右对齐', + justifyFull: '两端对齐', + + horizontalRule: '插入分隔线', + + fullscreen: '全屏', + + close: '关闭', + + submit: '确定', + reset: '取消', + + required: '必需的', + description: '描述', + title: '标题', + text: '文字' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/zh_cn.min.js b/src/assets/scripts/trumbowyg/langs/zh_cn.min.js new file mode 100755 index 0000000..9a200d9 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/zh_cn.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * zh_cn.js + * Simplified Chinese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Liu Kai (akai) + * Twitter : @akai404 + * Github : https://github.com/akai + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.zh_cn={viewHTML:"源代码",formatting:"格式",p:"段落",blockquote:"引用",code:"代码",header:"标题",bold:"加粗",italic:"斜体",strikethrough:"删除线",underline:"下划线",strong:"加粗",em:"斜体",del:"删除线",unorderedList:"无序列表",orderedList:"有序列表",insertImage:"插入图片",insertVideo:"插入视频",link:"超链接",createLink:"插入链接",unlink:"取消链接",justifyLeft:"居左对齐",justifyCenter:"居中对齐",justifyRight:"居右对齐",justifyFull:"两端对齐",horizontalRule:"插入分隔线",fullscreen:"全屏",close:"关闭",submit:"确定",reset:"取消",required:"必需的",description:"描述",title:"标题",text:"文字"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/zh_tw.js b/src/assets/scripts/trumbowyg/langs/zh_tw.js new file mode 100755 index 0000000..c236859 --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/zh_tw.js @@ -0,0 +1,66 @@ +/* =========================================================== + * zh_tw.js + * Traditional Chinese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Peter Dave Hello (PeterDaveHello) + * Twitter : @PeterDaveHello + * Github : https://github.com/PeterDaveHello + */ + +// jshint camelcase:false +jQuery.trumbowyg.langs.zh_tw = { + viewHTML: '原始碼', + + undo: '復原', + redo: '重做', + + formatting: '格式', + p: '段落', + blockquote: '引用', + code: '代碼', + header: '標題', + + bold: '加粗', + italic: '斜體', + strikethrough: '刪除線', + underline: '底線', + + strong: '粗體', + em: '斜體', + del: '刪除線', + + superscript: '上標', + subscript: '下標', + + unorderedList: '無序列表', + orderedList: '有序列表', + + insertImage: '插入圖片', + insertVideo: '插入影片', + link: '超連結', + createLink: '插入連結', + unlink: '取消連結', + + justifyLeft: '靠左對齊', + justifyCenter: '置中對齊', + justifyRight: '靠右對齊', + justifyFull: '左右對齊', + + horizontalRule: '插入分隔線', + removeformat: '移除格式', + + fullscreen: '全螢幕', + + close: '關閉', + + submit: '確定', + reset: '取消', + + required: '必需的', + description: '描述', + title: '標題', + text: '文字', + target: '目標', + width: '寬度' +}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/langs/zh_tw.min.js b/src/assets/scripts/trumbowyg/langs/zh_tw.min.js new file mode 100755 index 0000000..95f632e --- /dev/null +++ b/src/assets/scripts/trumbowyg/langs/zh_tw.min.js @@ -0,0 +1,11 @@ +/* =========================================================== + * zh_tw.js + * Traditional Chinese translation for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Peter Dave Hello (PeterDaveHello) + * Twitter : @PeterDaveHello + * Github : https://github.com/PeterDaveHello + */ +// jshint camelcase:false +jQuery.trumbowyg.langs.zh_tw={viewHTML:"原始碼",undo:"復原",redo:"重做",formatting:"格式",p:"段落",blockquote:"引用",code:"代碼",header:"標題",bold:"加粗",italic:"斜體",strikethrough:"刪除線",underline:"底線",strong:"粗體",em:"斜體",del:"刪除線",superscript:"上標",subscript:"下標",unorderedList:"無序列表",orderedList:"有序列表",insertImage:"插入圖片",insertVideo:"插入影片",link:"超連結",createLink:"插入連結",unlink:"取消連結",justifyLeft:"靠左對齊",justifyCenter:"置中對齊",justifyRight:"靠右對齊",justifyFull:"左右對齊",horizontalRule:"插入分隔線",removeformat:"移除格式",fullscreen:"全螢幕",close:"關閉",submit:"確定",reset:"取消",required:"必需的",description:"描述",title:"標題",text:"文字",target:"目標",width:"寬度"}; \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js b/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js new file mode 100755 index 0000000..8876e1a --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js @@ -0,0 +1,143 @@ +/* =========================================================== + * trumbowyg.allowTagsFromPaste.js v1.0.2 + * It cleans tags from pasted text, whilst allowing several specified tags + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Fathi Anshory (0x00000F5C) + * Twitter : @fscchannl + * Notes: + * - removeformatPasted must be set to FALSE since it was applied prior to pasteHandlers, or else it will be useless + * - It is most advisable to use along with the cleanpaste plugin, or else you'd end up with dirty markup + */ + +(function ($) { + 'use strict'; + + var defaultOptions = { + allowTagsFromPaste: [ + 'a', + 'abbr', + 'address', + 'b', + 'bdi', + 'bdo', + 'blockquote', + 'br', + 'cite', + 'code', + 'del', + 'dfn', + 'details', + 'em', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'hr', + 'i', + 'ins', + 'kbd', + 'mark', + 'meter', + 'pre', + 'progress', + 'q', + 'rp', + 'rt', + 'ruby', + 's', + 'samp', + 'small', + 'span', + 'strong', + 'sub', + 'summary', + 'sup', + 'time', + 'u', + 'var', + 'wbr', + 'img', + 'map', + 'area', + 'canvas', + 'figcaption', + 'figure', + 'picture', + 'audio', + 'source', + 'track', + 'video', + 'ul', + 'ol', + 'li', + 'dl', + 'dt', + 'dd', + 'table', + 'caption', + 'th', + 'tr', + 'td', + 'thead', + 'tbody', + 'tfoot', + 'col', + 'colgroup', + 'style', + 'div', + 'p', + 'form', + 'input', + 'textarea', + 'button', + 'select', + 'optgroup', + 'option', + 'label', + 'fieldset', + 'legend', + 'datalist', + 'keygen', + 'output', + 'iframe', + 'link', + 'nav', + 'header', + 'hgroup', + 'footer', + 'main', + 'section', + 'article', + 'aside', + 'dialog', + 'script', + 'noscript', + 'embed', + 'object', + 'param' + ] + }; + + $.extend(true, $.trumbowyg, { + plugins: { + allowTagsFromPaste: { + init: function (trumbowyg) { + trumbowyg.o.removeformatPasted = false; + trumbowyg.o.plugins.allowTagsFromPaste = trumbowyg.o.allowTagsFromPaste ? $(defaultOptions.allowTagsFromPaste).not(trumbowyg.o.allowTagsFromPaste).get() : []; + trumbowyg.pasteHandlers.push(function () { + setTimeout(function () { + var processNodes = trumbowyg.$ed.html(); + $.each(trumbowyg.o.plugins.allowTagsFromPaste, function (iterator, tagName) { + processNodes = processNodes.replace(new RegExp('<\\/?' + tagName + '(\\s[^>]*)?>', 'gi'), ''); + }); + trumbowyg.$ed.html(processNodes); + }, 0); + }); + } + } + } + }); +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js b/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js new file mode 100755 index 0000000..3ed0ba3 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.min.js @@ -0,0 +1 @@ +!function(e){"use strict";var t={allowTagsFromPaste:["a","abbr","address","b","bdi","bdo","blockquote","br","cite","code","del","dfn","details","em","h1","h2","h3","h4","h5","h6","hr","i","ins","kbd","mark","meter","pre","progress","q","rp","rt","ruby","s","samp","small","span","strong","sub","summary","sup","time","u","var","wbr","img","map","area","canvas","figcaption","figure","picture","audio","source","track","video","ul","ol","li","dl","dt","dd","table","caption","th","tr","td","thead","tbody","tfoot","col","colgroup","style","div","p","form","input","textarea","button","select","optgroup","option","label","fieldset","legend","datalist","keygen","output","iframe","link","nav","header","hgroup","footer","main","section","article","aside","dialog","script","noscript","embed","object","param"]};e.extend(!0,e.trumbowyg,{plugins:{allowTagsFromPaste:{init:function(a){a.o.removeformatPasted=!1,a.o.plugins.allowTagsFromPaste=a.o.allowTagsFromPaste?e(t.allowTagsFromPaste).not(a.o.allowTagsFromPaste).get():[],a.pasteHandlers.push(function(){setTimeout(function(){var t=a.$ed.html();e.each(a.o.plugins.allowTagsFromPaste,function(e,a){t=t.replace(new RegExp("<\\/?"+a+"(\\s[^>]*)?>","gi"),"")}),a.$ed.html(t)},0)})}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.js b/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.js new file mode 100755 index 0000000..e6a2800 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.js @@ -0,0 +1,147 @@ +/* =========================================================== + * trumbowyg.base64.js v1.0 + * Base64 plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Cyril Biencourt (lizardK) + */ + +(function ($) { + 'use strict'; + + var isSupported = function () { + return typeof FileReader !== 'undefined'; + }; + + var isValidImage = function (type) { + return /^data:image\/[a-z]?/i.test(type); + }; + + $.extend(true, $.trumbowyg, { + langs: { + // jshint camelcase:false + en: { + base64: 'Image as base64', + file: 'File', + 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' + }, + cs: { + base64: 'Vložit obrázek', + file: 'Soubor' + }, + zh_cn: { + base64: '图片(Base64编码)', + file: '文件' + }, + nl: { + base64: 'Afbeelding inline', + file: 'Bestand', + errFileReaderNotSupported: 'Uw browser ondersteunt deze functionaliteit niet.', + errInvalidImage: 'De gekozen afbeelding is ongeldig.' + }, + ru: { + base64: 'Изображение как код в base64', + file: 'Файл', + errFileReaderNotSupported: 'FileReader не поддерживается вашим браузером.', + errInvalidImage: 'Недопустимый файл изображения.' + }, + ja: { + base64: '画像 (Base64形式)', + file: 'ファイル', + errFileReaderNotSupported: 'あなたのブラウザーはFileReaderをサポートしていません', + errInvalidImage: '画像形式が正しくありません' + }, + tr: { + base64: 'Base64 olarak resim', + file: 'Dosya', + errFileReaderNotSupported: 'FileReader tarayıcınız tarafından desteklenmiyor.', + errInvalidImage: 'Geçersiz resim dosyası.' + }, + zh_tw: { + base64: '圖片(base64編碼)', + file: '檔案', + errFileReaderNotSupported: '你的瀏覽器不支援FileReader', + errInvalidImage: '不正確的檔案格式' + }, + pt_br: { + base64: 'Imagem em base64', + file: 'Arquivo', + errFileReaderNotSupported: 'FileReader não é suportado pelo seu navegador.', + errInvalidImage: 'Arquivo de imagem inválido.' + }, + }, + // jshint camelcase:true + + plugins: { + base64: { + shouldInit: isSupported, + init: function (trumbowyg) { + var btnDef = { + isSupported: isSupported, + fn: function () { + trumbowyg.saveRange(); + + var file; + var $modal = trumbowyg.openModalInsert( + // Title + trumbowyg.lang.base64, + + // Fields + { + file: { + type: 'file', + required: true, + attributes: { + accept: 'image/*' + } + }, + alt: { + label: 'description', + value: trumbowyg.getRangeText() + } + }, + + // Callback + function (values) { + var fReader = new FileReader(); + + fReader.onloadend = function (e) { + if (isValidImage(e.target.result)) { + trumbowyg.execCmd('insertImage', fReader.result, false, true); + $(['img[src="', fReader.result, '"]:not([alt])'].join(''), trumbowyg.$box).attr('alt', values.alt); + trumbowyg.closeModal(); + } else { + trumbowyg.addErrorOnModalField( + $('input[type=file]', $modal), + trumbowyg.lang.errInvalidImage + ); + } + }; + + fReader.readAsDataURL(file); + } + ); + + $('input[type=file]').on('change', function (e) { + file = e.target.files[0]; + }); + } + }; + + trumbowyg.addBtnDef('base64', btnDef); + } + } + } + }); +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.min.js b/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.min.js new file mode 100755 index 0000000..7dfb4cd --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/base64/trumbowyg.base64.min.js @@ -0,0 +1 @@ +!function(e){"use strict";var a=function(){return"undefined"!=typeof FileReader},r=function(e){return/^data:image\/[a-z]?/i.test(e)};e.extend(!0,e.trumbowyg,{langs:{en:{base64:"Image as base64",file:"File",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"},cs:{base64:"Vložit obrázek",file:"Soubor"},zh_cn:{base64:"图片(Base64编码)",file:"文件"},nl:{base64:"Afbeelding inline",file:"Bestand",errFileReaderNotSupported:"Uw browser ondersteunt deze functionaliteit niet.",errInvalidImage:"De gekozen afbeelding is ongeldig."},ru:{base64:"Изображение как код в base64",file:"Файл",errFileReaderNotSupported:"FileReader не поддерживается вашим браузером.",errInvalidImage:"Недопустимый файл изображения."},ja:{base64:"画像 (Base64形式)",file:"ファイル",errFileReaderNotSupported:"あなたのブラウザーはFileReaderをサポートしていません",errInvalidImage:"画像形式が正しくありません"},tr:{base64:"Base64 olarak resim",file:"Dosya",errFileReaderNotSupported:"FileReader tarayıcınız tarafından desteklenmiyor.",errInvalidImage:"Geçersiz resim dosyası."},zh_tw:{base64:"圖片(base64編碼)",file:"檔案",errFileReaderNotSupported:"你的瀏覽器不支援FileReader",errInvalidImage:"不正確的檔案格式"},pt_br:{base64:"Imagem em base64",file:"Arquivo",errFileReaderNotSupported:"FileReader não é suportado pelo seu navegador.",errInvalidImage:"Arquivo de imagem inválido."}},plugins:{base64:{shouldInit:a,init:function(i){var t={isSupported:a,fn:function(){i.saveRange();var a,t=i.openModalInsert(i.lang.base64,{file:{type:"file",required:!0,attributes:{accept:"image/*"}},alt:{label:"description",value:i.getRangeText()}},function(l){var n=new FileReader;n.onloadend=function(a){r(a.target.result)?(i.execCmd("insertImage",n.result,!1,!0),e(['img[src="',n.result,'"]:not([alt])'].join(""),i.$box).attr("alt",l.alt),i.closeModal()):i.addErrorOnModalField(e("input[type=file]",t),i.lang.errInvalidImage)},n.readAsDataURL(a)});e("input[type=file]").on("change",function(e){a=e.target.files[0]})}};i.addBtnDef("base64",t)}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js b/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js new file mode 100755 index 0000000..552edfd --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js @@ -0,0 +1,112 @@ +/* =========================================================== + * trumbowyg.cleanpaste.js v1.0 + * Font Clean paste plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Authors : Eric Radin + * Todd Graham (slackwalker) + * + * This plugin will perform a "cleaning" on any paste, in particular + * it will clean pasted content of microsoft word document tags and classes. + */ + +(function ($) { + 'use strict'; + + function checkValidTags(snippet) { + var theString = snippet; + + // Replace uppercase element names with lowercase + theString = theString.replace(/<[^> ]*/g, function (match) { + return match.toLowerCase(); + }); + + // Replace uppercase attribute names with lowercase + theString = theString.replace(/<[^>]*>/g, function (match) { + match = match.replace(/ [^=]+=/g, function (match2) { + return match2.toLowerCase(); + }); + return match; + }); + + // Put quotes around unquoted attributes + theString = theString.replace(/<[^>]*>/g, function (match) { + match = match.replace(/( [^=]+=)([^"][^ >]*)/g, '$1\"$2\"'); + return match; + }); + + return theString; + } + + function cleanIt(html) { + // first make sure all tags and attributes are made valid + html = checkValidTags(html); + + // Replace opening bold tags with strong + html = html.replace(/)/g, ')/g, ')/g, ')/g, '\s*/g, ''); + + // strip out   -cgCraft + html = html.replace(/ /gi, ' '); + // strip out extra spaces -cgCraft + html = html.replace(/ <\//gi, ']*>/g, function (match) { + match = match.replace(/ ([^=]+)="[^"]*"/g, function (match2, attributeName) { + if (['alt', 'href', 'src', 'title'].indexOf(attributeName) !== -1) { + return match2; + } + return ''; + }); + return match; + }); + + // Final cleanout for MS Word crud + html = html.replace(/<\?xml[^>]*>/g, ''); + html = html.replace(/<[^ >]+:[^>]*>/g, ''); + html = html.replace(/<\/[^ >]+:[^>]*>/g, ''); + + // remove unwanted tags + html = html.replace(/<(div|span|style|meta|link).*?>/gi, ''); + + return html; + } + + // clean editor + // this will clean the inserted contents + // it does a compare, before and after paste to determine the + // pasted contents + $.extend(true, $.trumbowyg, { + plugins: { + cleanPaste: { + init: function (trumbowyg) { + trumbowyg.pasteHandlers.push(function () { + setTimeout(function () { + try { + trumbowyg.$ed.html(cleanIt(trumbowyg.$ed.html())); + } catch (c) { + } + }, 0); + }); + } + } + } + }); +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js b/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js new file mode 100755 index 0000000..a86c9f5 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.min.js @@ -0,0 +1 @@ +!function(e){"use strict";function r(e){var r=e;return r=r.replace(/<[^> ]*/g,function(e){return e.toLowerCase()}),r=r.replace(/<[^>]*>/g,function(e){return e=e.replace(/ [^=]+=/g,function(e){return e.toLowerCase()})}),r=r.replace(/<[^>]*>/g,function(e){return e=e.replace(/( [^=]+=)([^"][^ >]*)/g,'$1"$2"')})}function n(e){for(e=r(e),e=e.replace(/)/g,")/g,")/g,")/g,"\s*/g,""),e=e.replace(/ /gi," "),e=e.replace(/ <\//gi,"]*>/g,function(e){return e=e.replace(/ ([^=]+)="[^"]*"/g,function(e,r){return["alt","href","src","title"].indexOf(r)!==-1?e:""})}),e=e.replace(/<\?xml[^>]*>/g,""),e=e.replace(/<[^ >]+:[^>]*>/g,""),e=e.replace(/<\/[^ >]+:[^>]*>/g,""),e=e.replace(/<(div|span|style|meta|link).*?>/gi,"")}e.extend(!0,e.trumbowyg,{plugins:{cleanPaste:{init:function(e){e.pasteHandlers.push(function(){setTimeout(function(){try{e.$ed.html(n(e.$ed.html()))}catch(r){}},0)})}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.js b/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.js new file mode 100755 index 0000000..26bdadf --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.js @@ -0,0 +1,203 @@ +/* =========================================================== + * trumbowyg.colors.js v1.2 + * Colors picker plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +(function ($) { + 'use strict'; + + $.extend(true, $.trumbowyg, { + langs: { + // jshint camelcase:false + cs: { + foreColor: 'Barva textu', + backColor: 'Barva pozadí' + }, + en: { + 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' + }, + sk: { + foreColor: 'Farba textu', + backColor: 'Farba pozadia' + }, + zh_cn: { + foreColor: '文字颜色', + backColor: '背景颜色' + }, + zh_tw: { + foreColor: '文字顏色', + backColor: '背景顏色' + }, + ru: { + foreColor: 'Цвет текста', + backColor: 'Цвет выделения текста' + }, + ja: { + foreColor: '文字色', + backColor: '背景色' + }, + tr: { + foreColor: 'Yazı rengi', + backColor: 'Arkaplan rengi' + }, + pt_br: { + foreColor: 'Cor de fonte', + backColor: 'Cor de fundo' + } + } + }); + + // jshint camelcase:true + + + function hex(x) { + return ('0' + parseInt(x).toString(16)).slice(-2); + } + + function colorToHex(rgb) { + if (rgb.search('rgb') === -1) { + return rgb.replace('#', ''); + } else if (rgb === 'rgba(0, 0, 0, 0)') { + return 'transparent'; + } else { + rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/); + return hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]); + } + } + + function colorTagHandler(element, trumbowyg) { + var tags = []; + + if (!element.style) { + return tags; + } + + // background color + if (element.style.backgroundColor !== '') { + var backColor = colorToHex(element.style.backgroundColor); + if (trumbowyg.o.plugins.colors.colorList.indexOf(backColor) >= 0) { + tags.push('backColor' + backColor); + } else { + tags.push('backColorFree'); + } + } + + // text color + var foreColor; + if (element.style.color !== '') { + foreColor = colorToHex(element.style.color); + } else if (element.hasAttribute('color')) { + foreColor = colorToHex(element.getAttribute('color')); + } + if (foreColor) { + if (trumbowyg.o.plugins.colors.colorList.indexOf(foreColor) >= 0) { + tags.push('foreColor' + foreColor); + } else { + tags.push('foreColorFree'); + } + } + + return tags; + } + + var defaultOptions = { + colorList: ['ffffff', '000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646', 'ffff00', 'f2f2f2', '7f7f7f', 'ddd9c3', 'c6d9f0', 'dbe5f1', 'f2dcdb', 'ebf1dd', 'e5e0ec', 'dbeef3', 'fdeada', 'fff2ca', 'd8d8d8', '595959', 'c4bd97', '8db3e2', 'b8cce4', 'e5b9b7', 'd7e3bc', 'ccc1d9', 'b7dde8', 'fbd5b5', 'ffe694', 'bfbfbf', '3f3f3f', '938953', '548dd4', '95b3d7', 'd99694', 'c3d69b', 'b2a2c7', 'b7dde8', 'fac08f', 'f2c314', 'a5a5a5', '262626', '494429', '17365d', '366092', '953734', '76923c', '5f497a', '92cddc', 'e36c09', 'c09100', '7f7f7f', '0c0c0c', '1d1b10', '0f243e', '244061', '632423', '4f6128', '3f3151', '31859b', '974806', '7f6000'] + }; + + // Add all colors in two dropdowns + $.extend(true, $.trumbowyg, { + plugins: { + color: { + init: function (trumbowyg) { + trumbowyg.o.plugins.colors = trumbowyg.o.plugins.colors || defaultOptions; + var foreColorBtnDef = { + dropdown: buildDropdown('foreColor', trumbowyg) + }, + backColorBtnDef = { + dropdown: buildDropdown('backColor', trumbowyg) + }; + + trumbowyg.addBtnDef('foreColor', foreColorBtnDef); + trumbowyg.addBtnDef('backColor', backColorBtnDef); + }, + tagHandler: colorTagHandler + } + } + }); + + function buildDropdown(fn, trumbowyg) { + var dropdown = []; + + $.each(trumbowyg.o.plugins.colors.colorList, function (i, color) { + var btn = fn + color, + btnDef = { + fn: fn, + forceCss: true, + param: '#' + color, + style: 'background-color: #' + color + ';' + }; + trumbowyg.addBtnDef(btn, btnDef); + dropdown.push(btn); + }); + + var removeColorButtonName = fn + 'Remove', + removeColorBtnDef = { + fn: 'removeFormat', + param: fn, + style: 'background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);' + }; + trumbowyg.addBtnDef(removeColorButtonName, removeColorBtnDef); + dropdown.push(removeColorButtonName); + + // add free color btn + var freeColorButtonName = fn + 'Free', + freeColorBtnDef = { + fn: function () { + trumbowyg.openModalInsert(trumbowyg.lang[fn], + { + color: { + label: fn, + forceCss: true, + type: 'color', + value: '#FFFFFF' + } + }, + // callback + function (values) { + trumbowyg.execCmd(fn, values.color); + return true; + } + ); + }, + text: '#', + // style adjust for displaying the text + style: 'text-indent: 0;line-height: 20px;padding: 0 5px;' + }; + trumbowyg.addBtnDef(freeColorButtonName, freeColorBtnDef); + dropdown.push(freeColorButtonName); + + return dropdown; + } +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.min.js b/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.min.js new file mode 100755 index 0000000..c7524d9 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/colors/trumbowyg.colors.min.js @@ -0,0 +1 @@ +!function(o){"use strict";function r(o){return("0"+parseInt(o).toString(16)).slice(-2)}function e(o){return o.search("rgb")===-1?o.replace("#",""):"rgba(0, 0, 0, 0)"===o?"transparent":(o=o.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/),r(o[1])+r(o[2])+r(o[3]))}function f(o,r){var f=[];if(!o.style)return f;if(""!==o.style.backgroundColor){var a=e(o.style.backgroundColor);r.o.plugins.colors.colorList.indexOf(a)>=0?f.push("backColor"+a):f.push("backColorFree")}var c;return""!==o.style.color?c=e(o.style.color):o.hasAttribute("color")&&(c=e(o.getAttribute("color"))),c&&(r.o.plugins.colors.colorList.indexOf(c)>=0?f.push("foreColor"+c):f.push("foreColorFree")),f}function a(r,e){var f=[];o.each(e.o.plugins.colors.colorList,function(o,a){var c=r+a,l={fn:r,forceCss:!0,param:"#"+a,style:"background-color: #"+a+";"};e.addBtnDef(c,l),f.push(c)});var a=r+"Remove",c={fn:"removeFormat",param:r,style:"background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);"};e.addBtnDef(a,c),f.push(a);var l=r+"Free",d={fn:function(){e.openModalInsert(e.lang[r],{color:{label:r,forceCss:!0,type:"color",value:"#FFFFFF"}},function(o){return e.execCmd(r,o.color),!0})},text:"#",style:"text-indent: 0;line-height: 20px;padding: 0 5px;"};return e.addBtnDef(l,d),f.push(l),f}o.extend(!0,o.trumbowyg,{langs:{cs:{foreColor:"Barva textu",backColor:"Barva pozadí"},en:{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"},sk:{foreColor:"Farba textu",backColor:"Farba pozadia"},zh_cn:{foreColor:"文字颜色",backColor:"背景颜色"},zh_tw:{foreColor:"文字顏色",backColor:"背景顏色"},ru:{foreColor:"Цвет текста",backColor:"Цвет выделения текста"},ja:{foreColor:"文字色",backColor:"背景色"},tr:{foreColor:"Yazı rengi",backColor:"Arkaplan rengi"},pt_br:{foreColor:"Cor de fonte",backColor:"Cor de fundo"}}});var c={colorList:["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","b7dde8","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","7f7f7f","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"]};o.extend(!0,o.trumbowyg,{plugins:{color:{init:function(o){o.o.plugins.colors=o.o.plugins.colors||c;var r={dropdown:a("foreColor",o)},e={dropdown:a("backColor",o)};o.addBtnDef("foreColor",r),o.addBtnDef("backColor",e)},tagHandler:f}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss b/src/assets/scripts/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss new file mode 100755 index 0000000..a2196f1 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/colors/ui/sass/trumbowyg.colors.scss @@ -0,0 +1,49 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Default stylesheet for Trumbowyg editor plugin + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-dropdown-foreColor, +.trumbowyg-dropdown-backColor { + width: 276px; + padding: 7px 5px; + + svg { + display: none !important; + } + + button { + display: block; + position: relative; + float: left; + text-indent: -9999px; + height: 20px; + width: 20px; + border: 1px solid #333; + padding: 0; + margin: 2px; + + &:hover, + &:focus { + &::after { + content: " "; + display: block; + position: absolute; + top: -5px; + left: -5px; + height: 27px; + width: 27px; + background: inherit; + border: 1px solid #FFF; + box-shadow: #000 0 0 2px; + z-index: 10; + } + } + } +} \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.css b/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.css new file mode 100755 index 0000000..536d546 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.css @@ -0,0 +1,43 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Trumbowyg plugin stylesheet + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-dropdown-foreColor, +.trumbowyg-dropdown-backColor { + width: 276px; + padding: 7px 5px; } + .trumbowyg-dropdown-foreColor svg, + .trumbowyg-dropdown-backColor svg { + display: none !important; } + .trumbowyg-dropdown-foreColor button, + .trumbowyg-dropdown-backColor button { + display: block; + position: relative; + float: left; + text-indent: -9999px; + height: 20px; + width: 20px; + border: 1px solid #333; + padding: 0; + margin: 2px; } + .trumbowyg-dropdown-foreColor button:hover::after, .trumbowyg-dropdown-foreColor button:focus::after, + .trumbowyg-dropdown-backColor button:hover::after, + .trumbowyg-dropdown-backColor button:focus::after { + content: " "; + display: block; + position: absolute; + top: -5px; + left: -5px; + height: 27px; + width: 27px; + background: inherit; + border: 1px solid #FFF; + box-shadow: #000 0 0 2px; + z-index: 10; } diff --git a/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css b/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css new file mode 100755 index 0000000..e569e7b --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css @@ -0,0 +1,2 @@ +/** Trumbowyg v2.14.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */ +.trumbowyg-dropdown-backColor,.trumbowyg-dropdown-foreColor{width:276px;padding:7px 5px}.trumbowyg-dropdown-backColor svg,.trumbowyg-dropdown-foreColor svg{display:none!important}.trumbowyg-dropdown-backColor button,.trumbowyg-dropdown-foreColor button{display:block;position:relative;float:left;text-indent:-9999px;height:20px;width:20px;border:1px solid #333;padding:0;margin:2px}.trumbowyg-dropdown-backColor button:focus::after,.trumbowyg-dropdown-backColor button:hover::after,.trumbowyg-dropdown-foreColor button:focus::after,.trumbowyg-dropdown-foreColor button:hover::after{content:" ";display:block;position:absolute;top:-5px;left:-5px;height:27px;width:27px;background:inherit;border:1px solid #FFF;box-shadow:#000 0 0 2px;z-index:10} \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.js b/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.js new file mode 100755 index 0000000..19c46bd --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.js @@ -0,0 +1,1350 @@ +/* =========================================================== + * trumbowyg.emoji.js v0.1 + * Emoji picker plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Nicolas Pion + * Twitter : @nicolas_pion + */ + +(function ($) { + 'use strict'; + + var defaultOptions = { + emojiList: [ + '⁉', + '™', + 'ℹ', + '↔', + '↕', + '↖', + '↗', + '↘', + '↙', + '⌨', + '☀', + '☁', + '☂', + '☃', + '☄', + '☑', + '☔', + '☕', + '☘', + '☠', + '☢', + '☣', + '☦', + '☸', + '☹', + '♀', + '♂', + '♈', + '♉', + '♐', + '♑', + '♒', + '♓', + '♠', + '♣', + '♥', + '♦', + '♨', + '⚒', + '⚓', + '⚔', + '⚕', + '⚖', + '⚗', + '⚙', + '✂', + '✅', + '✈', + '✉', + '✒', + '✔', + '✖', + '✡', + '✨', + '✳', + '✴', + '❄', + '❇', + '❓', + '❔', + '❕', + '❗', + '❣', + '❤', + '➕', + '➖', + '➗', + '⤴', + '⤵', + '〰', + '㊗', + '㊙', + '🧡', + '💛', + '💚', + '💙', + '💜', + '🖤', + '💔', + '💕', + '💞', + '💓', + '💗', + '💖', + '💘', + '💝', + '💟', + '☮', + '✝', + '☪', + '🕉', + '🔯', + '🕎', + '☯', + '🛐', + '⛎', + '♊', + '♋', + '♌', + '♍', + '♎', + '♏', + '🆔', + '⚛', + '♾', + '🉑', + '📴', + '📳', + '🈶', + '🈚', + '🈸', + '🈺', + '🈷', + '🆚', + '💮', + '🉐', + '🈴', + '🈵', + '🈹', + '🈲', + '🅰', + '🅱', + '🆎', + '🆑', + '🅾', + '🆘', + '❌', + '⭕', + '🛑', + '⛔', + '📛', + '🚫', + '💯', + '💢', + '🚷', + '🚯', + '🚳', + '🚱', + '🔞', + '📵', + '🚭', + '‼', + '🔅', + '🔆', + '〽', + '⚠', + '🚸', + '🔱', + '⚜', + '🔰', + '♻', + '🈯', + '💹', + '❎', + '🌐', + '💠', + 'Ⓜ', + '🌀', + '💤', + '🏧', + '🚾', + '♿', + '🅿', + '🈳', + '🈂', + '🛂', + '🛃', + '🛄', + '🛅', + '🚹', + '🚺', + '🚼', + '🚻', + '🚮', + '🎦', + '📶', + '🈁', + '🔣', + '🔤', + '🔡', + '🔠', + '🆖', + '🆗', + '🆙', + '🆒', + '🆕', + '🆓', + '0', + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + '🔟', + '🔢', + '#', + '*', + '⏏', + '▶', + '⏸', + '⏯', + '⏹', + '⏺', + '⏭', + '⏮', + '⏩', + '⏪', + '⏫', + '⏬', + '◀', + '🔼', + '🔽', + '➡', + '⬅', + '⬆', + '⬇', + '↪', + '↩', + '🔀', + '🔁', + '🔂', + '🔄', + '🔃', + '🎵', + '🎶', + '💲', + '💱', + '©', + '®', + '➰', + '➿', + '🔚', + '🔙', + '🔛', + '🔝', + '🔜', + '🔘', + '⚪', + '⚫', + '🔴', + '🔵', + '🔺', + '🔻', + '🔸', + '🔹', + '🔶', + '🔷', + '🔳', + '🔲', + '▪', + '▫', + '◾', + '◽', + '◼', + '◻', + '⬛', + '⬜', + '🔈', + '🔇', + '🔉', + '🔊', + '🔔', + '🔕', + '📣', + '📢', + '🗨', + '👁', + '💬', + '💭', + '🗯', + '🃏', + '🎴', + '🀄', + '🕐', + '🕑', + '🕒', + '🕓', + '🕔', + '🕕', + '🕖', + '🕗', + '🕘', + '🕙', + '🕚', + '🕛', + '🕜', + '🕝', + '🕞', + '🕟', + '🕠', + '🕡', + '🕢', + '🕣', + '🕤', + '🕥', + '🕦', + '🕧', + '⚽', + '🏀', + '🏈', + '⚾', + '🥎', + '🎾', + '🏐', + '🏉', + '🎱', + '🏓', + '🏸', + '🥅', + '🏒', + '🏑', + '🏏', + '🥍', + '⛳', + '🥏', + '🏹', + '🎣', + '🥊', + '🥋', + '🎽', + '🛹', + '⛸', + '🥌', + '🛷', + '🎿', + '⛷', + '🏂', + '🏋', + '🤼', + '🤸', + '⛹', + '🤺', + '🤾', + '🏌', + '🏇', + '🧘', + '🏄', + '🏊', + '🤽', + '🚣', + '🧗', + '🚵', + '🚴', + '🏆', + '🥇', + '🥈', + '🥉', + '🏅', + '🎖', + '🏵', + '🎗', + '🎫', + '🎟', + '🎪', + '🤹', + '🎭', + '🎨', + '🎬', + '🎤', + '🎧', + '🎼', + '🎹', + '🥁', + '🎷', + '🎺', + '🎸', + '🎻', + '🎲', + '🎯', + '🎳', + '🎮', + '🎰', + '⌚', + '📱', + '📲', + '💻', + '🖥', + '🖨', + '🖱', + '🖲', + '🕹', + '♟', + '🧩', + '🗜', + '💽', + '💾', + '💿', + '📀', + '📼', + '📷', + '📸', + '📹', + '🎥', + '📽', + '🎞', + '📞', + '☎', + '📟', + '📠', + '📺', + '📻', + '🎙', + '🎚', + '🎛', + '⏱', + '⏲', + '⏰', + '🕰', + '⌛', + '⏳', + '📡', + '🧭', + '🔋', + '🔌', + '🧲', + '💡', + '🔦', + '🕯', + '🧯', + '🗑', + '🛢', + '💸', + '💵', + '💴', + '💶', + '💷', + '💰', + '💳', + '💎', + '🧿', + '🧱', + '🧰', + '🔧', + '🔨', + '🛠', + '⛏', + '🔩', + '⛓', + '🔫', + '💣', + '🔪', + '🗡', + '🛡', + '🚬', + '⚰', + '⚱', + '🏺', + '🔮', + '📿', + '💈', + '🧪', + '🧫', + '🧬', + '🧮', + '🔭', + '🔬', + '🕳', + '💊', + '💉', + '🌡', + '🚽', + '🚰', + '🚿', + '🛁', + '🛀', + '🧹', + '🧺', + '🧻', + '🧼', + '🧽', + '🧴', + '🧵', + '🧶', + '🛎', + '🔑', + '🗝', + '🚪', + '🛋', + '🛏', + '🛌', + '🧸', + '🖼', + '🛍', + '🛒', + '🎁', + '🎈', + '🎏', + '🎀', + '🎊', + '🎉', + '🎎', + '🏮', + '🎐', + '🧧', + '📩', + '📨', + '📧', + '💌', + '📥', + '📤', + '📦', + '🏷', + '📪', + '📫', + '📬', + '📭', + '📮', + '📯', + '📜', + '📃', + '📄', + '🧾', + '📑', + '📊', + '📈', + '📉', + '🗒', + '🗓', + '📆', + '📅', + '📇', + '🗃', + '🗳', + '🗄', + '📋', + '📁', + '📂', + '🗂', + '🗞', + '📰', + '📓', + '📔', + '📒', + '📕', + '📗', + '📘', + '📙', + '📚', + '📖', + '🔖', + '🔗', + '📎', + '🖇', + '📐', + '📏', + '🧷', + '📌', + '📍', + '🖊', + '🖋', + '🖌', + '🖍', + '📝', + '✏', + '🔍', + '🔎', + '🔏', + '🔐', + '🐶', + '🐱', + '🐭', + '🐹', + '🐰', + '🦊', + '🦝', + '🐻', + '🐼', + '🦘', + '🦡', + '🐨', + '🐯', + '🦁', + '🐮', + '🐷', + '🐽', + '🐸', + '🐵', + '🙈', + '🙉', + '🙊', + '🐒', + '🐔', + '🐧', + '🐦', + '🐤', + '🐣', + '🐥', + '🦆', + '🦢', + '🦅', + '🦉', + '🦜', + '🦚', + '🦇', + '🐺', + '🐗', + '🐴', + '🦄', + '🐝', + '🐛', + '🦋', + '🐌', + '🐚', + '🐞', + '🐜', + '🦗', + '🕷', + '🕸', + '🦂', + '🦟', + '🦠', + '🐢', + '🐍', + '🦎', + '🦖', + '🦕', + '🐙', + '🦑', + '🦐', + '🦀', + '🦞', + '🐡', + '🐠', + '🐟', + '🐬', + '🐳', + '🐋', + '🦈', + '🐊', + '🐅', + '🐆', + '🦓', + '🦍', + '🐘', + '🦏', + '🦛', + '🐪', + '🐫', + '🦒', + '🦙', + '🐃', + '🐂', + '🐄', + '🐎', + '🐖', + '🐏', + '🐑', + '🐐', + '🦌', + '🐕', + '🐩', + '🐈', + '🐓', + '🦃', + '🕊', + '🐇', + '🐁', + '🐀', + '🐿', + '🦔', + '🐾', + '🐉', + '🐲', + '🌵', + '🎄', + '🌲', + '🌳', + '🌴', + '🌱', + '🌿', + '🍀', + '🎍', + '🎋', + '🍃', + '🍂', + '🍁', + '🍄', + '🌾', + '💐', + '🌷', + '🌹', + '🥀', + '🌺', + '🌸', + '🌼', + '🌻', + '🌞', + '🌝', + '🌛', + '🌜', + '🌚', + '🌕', + '🌖', + '🌗', + '🌘', + '🌑', + '🌒', + '🌓', + '🌔', + '🌙', + '🌎', + '🌍', + '🌏', + '💫', + '⭐', + '🌟', + '⚡', + '💥', + '🔥', + '🌪', + '🌈', + '🌤', + '⛅', + '🌥', + '🌦', + '🌧', + '⛈', + '🌩', + '🌨', + '⛄', + '🌬', + '💨', + '💧', + '💦', + '🌊', + '🌫', + '🍏', + '🍎', + '🍐', + '🍊', + '🍋', + '🍌', + '🍉', + '🍇', + '🍓', + '🍈', + '🍒', + '🍑', + '🥭', + '🍍', + '🥥', + '🥝', + '🍅', + '🍆', + '🥑', + '🥦', + '🥬', + '🥒', + '🌶', + '🌽', + '🥕', + '🥔', + '🍠', + '🥐', + '🍞', + '🥖', + '🥨', + '🥯', + '🧀', + '🥚', + '🍳', + '🥞', + '🥓', + '🥩', + '🍗', + '🍖', + '🌭', + '🍔', + '🍟', + '🍕', + '🥪', + '🥙', + '🌮', + '🌯', + '🥗', + '🥘', + '🥫', + '🍝', + '🍜', + '🍲', + '🍛', + '🍣', + '🍱', + '🍤', + '🍙', + '🍚', + '🍘', + '🍥', + '🥠', + '🍢', + '🍡', + '🍧', + '🍨', + '🍦', + '🥧', + '🍰', + '🎂', + '🥮', + '🧁', + '🍮', + '🍭', + '🍬', + '🍫', + '🍿', + '🧂', + '🍩', + '🥟', + '🍪', + '🌰', + '🥜', + '🍯', + '🥛', + '🍼', + '🍵', + '🥤', + '🍶', + '🍺', + '🍻', + '🥂', + '🍷', + '🥃', + '🍸', + '🍹', + '🍾', + '🥄', + '🍴', + '🍽', + '🥣', + '🥡', + '🥢', + '😀', + '😃', + '😄', + '😁', + '😆', + '😅', + '😂', + '🤣', + '☺', + '😊', + '😇', + '🙂', + '🙃', + '😉', + '😌', + '😍', + '😘', + '🥰', + '😗', + '😙', + '😚', + '😋', + '😛', + '😝', + '😜', + '🤪', + '🤨', + '🧐', + '🤓', + '😎', + '🤩', + '🥳', + '😏', + '😒', + '😞', + '😔', + '😟', + '😕', + '🙁', + '😣', + '😖', + '😫', + '😩', + '😢', + '😭', + '😤', + '😠', + '😡', + '🤬', + '🤯', + '😳', + '😱', + '😨', + '😰', + '🥵', + '🥶', + '🥺', + '😥', + '😓', + '🤗', + '🤔', + '🤭', + '🤫', + '🤥', + '😶', + '😐', + '😑', + '😬', + '🙄', + '😯', + '😦', + '😧', + '😮', + '😲', + '😴', + '🤤', + '😪', + '😵', + '🤐', + '🥴', + '🤢', + '🤮', + '🤧', + '😷', + '🤒', + '🤕', + '🤑', + '🤠', + '😈', + '👿', + '👹', + '👺', + '🤡', + '💩', + '👻', + '💀', + '👽', + '👾', + '🤖', + '🎃', + '😺', + '😸', + '😹', + '😻', + '😼', + '😽', + '🙀', + '😿', + '😾', + '🤲', + '👐', + '🙌', + '👏', + '🤝', + '👍', + '👎', + '👊', + '✊', + '🤛', + '🤜', + '🤞', + '✌', + '🤟', + '🤘', + '👌', + '👈', + '👉', + '👆', + '👇', + '☝', + '✋', + '🤚', + '🖐', + '🖖', + '👋', + '🤙', + '💪', + '🦵', + '🦶', + '🖕', + '✍', + '🙏', + '💍', + '💄', + '💋', + '👄', + '👅', + '👂', + '👃', + '👣', + '👀', + '🧠', + '🦴', + '🦷', + '🗣', + '👤', + '👥', + '👶', + '👧', + '🧒', + '👦', + '👩', + '🧑', + '👨', + '👱', + '🧔', + '👵', + '🧓', + '👴', + '👲', + '👳', + '🧕', + '👮', + '👷', + '💂', + '🕵', + '👰', + '🤵', + '👸', + '🤴', + '🤶', + '🎅', + '🦸', + '🦹', + '🧙', + '🧝', + '🧛', + '🧟', + '🧞', + '🧜', + '🧚', + '👼', + '🤰', + '🤱', + '🙇', + '💁', + '🙅', + '🙆', + '🙋', + '🤦', + '🤷', + '🙎', + '🙍', + '💇', + '💆', + '🧖', + '💅', + '🤳', + '💃', + '🕺', + '👯', + '🕴', + '🚶', + '🏃', + '👫', + '👭', + '👬', + '💑', + '💏', + '👪', + '🧥', + '👚', + '👕', + '👖', + '👔', + '👗', + '👙', + '👘', + '🥼', + '👠', + '👡', + '👢', + '👞', + '👟', + '🥾', + '🥿', + '🧦', + '🧤', + '🧣', + '🎩', + '🧢', + '👒', + '🎓', + '⛑', + '👑', + '👝', + '👛', + '👜', + '💼', + '🎒', + '👓', + '🕶', + '🥽', + '🌂', + '🦰', + '🦱', + '🦳', + '🦲', + '🇿', + '🇾', + '🇽', + '🇼', + '🇻', + '🇺', + '🇹', + '🇸', + '🇷', + '🇶', + '🇵', + '🇴', + '🇳', + '🇲', + '🇱', + '🇰', + '🇯', + '🇮', + '🇭', + '🇬', + '🇫', + '🇪', + '🇩', + '🇨', + '🇧', + '🇦', + '🚗', + '🚕', + '🚙', + '🚌', + '🚎', + '🏎', + '🚓', + '🚑', + '🚒', + '🚐', + '🚚', + '🚛', + '🚜', + '🛴', + '🚲', + '🛵', + '🏍', + '🚨', + '🚔', + '🚍', + '🚘', + '🚖', + '🚡', + '🚠', + '🚟', + '🚃', + '🚋', + '🚞', + '🚝', + '🚄', + '🚅', + '🚈', + '🚂', + '🚆', + '🚇', + '🚊', + '🚉', + '🛫', + '🛬', + '🛩', + '💺', + '🧳', + '🛰', + '🚀', + '🛸', + '🚁', + '🛶', + '⛵', + '🚤', + '🛥', + '🛳', + '⛴', + '🚢', + '⛽', + '🚧', + '🚦', + '🚥', + '🚏', + '🗺', + '🗿', + '🗽', + '🗼', + '🏰', + '🏯', + '🏟', + '🎡', + '🎢', + '🎠', + '⛲', + '⛱', + '🏖', + '🏝', + '🏜', + '🌋', + '⛰', + '🏔', + '🗻', + '🏕', + '⛺', + '🏠', + '🏡', + '🏘', + '🏚', + '🏗', + '🏭', + '🏢', + '🏬', + '🏣', + '🏤', + '🏥', + '🏦', + '🏨', + '🏪', + '🏫', + '🏩', + '💒', + '🏛', + '⛪', + '🕌', + '🕍', + '🕋', + '⛩', + '🛤', + '🛣', + '🗾', + '🎑', + '🏞', + '🌅', + '🌄', + '🌠', + '🎇', + '🎆', + '🧨', + '🌇', + '🌆', + '🏙', + '🌃', + '🌌', + '🌉', + '🔒', + '🔓', + '🌁', + '🏳', + '🏴', + '🏁', + '🚩', + '🎌', + '🏻', + '🏼', + '🏽', + '🏾', + '🏿' + ] + }; + + // Add all emoji in a dropdown + $.extend(true, $.trumbowyg, { + langs: { + // jshint camelcase:false + en: { + emoji: 'Add an emoji' + }, + da: { + emoji: 'Tilføj et humørikon' + }, + de: { + emoji: 'Emoticon einfügen' + }, + fr: { + emoji: 'Ajouter un emoji' + }, + zh_cn: { + emoji: '添加表情' + }, + ru: { + emoji: 'Вставить emoji' + }, + ja: { + emoji: '絵文字の挿入' + }, + tr: { + emoji: 'Emoji ekle' + } + }, + // jshint camelcase:true + plugins: { + emoji: { + init: function (trumbowyg) { + trumbowyg.o.plugins.emoji = trumbowyg.o.plugins.emoji || defaultOptions; + var emojiBtnDef = { + dropdown: buildDropdown(trumbowyg) + }; + trumbowyg.addBtnDef('emoji', emojiBtnDef); + } + } + } + }); + + function buildDropdown(trumbowyg) { + var dropdown = []; + + $.each(trumbowyg.o.plugins.emoji.emojiList, function (i, emoji) { + if ($.isArray(emoji)) { // Custom emoji behaviour + var emojiCode = emoji[0], + emojiUrl = emoji[1], + emojiHtml = '' + emojiCode + '', + customEmojiBtnName = 'emoji-' + emojiCode.replace(/:/g, ''), + customEmojiBtnDef = { + hasIcon: false, + text: emojiHtml, + fn: function () { + trumbowyg.execCmd('insertImage', emojiUrl, false, true); + return true; + } + }; + + trumbowyg.addBtnDef(customEmojiBtnName, customEmojiBtnDef); + dropdown.push(customEmojiBtnName); + } else { // Default behaviour + var btn = emoji.replace(/:/g, ''), + defaultEmojiBtnName = 'emoji-' + btn, + defaultEmojiBtnDef = { + text: emoji, + fn: function () { + var encodedEmoji = String.fromCodePoint(emoji.replace("&#", "0")); + trumbowyg.execCmd('insertText', encodedEmoji); + return true; + } + }; + + trumbowyg.addBtnDef(defaultEmojiBtnName, defaultEmojiBtnDef); + dropdown.push(defaultEmojiBtnName); + } + }); + + return dropdown; + } +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js b/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js new file mode 100755 index 0000000..37800c8 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/emoji/trumbowyg.emoji.min.js @@ -0,0 +1 @@ +!function(x){"use strict";function F(F){var E=[];return x.each(F.o.plugins.emoji.emojiList,function(B,A){if(x.isArray(A)){var D=A[0],C=A[1],e=''+D+'',i="emoji-"+D.replace(/:/g,""),n={hasIcon:!1,text:e,fn:function(){return F.execCmd("insertImage",C,!1,!0),!0}};F.addBtnDef(i,n),E.push(i)}else{var o=A.replace(/:/g,""),t="emoji-"+o,r={text:A,fn:function(){var x=String.fromCodePoint(A.replace("&#","0"));return F.execCmd("insertText",x),!0}};F.addBtnDef(t,r),E.push(t)}}),E}var E={emojiList:["⁉","™","ℹ","↔","↕","↖","↗","↘","↙","⌨","☀","☁","☂","☃","☄","☑","☔","☕","☘","☠","☢","☣","☦","☸","☹","♀","♂","♈","♉","♐","♑","♒","♓","♠","♣","♥","♦","♨","⚒","⚓","⚔","⚕","⚖","⚗","⚙","✂","✅","✈","✉","✒","✔","✖","✡","✨","✳","✴","❄","❇","❓","❔","❕","❗","❣","❤","➕","➖","➗","⤴","⤵","〰","㊗","㊙","🧡","💛","💚","💙","💜","🖤","💔","💕","💞","💓","💗","💖","💘","💝","💟","☮","✝","☪","🕉","🔯","🕎","☯","🛐","⛎","♊","♋","♌","♍","♎","♏","🆔","⚛","♾","🉑","📴","📳","🈶","🈚","🈸","🈺","🈷","🆚","💮","🉐","🈴","🈵","🈹","🈲","🅰","🅱","🆎","🆑","🅾","🆘","❌","⭕","🛑","⛔","📛","🚫","💯","💢","🚷","🚯","🚳","🚱","🔞","📵","🚭","‼","🔅","🔆","〽","⚠","🚸","🔱","⚜","🔰","♻","🈯","💹","❎","🌐","💠","Ⓜ","🌀","💤","🏧","🚾","♿","🅿","🈳","🈂","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0","1","2","3","4","5","6","7","8","9","🔟","🔢","#","*","⏏","▶","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀","🔼","🔽","➡","⬅","⬆","⬇","↪","↩","🔀","🔁","🔂","🔄","🔃","🎵","🎶","💲","💱","©","®","➰","➿","🔚","🔙","🔛","🔝","🔜","🔘","⚪","⚫","🔴","🔵","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪","▫","◾","◽","◼","◻","⬛","⬜","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","🗨","👁","💬","💭","🗯","🃏","🎴","🀄","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","⚽","🏀","🏈","⚾","🥎","🎾","🏐","🏉","🎱","🏓","🏸","🥅","🏒","🏑","🏏","🥍","⛳","🥏","🏹","🎣","🥊","🥋","🎽","🛹","⛸","🥌","🛷","🎿","⛷","🏂","🏋","🤼","🤸","⛹","🤺","🤾","🏌","🏇","🧘","🏄","🏊","🤽","🚣","🧗","🚵","🚴","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🎻","🎲","🎯","🎳","🎮","🎰","⌚","📱","📲","💻","🖥","🖨","🖱","🖲","🕹","♟","🧩","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎","📟","📠","📺","📻","🎙","🎚","🎛","⏱","⏲","⏰","🕰","⌛","⏳","📡","🧭","🔋","🔌","🧲","💡","🔦","🕯","🧯","🗑","🛢","💸","💵","💴","💶","💷","💰","💳","💎","🧿","🧱","🧰","🔧","🔨","🛠","⛏","🔩","⛓","🔫","💣","🔪","🗡","🛡","🚬","⚰","⚱","🏺","🔮","📿","💈","🧪","🧫","🧬","🧮","🔭","🔬","🕳","💊","💉","🌡","🚽","🚰","🚿","🛁","🛀","🧹","🧺","🧻","🧼","🧽","🧴","🧵","🧶","🛎","🔑","🗝","🚪","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","🧾","📑","📊","📈","📉","🗒","🗓","📆","📅","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🔗","📎","🖇","📐","📏","🧷","📌","📍","🖊","🖋","🖌","🖍","📝","✏","🔍","🔎","🔏","🔐","🐶","🐱","🐭","🐹","🐰","🦊","🦝","🐻","🐼","🦘","🦡","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦢","🦅","🦉","🦜","🦚","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐚","🐞","🐜","🦗","🕷","🕸","🦂","🦟","🦠","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦀","🦞","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🐘","🦏","🦛","🐪","🐫","🦒","🦙","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🐐","🦌","🐕","🐩","🐈","🐓","🦃","🕊","🐇","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","💫","⭐","🌟","⚡","💥","🔥","🌪","🌈","🌤","⛅","🌥","🌦","🌧","⛈","🌩","🌨","⛄","🌬","💨","💧","💦","🌊","🌫","🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🥔","🍠","🥐","🍞","🥖","🥨","🥯","🧀","🥚","🍳","🥞","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🍤","🍙","🍚","🍘","🍥","🥠","🍢","🍡","🍧","🍨","🍦","🥧","🍰","🎂","🥮","🧁","🍮","🍭","🍬","🍫","🍿","🧂","🍩","🥟","🍪","🌰","🥜","🍯","🥛","🍼","🍵","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🍾","🥄","🍴","🍽","🥣","🥡","🥢","😀","😃","😄","😁","😆","😅","😂","🤣","☺","😊","😇","🙂","🙃","😉","😌","😍","😘","🥰","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","😣","😖","😫","😩","😢","😭","😤","😠","😡","🤬","🤯","😳","😱","😨","😰","🥵","🥶","🥺","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌","🤟","🤘","👌","👈","👉","👆","👇","☝","✋","🤚","🖐","🖖","👋","🤙","💪","🦵","🦶","🖕","✍","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👀","🧠","🦴","🦷","🗣","👤","👥","👶","👧","🧒","👦","👩","🧑","👨","👱","🧔","👵","🧓","👴","👲","👳","🧕","👮","👷","💂","🕵","👰","🤵","👸","🤴","🤶","🎅","🦸","🦹","🧙","🧝","🧛","🧟","🧞","🧜","🧚","👼","🤰","🤱","🙇","💁","🙅","🙆","🙋","🤦","🤷","🙎","🙍","💇","💆","🧖","💅","🤳","💃","🕺","👯","🕴","🚶","🏃","👫","👭","👬","💑","💏","👪","🧥","👚","👕","👖","👔","👗","👙","👘","🥼","👠","👡","👢","👞","👟","🥾","🥿","🧦","🧤","🧣","🎩","🧢","👒","🎓","⛑","👑","👝","👛","👜","💼","🎒","👓","🕶","🥽","🌂","🦰","🦱","🦳","🦲","🇿","🇾","🇽","🇼","🇻","🇺","🇹","🇸","🇷","🇶","🇵","🇴","🇳","🇲","🇱","🇰","🇯","🇮","🇭","🇬","🇫","🇪","🇩","🇨","🇧","🇦","🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🛴","🚲","🛵","🏍","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","🛫","🛬","🛩","💺","🧳","🛰","🚀","🛸","🚁","🛶","⛵","🚤","🛥","🛳","⛴","🚢","⛽","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪","🕌","🕍","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🧨","🌇","🌆","🏙","🌃","🌌","🌉","🔒","🔓","🌁","🏳","🏴","🏁","🚩","🎌","🏻","🏼","🏽","🏾","🏿"]};x.extend(!0,x.trumbowyg,{langs:{en:{emoji:"Add an emoji"},da:{emoji:"Tilføj et humørikon"},de:{emoji:"Emoticon einfügen"},fr:{emoji:"Ajouter un emoji"},zh_cn:{emoji:"添加表情"},ru:{emoji:"Вставить emoji"},ja:{emoji:"絵文字の挿入"},tr:{emoji:"Emoji ekle"}},plugins:{emoji:{init:function(x){x.o.plugins.emoji=x.o.plugins.emoji||E;var B={dropdown:F(x)};x.addBtnDef("emoji",B)}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss b/src/assets/scripts/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss new file mode 100755 index 0000000..0f7b1fc --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/emoji/ui/sass/trumbowyg.emoji.scss @@ -0,0 +1,56 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Default stylesheet for Trumbowyg editor plugin + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-dropdown-emoji { + width: 265px; + padding: 7px 0 7px 5px; + height: 200px; + overflow-y: scroll; + overflow-x: hidden; +} + +.trumbowyg-dropdown-emoji svg { + display: none !important; +} + +.trumbowyg-dropdown-emoji button { + display: block; + position: relative; + float: left; + height: 26px; + width: 26px; + padding: 0; + margin: 2px; + line-height: 24px; + text-align: center; + + &:hover, + &:focus { + &::after { + display: block; + position: absolute; + top: -5px; + left: -5px; + height: 27px; + width: 27px; + background: inherit; + box-shadow: #000 0 0 2px; + z-index: 10; + background-color: transparent; + } + } +} + +.trumbowyg .emoji { + width: 22px; + height: 22px; + display: inline-block; +} diff --git a/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css b/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css new file mode 100755 index 0000000..01563a8 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.css @@ -0,0 +1,47 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Trumbowyg plugin stylesheet + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-dropdown-emoji { + width: 265px; + padding: 7px 0 7px 5px; + height: 200px; + overflow-y: scroll; + overflow-x: hidden; } + +.trumbowyg-dropdown-emoji svg { + display: none !important; } + +.trumbowyg-dropdown-emoji button { + display: block; + position: relative; + float: left; + height: 26px; + width: 26px; + padding: 0; + margin: 2px; + line-height: 24px; + text-align: center; } + .trumbowyg-dropdown-emoji button:hover::after, .trumbowyg-dropdown-emoji button:focus::after { + display: block; + position: absolute; + top: -5px; + left: -5px; + height: 27px; + width: 27px; + background: inherit; + box-shadow: #000 0 0 2px; + z-index: 10; + background-color: transparent; } + +.trumbowyg .emoji { + width: 22px; + height: 22px; + display: inline-block; } diff --git a/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css b/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css new file mode 100755 index 0000000..d48ab9f --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/emoji/ui/trumbowyg.emoji.min.css @@ -0,0 +1,2 @@ +/** Trumbowyg v2.14.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */ +.trumbowyg-dropdown-emoji{width:265px;padding:7px 0 7px 5px;height:200px;overflow-y:scroll;overflow-x:hidden}.trumbowyg-dropdown-emoji svg{display:none!important}.trumbowyg-dropdown-emoji button{display:block;position:relative;float:left;height:26px;width:26px;padding:0;margin:2px;line-height:24px;text-align:center}.trumbowyg-dropdown-emoji button:focus::after,.trumbowyg-dropdown-emoji button:hover::after{display:block;position:absolute;top:-5px;left:-5px;height:27px;width:27px;background:inherit;box-shadow:#000 0 0 2px;z-index:10;background-color:transparent}.trumbowyg .emoji{width:22px;height:22px;display:inline-block} \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js b/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js new file mode 100755 index 0000000..8996de2 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js @@ -0,0 +1,85 @@ +(function ($) { + 'use strict'; + + $.extend(true, $.trumbowyg, { + langs: { + // jshint camelcase:false + en: { + fontFamily: 'Font' + }, + da: { + fontFamily: 'Skrifttype' + }, + fr: { + fontFamily: 'Police' + }, + de: { + fontFamily: 'Schriftart' + }, + nl: { + fontFamily: 'Lettertype' + }, + tr: { + fontFamily: 'Yazı Tipi' + }, + zh_tw: { + fontFamily: '字體', + }, + pt_br: { + fontFamily: 'Fonte', + } + } + }); + // jshint camelcase:true + + var defaultOptions = { + fontList: [ + {name: 'Arial', family: 'Arial, Helvetica, sans-serif'}, + {name: 'Arial Black', family: '\'Arial Black\', Gadget, sans-serif'}, + {name: 'Comic Sans', family: '\'Comic Sans MS\', Textile, cursive, sans-serif'}, + {name: 'Courier New', family: '\'Courier New\', Courier, monospace'}, + {name: 'Georgia', family: 'Georgia, serif'}, + {name: 'Impact', family: 'Impact, Charcoal, sans-serif'}, + {name: 'Lucida Console', family: '\'Lucida Console\', Monaco, monospace'}, + {name: 'Lucida Sans', family: '\'Lucida Sans Uncide\', \'Lucida Grande\', sans-serif'}, + {name: 'Palatino', family: '\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif'}, + {name: 'Tahoma', family: 'Tahoma, Geneva, sans-serif'}, + {name: 'Times New Roman', family: '\'Times New Roman\', Times, serif'}, + {name: 'Trebuchet', family: '\'Trebuchet MS\', Helvetica, sans-serif'}, + {name: 'Verdana', family: 'Verdana, Geneva, sans-serif'} + ] + }; + + // Add dropdown with web safe fonts + $.extend(true, $.trumbowyg, { + plugins: { + fontfamily: { + init: function (trumbowyg) { + trumbowyg.o.plugins.fontfamily = trumbowyg.o.plugins.fontfamily || defaultOptions; + trumbowyg.addBtnDef('fontfamily', { + dropdown: buildDropdown(trumbowyg), + hasIcon: false, + text: trumbowyg.lang.fontFamily + }); + } + } + } + }); + + function buildDropdown(trumbowyg) { + var dropdown = []; + + $.each(trumbowyg.o.plugins.fontfamily.fontList, function (index, font) { + trumbowyg.addBtnDef('fontfamily_' + index, { + title: '' + font.name + '', + hasIcon: false, + fn: function () { + trumbowyg.execCmd('fontName', font.family, true); + } + }); + dropdown.push('fontfamily_' + index); + }); + + return dropdown; + } +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js b/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js new file mode 100755 index 0000000..5f9846d --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.min.js @@ -0,0 +1 @@ +!function(a){"use strict";function n(n){var i=[];return a.each(n.o.plugins.fontfamily.fontList,function(a,e){n.addBtnDef("fontfamily_"+a,{title:''+e.name+"",hasIcon:!1,fn:function(){n.execCmd("fontName",e.family,!0)}}),i.push("fontfamily_"+a)}),i}a.extend(!0,a.trumbowyg,{langs:{en:{fontFamily:"Font"},da:{fontFamily:"Skrifttype"},fr:{fontFamily:"Police"},de:{fontFamily:"Schriftart"},nl:{fontFamily:"Lettertype"},tr:{fontFamily:"Yazı Tipi"},zh_tw:{fontFamily:"字體"},pt_br:{fontFamily:"Fonte"}}});var i={fontList:[{name:"Arial",family:"Arial, Helvetica, sans-serif"},{name:"Arial Black",family:"'Arial Black', Gadget, sans-serif"},{name:"Comic Sans",family:"'Comic Sans MS', Textile, cursive, sans-serif"},{name:"Courier New",family:"'Courier New', Courier, monospace"},{name:"Georgia",family:"Georgia, serif"},{name:"Impact",family:"Impact, Charcoal, sans-serif"},{name:"Lucida Console",family:"'Lucida Console', Monaco, monospace"},{name:"Lucida Sans",family:"'Lucida Sans Uncide', 'Lucida Grande', sans-serif"},{name:"Palatino",family:"'Palatino Linotype', 'Book Antiqua', Palatino, serif"},{name:"Tahoma",family:"Tahoma, Geneva, sans-serif"},{name:"Times New Roman",family:"'Times New Roman', Times, serif"},{name:"Trebuchet",family:"'Trebuchet MS', Helvetica, sans-serif"},{name:"Verdana",family:"Verdana, Geneva, sans-serif"}]};a.extend(!0,a.trumbowyg,{plugins:{fontfamily:{init:function(a){a.o.plugins.fontfamily=a.o.plugins.fontfamily||i,a.addBtnDef("fontfamily",{dropdown:n(a),hasIcon:!1,text:a.lang.fontFamily})}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js b/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js new file mode 100755 index 0000000..d80c624 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js @@ -0,0 +1,197 @@ +(function ($) { + 'use strict'; + + $.extend(true, $.trumbowyg, { + langs: { + // jshint camelcase:false + en: { + fontsize: 'Font size', + fontsizes: { + 'x-small': 'Extra small', + 'small': 'Small', + 'medium': 'Regular', + 'large': 'Large', + 'x-large': 'Extra large', + 'custom': 'Custom' + }, + fontCustomSize: { + title: 'Custom Font Size', + label: 'Font Size', + value: '48px' + } + }, + es: { + fontsize: 'Tamaño de Fuente', + fontsizes: { + 'x-small': 'Extra pequeña', + 'small': 'Pegueña', + 'medium': 'Regular', + 'large': 'Grande', + 'x-large': 'Extra Grande', + 'custom': 'Customizada' + }, + fontCustomSize: { + title: 'Tamaño de Fuente Customizada', + label: 'Tamaño de Fuente', + value: '48px' + } + }, + da: { + fontsize: 'Skriftstørrelse', + fontsizes: { + 'x-small': 'Ekstra lille', + 'small': 'Lille', + 'medium': 'Normal', + 'large': 'Stor', + 'x-large': 'Ekstra stor', + 'custom': 'Brugerdefineret' + } + }, + fr: { + fontsize: 'Taille de la police', + fontsizes: { + 'x-small': 'Très petit', + 'small': 'Petit', + 'medium': 'Normal', + 'large': 'Grand', + 'x-large': 'Très grand', + 'custom': 'Douane' + } + }, + de: { + fontsize: 'Font size', + fontsizes: { + 'x-small': 'Sehr klein', + 'small': 'Klein', + 'medium': 'Normal', + 'large': 'Groß', + 'x-large': 'Sehr groß', + 'custom': 'Benutzerdefiniert' + }, + fontCustomSize: { + title: 'Benutzerdefinierte Schriftgröße', + label: 'Schriftgröße', + value: '48px' + } + }, + nl: { + fontsize: 'Lettergrootte', + fontsizes: { + 'x-small': 'Extra klein', + 'small': 'Klein', + 'medium': 'Normaal', + 'large': 'Groot', + 'x-large': 'Extra groot', + 'custom': 'Tilpasset' + } + }, + tr: { + fontsize: 'Yazı Boyutu', + fontsizes: { + 'x-small': 'Çok Küçük', + 'small': 'Küçük', + 'medium': 'Normal', + 'large': 'Büyük', + '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' + } + }, + pt_br: { + fontsize: 'Tamanho da fonte', + fontsizes: { + 'x-small':'Extra pequeno', + 'small':'Pequeno', + 'regular':'Médio', + 'large':'Grande', + 'x-large':'Extra grande', + 'custom':'Personalizado' + }, + fontCustomSize: { + title: 'Tamanho de Fonte Personalizado', + label: 'Tamanho de Fonte', + value: '48px' + } + } + } + }); + // jshint camelcase:true + + // Add dropdown with font sizes + $.extend(true, $.trumbowyg, { + plugins: { + fontsize: { + init: function (trumbowyg) { + trumbowyg.addBtnDef('fontsize', { + dropdown: buildDropdown(trumbowyg) + }); + } + } + } + }); + + function buildDropdown(trumbowyg) { + var dropdown = []; + var sizes = ['x-small', 'small', 'medium', 'large', 'x-large']; + + $.each(sizes, function (index, size) { + trumbowyg.addBtnDef('fontsize_' + size, { + text: '' + trumbowyg.lang.fontsizes[size] + '', + hasIcon: false, + fn: function () { + trumbowyg.execCmd('fontSize', index + 1, true); + } + }); + dropdown.push('fontsize_' + size); + }); + + var freeSizeButtonName = 'fontsize_custom', + freeSizeBtnDef = { + fn: function () { + trumbowyg.openModalInsert(trumbowyg.lang.fontCustomSize.title, + { + size: { + label: trumbowyg.lang.fontCustomSize.label, + value: trumbowyg.lang.fontCustomSize.value + } + }, + function (values) { + var text = trumbowyg.range.startContainer.parentElement; + var selectedText = trumbowyg.getRangeText(); + if ($(text).html() === selectedText) { + $(text).css('font-size', values.size); + } else { + trumbowyg.range.deleteContents(); + var html = '' + selectedText + ''; + var node = $(html)[0]; + trumbowyg.range.insertNode(node); + } + trumbowyg.saveRange(); + return true; + } + ); + }, + text: '' + trumbowyg.lang.fontsizes.custom + '', + hasIcon: false + }; + trumbowyg.addBtnDef(freeSizeButtonName, freeSizeBtnDef); + dropdown.push(freeSizeButtonName); + + return dropdown; + } +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js b/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js new file mode 100755 index 0000000..93fc5d4 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/fontsize/trumbowyg.fontsize.min.js @@ -0,0 +1 @@ +!function(e){"use strict";function t(t){var a=[],l=["x-small","small","medium","large","x-large"];e.each(l,function(e,l){t.addBtnDef("fontsize_"+l,{text:''+t.lang.fontsizes[l]+"",hasIcon:!1,fn:function(){t.execCmd("fontSize",e+1,!0)}}),a.push("fontsize_"+l)});var n="fontsize_custom",s={fn:function(){t.openModalInsert(t.lang.fontCustomSize.title,{size:{label:t.lang.fontCustomSize.label,value:t.lang.fontCustomSize.value}},function(a){var l=t.range.startContainer.parentElement,n=t.getRangeText();if(e(l).html()===n)e(l).css("font-size",a.size);else{t.range.deleteContents();var s=''+n+"",o=e(s)[0];t.range.insertNode(o)}return t.saveRange(),!0})},text:''+t.lang.fontsizes.custom+"",hasIcon:!1};return t.addBtnDef(n,s),a.push(n),a}e.extend(!0,e.trumbowyg,{langs:{en:{fontsize:"Font size",fontsizes:{"x-small":"Extra small",small:"Small",medium:"Regular",large:"Large","x-large":"Extra large",custom:"Custom"},fontCustomSize:{title:"Custom Font Size",label:"Font Size",value:"48px"}},es:{fontsize:"Tamaño de Fuente",fontsizes:{"x-small":"Extra pequeña",small:"Pegueña",medium:"Regular",large:"Grande","x-large":"Extra Grande",custom:"Customizada"},fontCustomSize:{title:"Tamaño de Fuente Customizada",label:"Tamaño de Fuente",value:"48px"}},da:{fontsize:"Skriftstørrelse",fontsizes:{"x-small":"Ekstra lille",small:"Lille",medium:"Normal",large:"Stor","x-large":"Ekstra stor",custom:"Brugerdefineret"}},fr:{fontsize:"Taille de la police",fontsizes:{"x-small":"Très petit",small:"Petit",medium:"Normal",large:"Grand","x-large":"Très grand",custom:"Douane"}},de:{fontsize:"Font size",fontsizes:{"x-small":"Sehr klein",small:"Klein",medium:"Normal",large:"Groß","x-large":"Sehr groß",custom:"Benutzerdefiniert"},fontCustomSize:{title:"Benutzerdefinierte Schriftgröße",label:"Schriftgröße",value:"48px"}},nl:{fontsize:"Lettergrootte",fontsizes:{"x-small":"Extra klein",small:"Klein",medium:"Normaal",large:"Groot","x-large":"Extra groot",custom:"Tilpasset"}},tr:{fontsize:"Yazı Boyutu",fontsizes:{"x-small":"Çok Küçük",small:"Küçük",medium:"Normal",large:"Büyük","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"}},pt_br:{fontsize:"Tamanho da fonte",fontsizes:{"x-small":"Extra pequeno",small:"Pequeno",regular:"Médio",large:"Grande","x-large":"Extra grande",custom:"Personalizado"},fontCustomSize:{title:"Tamanho de Fonte Personalizado",label:"Tamanho de Fonte",value:"48px"}}}}),e.extend(!0,e.trumbowyg,{plugins:{fontsize:{init:function(e){e.addBtnDef("fontsize",{dropdown:t(e)})}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.js b/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.js new file mode 100755 index 0000000..069032a --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.js @@ -0,0 +1,85 @@ +/* globals Prism */ +(function ($, Prism) { + 'use strict'; + + // My plugin default options + var defaultOptions = {}; + + function highlightIt(text, language) { + return [ + '
',
+            '' + Prism.highlight(text, Prism.languages[language]) + '',
+            '
', + ].join(''); + } + + // If my plugin is a button + function buildButtonDef(trumbowyg) { + return { + fn: function () { + var $modal = trumbowyg.openModal('Code', [ + '
', + ' ', + '
', + '
', + ' ', + '
', + ].join('\n')), + $language = $modal.find('.language'), + $code = $modal.find('.code'); + + // Listen clicks on modal box buttons + $modal.on('tbwconfirm', function () { + trumbowyg.restoreRange(); + trumbowyg.execCmd('insertHTML', highlightIt($code.val(), $language.val())); + trumbowyg.execCmd('insertHTML', '


'); + + trumbowyg.closeModal(); + }); + + $modal.on('tbwcancel', function () { + trumbowyg.closeModal(); + }); + } + }; + } + + $.extend(true, $.trumbowyg, { + // Add some translations + langs: { + en: { + highlight: 'Code syntax highlight' + }, + pt_br: { + highlight: 'Realçar sintaxe de código' + } + }, + // Add our plugin to Trumbowyg registred plugins + plugins: { + highlight: { + init: function (trumbowyg) { + // Fill current Trumbowyg instance with my plugin default options + trumbowyg.o.plugins.highlight = $.extend(true, {}, + defaultOptions, + trumbowyg.o.plugins.highlight || {} + ); + + // If my plugin is a button + trumbowyg.addBtnDef('highlight', buildButtonDef(trumbowyg)); + } + } + } + }); +})(jQuery, Prism); diff --git a/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js b/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js new file mode 100755 index 0000000..1d3bd2a --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/highlight/trumbowyg.highlight.min.js @@ -0,0 +1 @@ +!function(i,n){"use strict";function e(i,e){return['
',''+n.highlight(i,n.languages[e])+"","
"].join("")}function o(i){return{fn:function(){var o=i.openModal("Code",['
',' ","
",'
',' ',"
"].join("\n")),t=o.find(".language"),g=o.find(".code");o.on("tbwconfirm",function(){i.restoreRange(),i.execCmd("insertHTML",e(g.val(),t.val())),i.execCmd("insertHTML","


"),i.closeModal()}),o.on("tbwcancel",function(){i.closeModal()})}}}var t={};i.extend(!0,i.trumbowyg,{langs:{en:{highlight:"Code syntax highlight"},pt_br:{highlight:"Realçar sintaxe de código"}},plugins:{highlight:{init:function(n){n.o.plugins.highlight=i.extend(!0,{},t,n.o.plugins.highlight||{}),n.addBtnDef("highlight",o(n))}}}})}(jQuery,Prism); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss b/src/assets/scripts/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss new file mode 100755 index 0000000..ee8c8a6 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/highlight/ui/sass/trumbowyg.highlight.scss @@ -0,0 +1,25 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Default stylesheet for Trumbowyg editor plugin + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-highlight-form-group { + margin: 15px 10px; + + .trumbowyg-highlight-form-control { + width: 100%; + border: 1px solid #DEDEDE; + font-size: 14px; + padding: 7px; + + &.code { + height: 200px; + } + } +} diff --git a/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css b/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css new file mode 100755 index 0000000..d77e888 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.css @@ -0,0 +1,20 @@ +/** + * Trumbowyg v2.14.0 - A lightweight WYSIWYG editor + * Trumbowyg plugin stylesheet + * ------------------------ + * @link http://alex-d.github.io/Trumbowyg + * @license MIT + * @author Alexandre Demode (Alex-D) + * Twitter : @AlexandreDemode + * Website : alex-d.fr + */ + +.trumbowyg-highlight-form-group { + margin: 15px 10px; } + .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control { + width: 100%; + border: 1px solid #DEDEDE; + font-size: 14px; + padding: 7px; } + .trumbowyg-highlight-form-group .trumbowyg-highlight-form-control.code { + height: 200px; } diff --git a/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css b/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css new file mode 100755 index 0000000..12a5e6a --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/highlight/ui/trumbowyg.highlight.min.css @@ -0,0 +1,2 @@ +/** Trumbowyg v2.14.0 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */ +.trumbowyg-highlight-form-group{margin:15px 10px}.trumbowyg-highlight-form-group .trumbowyg-highlight-form-control{width:100%;border:1px solid #DEDEDE;font-size:14px;padding:7px}.trumbowyg-highlight-form-group .trumbowyg-highlight-form-control.code{height:200px} \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.js b/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.js new file mode 100755 index 0000000..d7c3872 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.js @@ -0,0 +1,208 @@ +/*/* =========================================================== + * trumbowyg.history.js v1.0 + * history plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Sven Dunemann [dunemann@forelabs.eu] + */ + +(function ($) { + 'use strict'; + $.extend(true, $.trumbowyg, { + langs: { + de: { + history: { + redo: 'Wiederholen', + undo: 'Rückgängig' + } + }, + en: { + history: { + redo: 'Redo', + undo: 'Undo' + } + }, + da: { + history: { + redo: 'Annuller fortryd', + undo: 'Fortryd' + } + }, + fr: { + history: { + redo: 'Annuler', + undo: 'Rétablir' + } + }, + zh_tw: { + history: { + redo: '重做', + undo: '復原' + } + }, + pt_br: { + history: { + redo: 'Refazer', + undo: 'Desfazer' + } + }, + }, + plugins: { + history: { + init: function (t) { + t.o.plugins.history = $.extend(true, { + _stack: [], + _index: -1, + _focusEl: undefined + }, t.o.plugins.history || {}); + + var btnBuildDefRedo = { + title: t.lang.history.redo, + ico: 'redo', + key: 'Y', + fn: function () { + if (t.o.plugins.history._index < t.o.plugins.history._stack.length - 1) { + t.o.plugins.history._index += 1; + var index = t.o.plugins.history._index; + var newState = t.o.plugins.history._stack[index]; + + t.execCmd('html', newState); + // because of some semantic optimisations we have to save the state back + // to history + t.o.plugins.history._stack[index] = t.$ed.html(); + + carretToEnd(); + toggleButtonStates(); + } + } + }; + + var btnBuildDefUndo = { + title: t.lang.history.undo, + ico: 'undo', + key: 'Z', + fn: function () { + if (t.o.plugins.history._index > 0) { + t.o.plugins.history._index -= 1; + var index = t.o.plugins.history._index, + newState = t.o.plugins.history._stack[index]; + + t.execCmd('html', newState); + // because of some semantic optimisations we have to save the state back + // to history + t.o.plugins.history._stack[index] = t.$ed.html(); + + carretToEnd(); + toggleButtonStates(); + } + } + }; + + var pushToHistory = function () { + var index = t.o.plugins.history._index, + stack = t.o.plugins.history._stack, + latestState = stack.slice(-1)[0] || '

', + prevState = stack[index], + newState = t.$ed.html(), + focusEl = t.doc.getSelection().focusNode, + focusElText = '', + latestStateTagsList, + newStateTagsList, + prevFocusEl = t.o.plugins.history._focusEl; + + latestStateTagsList = $('
' + latestState + '
').find('*').map(function () { + return this.localName; + }); + newStateTagsList = $('
' + newState + '
').find('*').map(function () { + return this.localName; + }); + if (focusEl) { + t.o.plugins.history._focusEl = focusEl; + focusElText = focusEl.outerHTML || focusEl.textContent; + } + + if (newState !== prevState) { + // a new stack entry is defined when current insert ends on a whitespace character + // or count of node elements has been changed + // or focused element differs from previous one + if (focusElText.slice(-1).match(/\s/) || + !arraysAreIdentical(latestStateTagsList, newStateTagsList) || + t.o.plugins.history._index <= 0 || focusEl !== prevFocusEl) + { + t.o.plugins.history._index += 1; + // remove newer entries in history when something new was added + // because timeline was changes with interaction + t.o.plugins.history._stack = stack.slice( + 0, t.o.plugins.history._index + ); + // now add new state to modifed history + t.o.plugins.history._stack.push(newState); + } else { + // modify last stack entry + t.o.plugins.history._stack[index] = newState; + } + + toggleButtonStates(); + } + }; + + var toggleButtonStates = function () { + var index = t.o.plugins.history._index, + stackSize = t.o.plugins.history._stack.length, + undoState = (index > 0), + redoState = (stackSize !== 0 && index !== stackSize - 1); + + toggleButtonState('historyUndo', undoState); + toggleButtonState('historyRedo', redoState); + }; + + var toggleButtonState = function (btn, enable) { + var button = t.$box.find('.trumbowyg-' + btn + '-button'); + + if (enable) { + button.removeClass('trumbowyg-disable'); + } else if (!button.hasClass('trumbowyg-disable')) { + button.addClass('trumbowyg-disable'); + } + }; + + var arraysAreIdentical = function (a, b) { + if (a === b) { + return true; + } + if (a == null || b == null) { + return false; + } + if (a.length !== b.length) { + return false; + } + + for (var i = 0; i < a.length; i += 1) { + if (a[i] !== b[i]) { + return false; + } + } + return true; + }; + + var carretToEnd = function () { + var node = t.doc.getSelection().focusNode, + range = t.doc.createRange(); + + if (node.childNodes.length > 0) { + range.setStartAfter(node.childNodes[node.childNodes.length - 1]); + range.setEndAfter(node.childNodes[node.childNodes.length - 1]); + t.doc.getSelection().removeAllRanges(); + t.doc.getSelection().addRange(range); + } + }; + + t.$c.on('tbwinit tbwchange', pushToHistory); + + t.addBtnDef('historyRedo', btnBuildDefRedo); + t.addBtnDef('historyUndo', btnBuildDefUndo); + } + } + } + }); +})(jQuery); diff --git a/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.min.js b/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.min.js new file mode 100755 index 0000000..a991a6d --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/history/trumbowyg.history.min.js @@ -0,0 +1 @@ +!function(o){"use strict";o.extend(!0,o.trumbowyg,{langs:{de:{history:{redo:"Wiederholen",undo:"Rückgängig"}},en:{history:{redo:"Redo",undo:"Undo"}},da:{history:{redo:"Annuller fortryd",undo:"Fortryd"}},fr:{history:{redo:"Annuler",undo:"Rétablir"}},zh_tw:{history:{redo:"重做",undo:"復原"}},pt_br:{history:{redo:"Refazer",undo:"Desfazer"}}},plugins:{history:{init:function(i){i.o.plugins.history=o.extend(!0,{_stack:[],_index:-1,_focusEl:void 0},i.o.plugins.history||{});var t={title:i.lang.history.redo,ico:"redo",key:"Y",fn:function(){if(i.o.plugins.history._index0){i.o.plugins.history._index-=1;var o=i.o.plugins.history._index,t=i.o.plugins.history._stack[o];i.execCmd("html",t),i.o.plugins.history._stack[o]=i.$ed.html(),l(),s()}}},e=function(){var t,n,e=i.o.plugins.history._index,r=i.o.plugins.history._stack,l=r.slice(-1)[0]||"

",u=r[e],h=i.$ed.html(),c=i.doc.getSelection().focusNode,g="",a=i.o.plugins.history._focusEl;t=o("
"+l+"
").find("*").map(function(){return this.localName}),n=o("
"+h+"
").find("*").map(function(){return this.localName}),c&&(i.o.plugins.history._focusEl=c,g=c.outerHTML||c.textContent),h!==u&&(g.slice(-1).match(/\s/)||!d(t,n)||i.o.plugins.history._index<=0||c!==a?(i.o.plugins.history._index+=1,i.o.plugins.history._stack=r.slice(0,i.o.plugins.history._index),i.o.plugins.history._stack.push(h)):i.o.plugins.history._stack[e]=h,s())},s=function(){var o=i.o.plugins.history._index,t=i.o.plugins.history._stack.length,n=o>0,e=0!==t&&o!==t-1;r("historyUndo",n),r("historyRedo",e)},r=function(o,t){var n=i.$box.find(".trumbowyg-"+o+"-button");t?n.removeClass("trumbowyg-disable"):n.hasClass("trumbowyg-disable")||n.addClass("trumbowyg-disable")},d=function(o,i){if(o===i)return!0;if(null==o||null==i)return!1;if(o.length!==i.length)return!1;for(var t=0;t0&&(t.setStartAfter(o.childNodes[o.childNodes.length-1]),t.setEndAfter(o.childNodes[o.childNodes.length-1]),i.doc.getSelection().removeAllRanges(),i.doc.getSelection().addRange(t))};i.$c.on("tbwinit tbwchange",e),i.addBtnDef("historyRedo",t),i.addBtnDef("historyUndo",n)}}}})}(jQuery); \ No newline at end of file diff --git a/src/assets/scripts/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js b/src/assets/scripts/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js new file mode 100755 index 0000000..f468f70 --- /dev/null +++ b/src/assets/scripts/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js @@ -0,0 +1,95 @@ +/*/* =========================================================== + * trumbowyg.insertaudio.js v1.0 + * InsertAudio plugin for Trumbowyg + * http://alex-d.github.com/Trumbowyg + * =========================================================== + * Author : Adam Hess (AdamHess) + */ + +(function ($) { + 'use strict'; + + var insertAudioOptions = { + src: { + label: 'URL', + required: true + }, + autoplay: { + label: 'AutoPlay', + required: false, + type: 'checkbox' + }, + muted: { + label: 'Muted', + required: false, + type: 'checkbox' + }, + preload: { + label: 'preload options', + required: false + } + }; + + + $.extend(true, $.trumbowyg, { + langs: { + en: { + insertAudio: 'Insert Audio' + }, + da: { + insertAudio: 'Indsæt lyd' + }, + fr: { + insertAudio: 'Insérer un son' + }, + ru: { + insertAudio: 'Вставить аудио' + }, + ja: { + insertAudio: '音声の挿入' + }, + tr: { + insertAudio: 'Ses Ekle' + }, + pt_br: { + insertAudio: 'Inserir áudio' + } + }, + plugins: { + insertAudio: { + init: function (trumbowyg) { + var btnDef = { + fn: function () { + var insertAudioCallback = function (v) { + // controls should always be show otherwise the audio will + // be invisible defeating the point of a wysiwyg + var html = '