Update to TinyMCE 4.1.3 + small code improvements

pull/208/head
Aleksander Machniak 10 years ago
parent 5af3b33f97
commit a8f4d84736

@ -104,6 +104,10 @@ function rcube_text_editor(config, id)
ed.on('keypress', function() { ed.on('keypress', function() {
rcmail.compose_type_activity++; rcmail.compose_type_activity++;
}); });
// secure spellchecker requests with Roundcube token
tinymce.util.XHR.on('beforeSend', function(e) {
e.xhr.setRequestHeader('X-Roundcube-Request', rcmail.env.request_token);
});
}; };
// textarea identifier // textarea identifier
@ -283,9 +287,10 @@ function rcube_text_editor(config, id)
var ed = this.editor; var ed = this.editor;
if (ed) { if (ed) {
if (ed.plugins && ed.plugins.spellchecker && this.spellcheck_active) if (ed.plugins && ed.plugins.spellchecker && this.spellcheck_active) {
ed.execCommand('mceSpellCheck'); ed.execCommand('mceSpellCheck', false);
this.spellcheck_observer(); this.spellcheck_observer();
}
} }
else if (ed = this.spellchecker) { else if (ed = this.spellchecker) {
if (ed.state && ed.state != 'ready' && ed.state != 'no_error_found') if (ed.state && ed.state != 'ready' && ed.state != 'no_error_found')
@ -304,17 +309,13 @@ function rcube_text_editor(config, id)
return ed.state != 'ready' && ed.state != 'no_error_found'; return ed.state != 'ready' && ed.state != 'no_error_found';
}; };
// resume spellchecking, highlight provided mispellings without new ajax request // resume spellchecking, highlight provided mispellings without a new ajax request
this.spellcheck_resume = function(data) this.spellcheck_resume = function(data)
{ {
var ed = this.editor; var ed = this.editor;
if (ed) { if (ed) {
ed.settings.spellchecker_callback = function(name, text, done, error) { done(data); }; ed.plugins.spellchecker.markErrors(data);
ed.execCommand('mceSpellCheck');
ed.settings.spellchecker_callback = null;
this.spellcheck_observer();
} }
else if (ed = this.spellchecker) { else if (ed = this.spellchecker) {
ed.prepare(false, true); ed.prepare(false, true);

@ -66,6 +66,7 @@ tinymce.addI18n('cs',{
"Restore last draft": "Obnovit posledn\u00ed koncept", "Restore last draft": "Obnovit posledn\u00ed koncept",
"Special character": "Speci\u00e1ln\u00ed znak", "Special character": "Speci\u00e1ln\u00ed znak",
"Source code": "Zdrojov\u00fd k\u00f3d", "Source code": "Zdrojov\u00fd k\u00f3d",
"Color": "Barva",
"Right to left": "Zprava doleva", "Right to left": "Zprava doleva",
"Left to right": "Zleva doprava", "Left to right": "Zleva doprava",
"Emoticons": "Emotikony", "Emoticons": "Emotikony",
@ -177,6 +178,9 @@ tinymce.addI18n('cs',{
"Insert template": "Vlo\u017eit \u0161ablonu", "Insert template": "Vlo\u017eit \u0161ablonu",
"Templates": "\u0160ablony", "Templates": "\u0160ablony",
"Background color": "Barva pozad\u00ed", "Background color": "Barva pozad\u00ed",
"Custom...": "Vlastn\u00ed...",
"Custom color": "Vlastn\u00ed barva",
"No color": "Bez barvy",
"Text color": "Barva p\u00edsma", "Text color": "Barva p\u00edsma",
"Show blocks": "Uk\u00e1zat bloky", "Show blocks": "Uk\u00e1zat bloky",
"Show invisible characters": "Zobrazit speci\u00e1ln\u00ed znaky", "Show invisible characters": "Zobrazit speci\u00e1ln\u00ed znaky",

@ -179,7 +179,7 @@ tinymce.addI18n('es',{
"Insert template": "Insertar plantilla", "Insert template": "Insertar plantilla",
"Templates": "Plantillas", "Templates": "Plantillas",
"Background color": "Color de fondo", "Background color": "Color de fondo",
"Custom...": "Personalzaci\u00f3n", "Custom...": "Personalizar...",
"Custom color": "Color personalizado", "Custom color": "Color personalizado",
"No color": "Sin color", "No color": "Sin color",
"Text color": "Color del texto", "Text color": "Color del texto",

@ -66,6 +66,7 @@ tinymce.addI18n('hu_HU',{
"Restore last draft": "Utols\u00f3 piszkozat vissza\u00e1ll\u00edt\u00e1sa", "Restore last draft": "Utols\u00f3 piszkozat vissza\u00e1ll\u00edt\u00e1sa",
"Special character": "Speci\u00e1lis karakter", "Special character": "Speci\u00e1lis karakter",
"Source code": "Forr\u00e1sk\u00f3d", "Source code": "Forr\u00e1sk\u00f3d",
"Color": "Sz\u00edn",
"Right to left": "Jobbr\u00f3l balra", "Right to left": "Jobbr\u00f3l balra",
"Left to right": "Balr\u00f3l jobbra", "Left to right": "Balr\u00f3l jobbra",
"Emoticons": "Vigyorok", "Emoticons": "Vigyorok",
@ -128,11 +129,13 @@ tinymce.addI18n('hu_HU',{
"Finish": "Befejez\u00e9s", "Finish": "Befejez\u00e9s",
"Ignore all": "Mindent figyelmen k\u00edv\u00fcl hagy", "Ignore all": "Mindent figyelmen k\u00edv\u00fcl hagy",
"Ignore": "Figyelmen k\u00edv\u00fcl hagy", "Ignore": "Figyelmen k\u00edv\u00fcl hagy",
"Add to Dictionary": "Sz\u00f3t\u00e1rhoz ad",
"Insert row before": "Sor besz\u00far\u00e1sa el\u00e9", "Insert row before": "Sor besz\u00far\u00e1sa el\u00e9",
"Rows": "Sorok", "Rows": "Sorok",
"Height": "Magass\u00e1g", "Height": "Magass\u00e1g",
"Paste row after": "Sor beilleszt\u00e9se m\u00f6g\u00e9", "Paste row after": "Sor beilleszt\u00e9se m\u00f6g\u00e9",
"Alignment": "Igaz\u00edt\u00e1s", "Alignment": "Igaz\u00edt\u00e1s",
"Border color": "Szeg\u00e9ly sz\u00edne",
"Column group": "Oszlop csoport", "Column group": "Oszlop csoport",
"Row": "Sor", "Row": "Sor",
"Insert column before": "Oszlop besz\u00far\u00e1sa el\u00e9", "Insert column before": "Oszlop besz\u00far\u00e1sa el\u00e9",
@ -176,6 +179,9 @@ tinymce.addI18n('hu_HU',{
"Insert template": "Sablon beilleszt\u00e9se", "Insert template": "Sablon beilleszt\u00e9se",
"Templates": "Sablonok", "Templates": "Sablonok",
"Background color": "H\u00e1tt\u00e9r sz\u00edn", "Background color": "H\u00e1tt\u00e9r sz\u00edn",
"Custom...": "Egy\u00e9ni...",
"Custom color": "Egy\u00e9ni sz\u00edn",
"No color": "Nincs sz\u00edn",
"Text color": "Sz\u00f6veg sz\u00edne", "Text color": "Sz\u00f6veg sz\u00edne",
"Show blocks": "Blokkok mutat\u00e1sa", "Show blocks": "Blokkok mutat\u00e1sa",
"Show invisible characters": "L\u00e1thatatlan karakterek mutat\u00e1sa", "Show invisible characters": "L\u00e1thatatlan karakterek mutat\u00e1sa",

@ -66,6 +66,7 @@ tinymce.addI18n('lv',{
"Restore last draft": "Atjaunot p\u0113d\u0113jo melnrakstu", "Restore last draft": "Atjaunot p\u0113d\u0113jo melnrakstu",
"Special character": "\u012apa\u0161ais simbols", "Special character": "\u012apa\u0161ais simbols",
"Source code": "Pirmkods", "Source code": "Pirmkods",
"Color": "Kr\u0101sa",
"Right to left": "No lab\u0101s uz kreiso", "Right to left": "No lab\u0101s uz kreiso",
"Left to right": "No kreis\u0101s uz labo", "Left to right": "No kreis\u0101s uz labo",
"Emoticons": "Emocijas", "Emoticons": "Emocijas",
@ -128,11 +129,13 @@ tinymce.addI18n('lv',{
"Finish": "Beigt", "Finish": "Beigt",
"Ignore all": "Ignor\u0113t visu", "Ignore all": "Ignor\u0113t visu",
"Ignore": "Ignor\u0113t", "Ignore": "Ignor\u0113t",
"Add to Dictionary": "Pievienot v\u0101rdn\u012bcai",
"Insert row before": "Ievietot rindu pirms", "Insert row before": "Ievietot rindu pirms",
"Rows": "Rindas", "Rows": "Rindas",
"Height": "Augstums", "Height": "Augstums",
"Paste row after": "Iel\u012bm\u0113t rindu p\u0113c", "Paste row after": "Iel\u012bm\u0113t rindu p\u0113c",
"Alignment": "L\u012bdzin\u0101jums", "Alignment": "L\u012bdzin\u0101jums",
"Border color": "Apmales kr\u0101sa",
"Column group": "Kolonnu grupa", "Column group": "Kolonnu grupa",
"Row": "Rinda", "Row": "Rinda",
"Insert column before": "Ievietot kolonu pirms", "Insert column before": "Ievietot kolonu pirms",
@ -176,6 +179,9 @@ tinymce.addI18n('lv',{
"Insert template": "Ievietot \u0161ablonu", "Insert template": "Ievietot \u0161ablonu",
"Templates": "\u0160abloni", "Templates": "\u0160abloni",
"Background color": "Fona kr\u0101sa", "Background color": "Fona kr\u0101sa",
"Custom...": "Izv\u0113les...",
"Custom color": "Kr\u0101sa p\u0113c izv\u0113les",
"No color": "Bez kr\u0101sas",
"Text color": "Teksta kr\u0101sa", "Text color": "Teksta kr\u0101sa",
"Show blocks": "R\u0101d\u012bt blokus", "Show blocks": "R\u0101d\u012bt blokus",
"Show invisible characters": "R\u0101d\u012bt neredzam\u0101s rakstz\u012bmes", "Show invisible characters": "R\u0101d\u012bt neredzam\u0101s rakstz\u012bmes",

@ -12,7 +12,7 @@ tinymce.addI18n('pt_PT',{
"Pre": "Pre", "Pre": "Pre",
"Align right": "Alinhar \u00e0 direita", "Align right": "Alinhar \u00e0 direita",
"New document": "Novo documento", "New document": "Novo documento",
"Blockquote": "Cita\u00e7\u00e3o em bloco", "Blockquote": "Bloco de cita\u00e7\u00e3o",
"Numbered list": "Lista numerada", "Numbered list": "Lista numerada",
"Heading 1": "Cabe\u00e7alho 1", "Heading 1": "Cabe\u00e7alho 1",
"Headings": "Cabe\u00e7alhos", "Headings": "Cabe\u00e7alhos",
@ -43,7 +43,7 @@ tinymce.addI18n('pt_PT',{
"Heading 3": "Cabe\u00e7alho 3", "Heading 3": "Cabe\u00e7alho 3",
"Decrease indent": "Diminuir avan\u00e7o", "Decrease indent": "Diminuir avan\u00e7o",
"Header 4": "Cabe\u00e7alho 4", "Header 4": "Cabe\u00e7alho 4",
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "O comando colar est\u00e1 em modo de texto simples. O conte\u00fado ser\u00e1 colado como texto simples at\u00e9 desactivar esta op\u00e7\u00e3o.", "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "O comando colar est\u00e1 em modo de texto simples. O conte\u00fado ser\u00e1 colado como texto simples at\u00e9 desativar esta op\u00e7\u00e3o.",
"Underline": "Sublinhado", "Underline": "Sublinhado",
"Cancel": "Cancelar", "Cancel": "Cancelar",
"Justify": "Justificado", "Justify": "Justificado",
@ -62,14 +62,14 @@ tinymce.addI18n('pt_PT',{
"Lower Roman": "i. ii. iii. ...", "Lower Roman": "i. ii. iii. ...",
"Name": "Nome", "Name": "Nome",
"Anchor": "\u00c2ncora", "Anchor": "\u00c2ncora",
"You have unsaved changes are you sure you want to navigate away?": "Tem altera\u00e7\u00f5es que ainda n\u00e3o foram guardadas, tem a certeza que pretende sair?", "You have unsaved changes are you sure you want to navigate away?": "Existem altera\u00e7\u00f5es que ainda n\u00e3o foram guardadas. Tem a certeza que pretende sair?",
"Restore last draft": "Restaurar o \u00faltimo rascunho", "Restore last draft": "Restaurar o \u00faltimo rascunho",
"Special character": "Car\u00e1cter especial", "Special character": "Car\u00e1cter especial",
"Source code": "C\u00f3digo fonte", "Source code": "C\u00f3digo fonte",
"Color": "C\u00f4r", "Color": "Cor",
"Right to left": "Da direita para a esquerda", "Right to left": "Da direita para a esquerda",
"Left to right": "Da esquerda para a direita", "Left to right": "Da esquerda para a direita",
"Emoticons": "\u00cdcones expressivos", "Emoticons": "Emo\u00e7\u00f5es",
"Robots": "Rob\u00f4s", "Robots": "Rob\u00f4s",
"Document properties": "Propriedades do documento", "Document properties": "Propriedades do documento",
"Title": "T\u00edtulo", "Title": "T\u00edtulo",
@ -92,24 +92,24 @@ tinymce.addI18n('pt_PT',{
"Dimensions": "Dimens\u00f5es", "Dimensions": "Dimens\u00f5es",
"Insert image": "Inserir imagem", "Insert image": "Inserir imagem",
"Insert date\/time": "Inserir data\/hora", "Insert date\/time": "Inserir data\/hora",
"Remove link": "Remover link", "Remove link": "Remover liga\u00e7\u00e3o",
"Url": "Url", "Url": "Url",
"Text to display": "Texto a exibir", "Text to display": "Texto a exibir",
"Anchors": "\u00c2ncora", "Anchors": "\u00c2ncora",
"Insert link": "Inserir link", "Insert link": "Inserir liga\u00e7\u00e3o",
"New window": "Nova janela", "New window": "Nova janela",
"None": "Nenhum", "None": "Nenhum",
"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "O URL que indicou parece ser um endere\u00e7o web. Quer adicionar o necess\u00e1rio prefixo http:\/\/ ?", "The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "O URL que indicou parece ser um endere\u00e7o web. Quer adicionar o prefixo http:\/\/ como \u00e9 necess\u00e1rio?",
"Target": "Alvo", "Target": "Alvo",
"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "O URL que indicou parece ser um endere\u00e7o de email. Quer adicionar o necess\u00e1rio prefixo mailto: ?", "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "O URL que indicou parece ser um endere\u00e7o de email. Quer adicionar o prefixo mailto: como \u00e9 necess\u00e1rio?",
"Insert\/edit link": "Inserir\/editar link", "Insert\/edit link": "Inserir\/editar liga\u00e7\u00e3o",
"Insert\/edit video": "Inserir\/editar v\u00eddeo", "Insert\/edit video": "Inserir\/editar v\u00eddeo",
"Poster": "Autor", "Poster": "Autor",
"Alternative source": "Localiza\u00e7\u00e3o alternativa", "Alternative source": "Localiza\u00e7\u00e3o alternativa",
"Paste your embed code below:": "Insira o c\u00f3digo de incorpora\u00e7\u00e3o abaixo:", "Paste your embed code below:": "Insira, abaixo, o seu c\u00f3digo de incorpora\u00e7\u00e3o:",
"Insert video": "Inserir v\u00eddeo", "Insert video": "Inserir v\u00eddeo",
"Embed": "Incorporar", "Embed": "Incorporar",
"Nonbreaking space": "Espa\u00e7amento n\u00e3o separ\u00e1vel", "Nonbreaking space": "Espa\u00e7o n\u00e3o quebr\u00e1vel",
"Page break": "Quebra de p\u00e1gina", "Page break": "Quebra de p\u00e1gina",
"Paste as text": "Colar como texto", "Paste as text": "Colar como texto",
"Preview": "Pr\u00e9-visualizar", "Preview": "Pr\u00e9-visualizar",
@ -119,13 +119,13 @@ tinymce.addI18n('pt_PT',{
"Replace": "Substituir", "Replace": "Substituir",
"Next": "Pr\u00f3ximo", "Next": "Pr\u00f3ximo",
"Whole words": "Palavras completas", "Whole words": "Palavras completas",
"Find and replace": "Localizar e substituir", "Find and replace": "Pesquisar e substituir",
"Replace with": "Substituir por", "Replace with": "Substituir por",
"Find": "Localizar", "Find": "Pesquisar",
"Replace all": "Substituir tudo", "Replace all": "Substituir tudo",
"Match case": "Diferenciar mai\u00fasculas e min\u00fasculas", "Match case": "Diferenciar mai\u00fasculas e min\u00fasculas",
"Prev": "Anterior", "Prev": "Anterior",
"Spellcheck": "Corrector ortogr\u00e1fico", "Spellcheck": "Corretor ortogr\u00e1fico",
"Finish": "Concluir", "Finish": "Concluir",
"Ignore all": "Ignorar tudo", "Ignore all": "Ignorar tudo",
"Ignore": "Ignorar", "Ignore": "Ignorar",
@ -135,13 +135,13 @@ tinymce.addI18n('pt_PT',{
"Height": "Altura", "Height": "Altura",
"Paste row after": "Colar linha depois", "Paste row after": "Colar linha depois",
"Alignment": "Alinhamento", "Alignment": "Alinhamento",
"Border color": "Cor de Contorno", "Border color": "Cor de contorno",
"Column group": "Agrupar coluna", "Column group": "Agrupar coluna",
"Row": "Linha", "Row": "Linha",
"Insert column before": "Inserir coluna antes", "Insert column before": "Inserir coluna antes",
"Split cell": "Dividir c\u00e9lula", "Split cell": "Dividir c\u00e9lula",
"Cell padding": "Espa\u00e7amento interno da c\u00e9lula", "Cell padding": "Espa\u00e7amento interno da c\u00e9lula",
"Cell spacing": "Espa\u00e7amento da c\u00e9lula", "Cell spacing": "Espa\u00e7amento entre c\u00e9lulas",
"Row type": "Tipo de linha", "Row type": "Tipo de linha",
"Insert table": "Inserir tabela", "Insert table": "Inserir tabela",
"Body": "Corpo", "Body": "Corpo",
@ -151,7 +151,7 @@ tinymce.addI18n('pt_PT',{
"Paste row before": "Colar linha antes", "Paste row before": "Colar linha antes",
"Scope": "Escopo", "Scope": "Escopo",
"Delete table": "Eliminar tabela", "Delete table": "Eliminar tabela",
"H Align": "Alinhar H", "H Align": "Alinhamento H",
"Top": "Topo", "Top": "Topo",
"Header cell": "Cabe\u00e7alho da c\u00e9lula", "Header cell": "Cabe\u00e7alho da c\u00e9lula",
"Column": "Coluna", "Column": "Coluna",
@ -162,8 +162,8 @@ tinymce.addI18n('pt_PT',{
"Copy row": "Copiar linha", "Copy row": "Copiar linha",
"Row properties": "Propriedades da linha", "Row properties": "Propriedades da linha",
"Table properties": "Propriedades da tabela", "Table properties": "Propriedades da tabela",
"Bottom": "Fim", "Bottom": "Fundo",
"V Align": "Alinhar V", "V Align": "Alinhamento V",
"Header": "Cabe\u00e7alho", "Header": "Cabe\u00e7alho",
"Right": "Direita", "Right": "Direita",
"Insert column after": "Inserir coluna depois", "Insert column after": "Inserir coluna depois",
@ -179,12 +179,12 @@ tinymce.addI18n('pt_PT',{
"Insert template": "Inserir modelo", "Insert template": "Inserir modelo",
"Templates": "Modelos", "Templates": "Modelos",
"Background color": "Cor de fundo", "Background color": "Cor de fundo",
"Custom...": "Personalizada", "Custom...": "Personalizada...",
"Custom color": "C\u00f4r personalizada", "Custom color": "Cor personalizada",
"No color": "Sem C\u00f4r", "No color": "Sem cor",
"Text color": "Cor do texto", "Text color": "Cor do texto",
"Show blocks": "Mostrar blocos", "Show blocks": "Mostrar blocos",
"Show invisible characters": "Mostrar caracteres \u00ednvisiveis", "Show invisible characters": "Mostrar caracteres invis\u00edveis",
"Words: {0}": "Palavras: {0}", "Words: {0}": "Palavras: {0}",
"Insert": "Inserir", "Insert": "Inserir",
"File": "Ficheiro", "File": "Ficheiro",

@ -1,8 +1,11 @@
tinymce.addI18n('ro',{ tinymce.addI18n('ro',{
"Cut": "Decupeaz\u0103", "Cut": "Decupeaz\u0103",
"Heading 5": "Titlu 5",
"Header 2": "Antet 2", "Header 2": "Antet 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Browserul dumneavoastr\u0103 nu support\u0103 acces direct la clipboard. Folosi\u0163i combina\u0163ile de tastatur\u0103 Ctrl+X\/C\/V.", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Browserul dumneavoastr\u0103 nu support\u0103 acces direct la clipboard. Folosi\u0163i combina\u0163ile de tastatur\u0103 Ctrl+X\/C\/V.",
"Heading 4": "Titlu 4",
"Div": "Div", "Div": "Div",
"Heading 2": "Titlu 2",
"Paste": "Lipe\u015fte", "Paste": "Lipe\u015fte",
"Close": "\u00cenchide", "Close": "\u00cenchide",
"Font Family": "Font", "Font Family": "Font",
@ -11,6 +14,8 @@ tinymce.addI18n('ro',{
"New document": "Document nou", "New document": "Document nou",
"Blockquote": "Men\u0163iune bloc", "Blockquote": "Men\u0163iune bloc",
"Numbered list": "List\u0103 ordonat\u0103", "Numbered list": "List\u0103 ordonat\u0103",
"Heading 1": "Titlu 1",
"Headings": "Titluri",
"Increase indent": "Indenteaz\u0103", "Increase indent": "Indenteaz\u0103",
"Formats": "Formate", "Formats": "Formate",
"Headers": "Antete", "Headers": "Antete",
@ -34,6 +39,8 @@ tinymce.addI18n('ro',{
"Italic": "Italic", "Italic": "Italic",
"Align center": "Centrare", "Align center": "Centrare",
"Header 5": "Antet 5", "Header 5": "Antet 5",
"Heading 6": "Titlu 6",
"Heading 3": "Titlu 3",
"Decrease indent": "De-indenteaz\u0103", "Decrease indent": "De-indenteaz\u0103",
"Header 4": "Antet 4", "Header 4": "Antet 4",
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Functia \"lipe\u015fte\" este acum \u00een modul text simplu. Continutul va fi acum inserat ca text simplu p\u00e2n\u0103 c\u00e2nd aceast\u0103 op\u021biune va fi dezactivat.", "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Functia \"lipe\u015fte\" este acum \u00een modul text simplu. Continutul va fi acum inserat ca text simplu p\u00e2n\u0103 c\u00e2nd aceast\u0103 op\u021biune va fi dezactivat.",
@ -59,6 +66,7 @@ tinymce.addI18n('ro',{
"Restore last draft": "Restaurare la ultima salvare", "Restore last draft": "Restaurare la ultima salvare",
"Special character": "Caractere speciale", "Special character": "Caractere speciale",
"Source code": "Codul surs\u0103", "Source code": "Codul surs\u0103",
"Color": "Culoare",
"Right to left": "Dreapta la st\u00e2nga", "Right to left": "Dreapta la st\u00e2nga",
"Left to right": "St\u00e2nga la dreapta", "Left to right": "St\u00e2nga la dreapta",
"Emoticons": "Emoticoane", "Emoticons": "Emoticoane",
@ -121,11 +129,13 @@ tinymce.addI18n('ro',{
"Finish": "Finalizeaz\u0103", "Finish": "Finalizeaz\u0103",
"Ignore all": "Ignor\u0103 toate", "Ignore all": "Ignor\u0103 toate",
"Ignore": "Ignor\u0103", "Ignore": "Ignor\u0103",
"Add to Dictionary": "Adaug\u0103 \u00een Dic\u021bionar",
"Insert row before": "Insereaz\u0103 \u00eenainte de linie", "Insert row before": "Insereaz\u0103 \u00eenainte de linie",
"Rows": "Linii", "Rows": "Linii",
"Height": "\u00cen\u0103l\u0163ime", "Height": "\u00cen\u0103l\u0163ime",
"Paste row after": "Lipe\u015fte linie dup\u0103", "Paste row after": "Lipe\u015fte linie dup\u0103",
"Alignment": "Aliniament", "Alignment": "Aliniament",
"Border color": "Culoare bordur\u0103",
"Column group": "Grup de coloane", "Column group": "Grup de coloane",
"Row": "Linie", "Row": "Linie",
"Insert column before": "Insereaza \u00eenainte de coloan\u0103", "Insert column before": "Insereaza \u00eenainte de coloan\u0103",
@ -141,15 +151,20 @@ tinymce.addI18n('ro',{
"Paste row before": "Lipe\u015fte \u00eenainte de linie", "Paste row before": "Lipe\u015fte \u00eenainte de linie",
"Scope": "Domeniu", "Scope": "Domeniu",
"Delete table": "\u0218terge tabel\u0103", "Delete table": "\u0218terge tabel\u0103",
"H Align": "Aliniere H",
"Top": "Sus",
"Header cell": "Antet celul\u0103", "Header cell": "Antet celul\u0103",
"Column": "Coloan\u0103", "Column": "Coloan\u0103",
"Row group": "Grup de linii",
"Cell": "Celul\u0103", "Cell": "Celul\u0103",
"Header": "Antet", "Middle": "Mijloc",
"Cell type": "Tip celul\u0103", "Cell type": "Tip celul\u0103",
"Copy row": "Copiaz\u0103 linie", "Copy row": "Copiaz\u0103 linie",
"Row properties": "Propriet\u0103\u021bi linie", "Row properties": "Propriet\u0103\u021bi linie",
"Table properties": "Propriet\u0103\u021bi tabel\u0103", "Table properties": "Propriet\u0103\u021bi tabel\u0103",
"Row group": "Grup de linii", "Bottom": "Jos",
"V Align": "Aliniere V",
"Header": "Antet",
"Right": "Dreapta", "Right": "Dreapta",
"Insert column after": "Insereaza dup\u0103 coloan\u0103", "Insert column after": "Insereaza dup\u0103 coloan\u0103",
"Cols": "Coloane", "Cols": "Coloane",
@ -164,6 +179,9 @@ tinymce.addI18n('ro',{
"Insert template": "Insereaz\u0103 \u0219ablon", "Insert template": "Insereaz\u0103 \u0219ablon",
"Templates": "\u015eabloane", "Templates": "\u015eabloane",
"Background color": "Culoare fundal", "Background color": "Culoare fundal",
"Custom...": "Personalizat...",
"Custom color": "Culoare personalizat\u0103",
"No color": "F\u0103r\u0103 culoare",
"Text color": "Culoare text", "Text color": "Culoare text",
"Show blocks": "Afi\u0219are blocuri", "Show blocks": "Afi\u0219are blocuri",
"Show invisible characters": "Afi\u0219are caractere invizibile", "Show invisible characters": "Afi\u0219are caractere invizibile",

@ -66,6 +66,7 @@ tinymce.addI18n('sk',{
"Restore last draft": "Obnovi\u0165 posledn\u00fd koncept", "Restore last draft": "Obnovi\u0165 posledn\u00fd koncept",
"Special character": "\u0160peci\u00e1lny znak", "Special character": "\u0160peci\u00e1lny znak",
"Source code": "Zdrojov\u00fd k\u00f3d", "Source code": "Zdrojov\u00fd k\u00f3d",
"Color": "Farba",
"Right to left": "Sprava do\u013eava", "Right to left": "Sprava do\u013eava",
"Left to right": "Z\u013eava doprava", "Left to right": "Z\u013eava doprava",
"Emoticons": "Smajl\u00edci", "Emoticons": "Smajl\u00edci",
@ -128,11 +129,13 @@ tinymce.addI18n('sk',{
"Finish": "Dokon\u010di\u0165", "Finish": "Dokon\u010di\u0165",
"Ignore all": "Ignorova\u0165 v\u0161etko", "Ignore all": "Ignorova\u0165 v\u0161etko",
"Ignore": "Ignorova\u0165", "Ignore": "Ignorova\u0165",
"Add to Dictionary": "Prida\u0165 do slovn\u00edka",
"Insert row before": "Vlo\u017ei\u0165 nov\u00fd riadok pred", "Insert row before": "Vlo\u017ei\u0165 nov\u00fd riadok pred",
"Rows": "Riadky", "Rows": "Riadky",
"Height": "V\u00fd\u0161ka", "Height": "V\u00fd\u0161ka",
"Paste row after": "Vlo\u017ei\u0165 riadok za", "Paste row after": "Vlo\u017ei\u0165 riadok za",
"Alignment": "Zarovnanie", "Alignment": "Zarovnanie",
"Border color": "Farba or\u00e1movania",
"Column group": "Skupina st\u013apcov", "Column group": "Skupina st\u013apcov",
"Row": "Riadok", "Row": "Riadok",
"Insert column before": "Prida\u0165 nov\u00fd st\u013apec pred", "Insert column before": "Prida\u0165 nov\u00fd st\u013apec pred",
@ -176,6 +179,9 @@ tinymce.addI18n('sk',{
"Insert template": "Vlo\u017ei\u0165 \u0161abl\u00f3nu", "Insert template": "Vlo\u017ei\u0165 \u0161abl\u00f3nu",
"Templates": "\u0160abl\u00f3ny", "Templates": "\u0160abl\u00f3ny",
"Background color": "Farba pozadia", "Background color": "Farba pozadia",
"Custom...": "Vlastn\u00e1...",
"Custom color": "Vlastn\u00e1 farba",
"No color": "Bez farby",
"Text color": "Farba textu", "Text color": "Farba textu",
"Show blocks": "Zobrazi\u0165 bloky", "Show blocks": "Zobrazi\u0165 bloky",
"Show invisible characters": "Zobrazi\u0165 skryt\u00e9 znaky", "Show invisible characters": "Zobrazi\u0165 skryt\u00e9 znaky",

@ -66,6 +66,7 @@ tinymce.addI18n('uk',{
"Restore last draft": "\u0412\u0456\u0434\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443", "Restore last draft": "\u0412\u0456\u0434\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043e\u0441\u0442\u0430\u043d\u043d\u044c\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443",
"Special character": "\u0421\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0438", "Special character": "\u0421\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0438",
"Source code": "\u0412\u0438\u0445\u0456\u0434\u043d\u0438\u0439 \u043a\u043e\u0434", "Source code": "\u0412\u0438\u0445\u0456\u0434\u043d\u0438\u0439 \u043a\u043e\u0434",
"Color": "\u043a\u043e\u043b\u0456\u0440",
"Right to left": "\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0456\u0432\u043e", "Right to left": "\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0456\u0432\u043e",
"Left to right": "\u0417\u043b\u0456\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e", "Left to right": "\u0417\u043b\u0456\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e",
"Emoticons": "\u0415\u043c\u043e\u0446\u0456\u0457", "Emoticons": "\u0415\u043c\u043e\u0446\u0456\u0457",
@ -128,11 +129,13 @@ tinymce.addI18n('uk',{
"Finish": "\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438", "Finish": "\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438",
"Ignore all": "\u0406\u0433\u043d\u043e\u0440\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0435", "Ignore all": "\u0406\u0433\u043d\u043e\u0440\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0435",
"Ignore": "\u0406\u0433\u043d\u043e\u0440\u0443\u0432\u0430\u0442\u0438", "Ignore": "\u0406\u0433\u043d\u043e\u0440\u0443\u0432\u0430\u0442\u0438",
"Add to Dictionary": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0434\u043e \u0421\u043b\u043e\u0432\u043d\u0438\u043a\u0430",
"Insert row before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443", "Insert row before": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u0440\u044f\u0434\u043e\u043a \u0437\u0432\u0435\u0440\u0445\u0443",
"Rows": "\u0420\u044f\u0434\u043a\u0438", "Rows": "\u0420\u044f\u0434\u043a\u0438",
"Height": "\u0412\u0438\u0441\u043e\u0442\u0430", "Height": "\u0412\u0438\u0441\u043e\u0442\u0430",
"Paste row after": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443", "Paste row after": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a \u0437\u043d\u0438\u0437\u0443",
"Alignment": "\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f", "Alignment": "\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",
"Border color": "\u043a\u043e\u043b\u0456\u0440 \u0440\u0430\u043c\u043a\u0438",
"Column group": "\u0413\u0440\u0443\u043f\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432", "Column group": "\u0413\u0440\u0443\u043f\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432",
"Row": "\u0420\u044f\u0434\u043e\u043a", "Row": "\u0420\u044f\u0434\u043e\u043a",
"Insert column before": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043b\u0456\u0432\u043e\u0440\u0443\u0447", "Insert column before": "\u0414\u043e\u0434\u0430\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u043b\u0456\u0432\u043e\u0440\u0443\u0447",
@ -176,6 +179,9 @@ tinymce.addI18n('uk',{
"Insert template": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d", "Insert template": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d",
"Templates": "\u0428\u0430\u0431\u043b\u043e\u043d\u0438", "Templates": "\u0428\u0430\u0431\u043b\u043e\u043d\u0438",
"Background color": "\u041a\u043e\u043b\u0456\u0440 \u0444\u043e\u043d\u0443", "Background color": "\u041a\u043e\u043b\u0456\u0440 \u0444\u043e\u043d\u0443",
"Custom...": "\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044c\u043a\u0438\u0439",
"Custom color": "\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044c\u043a\u0438\u0439 \u043a\u043e\u043b\u0456\u0440",
"No color": "\u0431\u0435\u0437 \u043a\u043e\u043b\u044c\u043e\u0440\u0443",
"Text color": "\u041a\u043e\u043b\u0456\u0440 \u0442\u0435\u043a\u0441\u0442\u0443", "Text color": "\u041a\u043e\u043b\u0456\u0440 \u0442\u0435\u043a\u0441\u0442\u0443",
"Show blocks": "\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u0431\u043b\u043e\u043a\u0438", "Show blocks": "\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u0431\u043b\u043e\u043a\u0438",
"Show invisible characters": "\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0438", "Show invisible characters": "\u041f\u043e\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0438",

@ -66,6 +66,7 @@ tinymce.addI18n('vi_VN',{
"Restore last draft": "Ph\u1ee5c h\u1ed3i b\u1ea3n l\u01b0u g\u1ea7n nh\u1ea5t", "Restore last draft": "Ph\u1ee5c h\u1ed3i b\u1ea3n l\u01b0u g\u1ea7n nh\u1ea5t",
"Special character": "K\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t", "Special character": "K\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t",
"Source code": "M\u00e3 ngu\u1ed3n", "Source code": "M\u00e3 ngu\u1ed3n",
"Color": "M\u00e0u",
"Right to left": "Ph\u1ea3i sang tr\u00e1i", "Right to left": "Ph\u1ea3i sang tr\u00e1i",
"Left to right": "Tr\u00e1i sang ph\u1ea3i", "Left to right": "Tr\u00e1i sang ph\u1ea3i",
"Emoticons": "Bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac", "Emoticons": "Bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac",
@ -128,11 +129,13 @@ tinymce.addI18n('vi_VN',{
"Finish": "Ho\u00e0n t\u1ea5t", "Finish": "Ho\u00e0n t\u1ea5t",
"Ignore all": "L\u1edd t\u1ea5t c\u1ea3", "Ignore all": "L\u1edd t\u1ea5t c\u1ea3",
"Ignore": "L\u1edd qua", "Ignore": "L\u1edd qua",
"Add to Dictionary": "Th\u00eam v\u00e0o t\u1eeb \u0111i\u1ec3n",
"Insert row before": "Th\u00eam d\u00f2ng ph\u00eda tr\u00ean", "Insert row before": "Th\u00eam d\u00f2ng ph\u00eda tr\u00ean",
"Rows": "D\u00f2ng", "Rows": "D\u00f2ng",
"Height": "Cao", "Height": "Cao",
"Paste row after": "D\u00e1n v\u00e0o ph\u00eda sau, d\u01b0\u1edbi", "Paste row after": "D\u00e1n v\u00e0o ph\u00eda sau, d\u01b0\u1edbi",
"Alignment": "Canh ch\u1ec9nh", "Alignment": "Canh ch\u1ec9nh",
"Border color": "M\u00e0u vi\u1ec1n",
"Column group": "Nh\u00f3m c\u1ed9t", "Column group": "Nh\u00f3m c\u1ed9t",
"Row": "D\u00f2ng", "Row": "D\u00f2ng",
"Insert column before": "Th\u00eam c\u1ed9t b\u00ean tr\u00e1i", "Insert column before": "Th\u00eam c\u1ed9t b\u00ean tr\u00e1i",
@ -176,6 +179,9 @@ tinymce.addI18n('vi_VN',{
"Insert template": "Th\u00eam m\u1eabu", "Insert template": "Th\u00eam m\u1eabu",
"Templates": "M\u1eabu", "Templates": "M\u1eabu",
"Background color": "M\u00e0u n\u1ec1n", "Background color": "M\u00e0u n\u1ec1n",
"Custom...": "T\u00f9y ch\u1ecdn...",
"Custom color": "M\u00e0u t\u00f9y ch\u1ecdn",
"No color": "Kh\u00f4ng m\u00e1u",
"Text color": "M\u00e0u ch\u1eef", "Text color": "M\u00e0u ch\u1eef",
"Show blocks": "Hi\u1ec3n th\u1ecb kh\u1ed1i", "Show blocks": "Hi\u1ec3n th\u1ecb kh\u1ed1i",
"Show invisible characters": "Hi\u1ec3n th\u1ecb c\u00e1c k\u00fd t\u1ef1 \u1ea9n", "Show invisible characters": "Hi\u1ec3n th\u1ecb c\u00e1c k\u00fd t\u1ef1 \u1ea9n",

@ -66,6 +66,7 @@ tinymce.addI18n('zh_CN',{
"Restore last draft": "\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f", "Restore last draft": "\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f",
"Special character": "\u7279\u6b8a\u7b26\u53f7", "Special character": "\u7279\u6b8a\u7b26\u53f7",
"Source code": "\u6e90\u4ee3\u7801", "Source code": "\u6e90\u4ee3\u7801",
"Color": "\u989c\u8272",
"Right to left": "\u4ece\u53f3\u5230\u5de6", "Right to left": "\u4ece\u53f3\u5230\u5de6",
"Left to right": "\u4ece\u5de6\u5230\u53f3", "Left to right": "\u4ece\u5de6\u5230\u53f3",
"Emoticons": "\u8868\u60c5", "Emoticons": "\u8868\u60c5",
@ -128,11 +129,13 @@ tinymce.addI18n('zh_CN',{
"Finish": "\u5b8c\u6210", "Finish": "\u5b8c\u6210",
"Ignore all": "\u5168\u90e8\u5ffd\u7565", "Ignore all": "\u5168\u90e8\u5ffd\u7565",
"Ignore": "\u5ffd\u7565", "Ignore": "\u5ffd\u7565",
"Add to Dictionary": "\u6dfb\u52a0\u5230\u5b57\u5178",
"Insert row before": "\u5728\u4e0a\u65b9\u63d2\u5165", "Insert row before": "\u5728\u4e0a\u65b9\u63d2\u5165",
"Rows": "\u884c", "Rows": "\u884c",
"Height": "\u9ad8", "Height": "\u9ad8",
"Paste row after": "\u7c98\u8d34\u5230\u4e0b\u65b9", "Paste row after": "\u7c98\u8d34\u5230\u4e0b\u65b9",
"Alignment": "\u5bf9\u9f50\u65b9\u5f0f", "Alignment": "\u5bf9\u9f50\u65b9\u5f0f",
"Border color": "\u8fb9\u6846\u989c\u8272",
"Column group": "\u5217\u7ec4", "Column group": "\u5217\u7ec4",
"Row": "\u884c", "Row": "\u884c",
"Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165", "Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165",
@ -149,17 +152,17 @@ tinymce.addI18n('zh_CN',{
"Scope": "\u8303\u56f4", "Scope": "\u8303\u56f4",
"Delete table": "\u5220\u9664\u8868\u683c", "Delete table": "\u5220\u9664\u8868\u683c",
"H Align": "\u6c34\u5e73\u5bf9\u9f50", "H Align": "\u6c34\u5e73\u5bf9\u9f50",
"Top": "\u4e0a", "Top": "\u9876\u90e8\u5bf9\u9f50",
"Header cell": "\u8868\u5934\u5355\u5143\u683c", "Header cell": "\u8868\u5934\u5355\u5143\u683c",
"Column": "\u5217", "Column": "\u5217",
"Row group": "\u884c\u7ec4", "Row group": "\u884c\u7ec4",
"Cell": "\u5355\u5143\u683c", "Cell": "\u5355\u5143\u683c",
"Middle": "\u5c45\u4e2d", "Middle": "\u5782\u76f4\u5c45\u4e2d",
"Cell type": "\u5355\u5143\u683c\u7c7b\u578b", "Cell type": "\u5355\u5143\u683c\u7c7b\u578b",
"Copy row": "\u590d\u5236\u884c", "Copy row": "\u590d\u5236\u884c",
"Row properties": "\u884c\u5c5e\u6027", "Row properties": "\u884c\u5c5e\u6027",
"Table properties": "\u8868\u683c\u5c5e\u6027", "Table properties": "\u8868\u683c\u5c5e\u6027",
"Bottom": "\u4f4e\u7aef", "Bottom": "\u5e95\u90e8\u5bf9\u9f50",
"V Align": "\u5782\u76f4\u5bf9\u9f50", "V Align": "\u5782\u76f4\u5bf9\u9f50",
"Header": "\u8868\u5934", "Header": "\u8868\u5934",
"Right": "\u53f3\u5bf9\u9f50", "Right": "\u53f3\u5bf9\u9f50",
@ -176,6 +179,9 @@ tinymce.addI18n('zh_CN',{
"Insert template": "\u63d2\u5165\u6a21\u677f", "Insert template": "\u63d2\u5165\u6a21\u677f",
"Templates": "\u6a21\u677f", "Templates": "\u6a21\u677f",
"Background color": "\u80cc\u666f\u8272", "Background color": "\u80cc\u666f\u8272",
"Custom...": "\u81ea\u5b9a\u4e49...",
"Custom color": "\u81ea\u5b9a\u4e49\u989c\u8272",
"No color": "\u65e0",
"Text color": "\u6587\u5b57\u989c\u8272", "Text color": "\u6587\u5b57\u989c\u8272",
"Show blocks": "\u663e\u793a\u533a\u5757\u8fb9\u6846", "Show blocks": "\u663e\u793a\u533a\u5757\u8fb9\u6846",
"Show invisible characters": "\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26", "Show invisible characters": "\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26",

@ -1 +1 @@
tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var o,l=t.dom,a=t.selection;o=l.getParent(a.getNode(),"ol,ul"),o&&o.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?i[e]:n,i[e]=n,o=l.getParent(a.getNode(),"ol,ul"),o&&(l.setStyle(o,"listStyleType",n),o.removeAttribute("data-mce-style")),t.focus()}function o(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var l,a,i={};l=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:l,onshow:o,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:o,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})}); tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var o,l=t.dom,a=t.selection;o=l.getParent(a.getNode(),"ol,ul"),o&&o.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?i[e]:n,i[e]=n,o=l.getParent(a.getNode(),"ol,ul"),o&&n&&(l.setStyle(o,"listStyleType",n),o.removeAttribute("data-mce-style")),t.focus()}function o(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var l,a,i={};l=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:l,onshow:o,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:o,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})});

@ -1 +1 @@
tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode();n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:e.name||e.id},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})}); tinymce.PluginManager.add("anchor",function(n){function e(){var e=n.selection.getNode(),t="";"A"==e.tagName&&(t=e.name||e.id||""),n.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t},onsubmit:function(e){n.execCommand("mceInsertContent",!1,n.dom.createHTML("a",{id:e.data.name}))}})}n.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:e,stateSelector:"a:not([href])"}),n.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:e})});

@ -1 +1 @@
tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function i(n){var s,r,g,u,l,m,h,d,f=tinymce.DOM;if(r=e.getDoc()){if(g=r.body,u=r.documentElement,l=o.autoresize_min_height,!g||n&&"setcontent"===n.type&&n.initial||t())return void(g&&u&&(g.style.overflowY="auto",u.style.overflowY="auto"));h=e.dom.getStyle(g,"margin-top",!0),d=e.dom.getStyle(g,"margin-bottom",!0),m=g.offsetHeight+parseInt(h,10)+parseInt(d,10),(isNaN(m)||0>=m)&&(m=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),m>o.autoresize_min_height&&(l=m),o.autoresize_max_height&&m>o.autoresize_max_height?(l=o.autoresize_max_height,g.style.overflowY="auto",u.style.overflowY="auto"):(g.style.overflowY="hidden",u.style.overflowY="hidden",g.scrollTop=0),l!==a&&(s=l-a,f.setStyle(f.get(e.id+"_ifr"),"height",l+"px"),a=l,tinymce.isWebKit&&0>s&&i(n))}}function n(e,t,o){setTimeout(function(){i({}),e--?n(e,t,o):o&&o()},t)}var o=e.settings,a=0;e.settings.inline||(o.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),o.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("nodechange setcontent keyup FullscreenStateChanged",i),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){n(20,100,function(){n(5,1e3)})}),e.addCommand("mceAutoResize",i))}); tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function i(o){var r,s,g,m,l,d,u,h,f,c,_,p,y=tinymce.DOM;if(s=e.getDoc()){if(g=s.body,m=s.documentElement,l=n.autoresize_min_height,!g||o&&"setcontent"===o.type&&o.initial||t())return void(g&&m&&(g.style.overflowY="auto",m.style.overflowY="auto"));u=e.dom.getStyle(g,"margin-top",!0),h=e.dom.getStyle(g,"margin-bottom",!0),f=e.dom.getStyle(g,"padding-top",!0),c=e.dom.getStyle(g,"padding-bottom",!0),_=e.dom.getStyle(g,"border-top-width",!0),p=e.dom.getStyle(g,"border-bottom-width",!0),d=g.offsetHeight+parseInt(u,10)+parseInt(h,10)+parseInt(f,10)+parseInt(c,10)+parseInt(_,10)+parseInt(p,10),(isNaN(d)||0>=d)&&(d=tinymce.Env.ie?g.scrollHeight:tinymce.Env.webkit&&0===g.clientHeight?0:g.offsetHeight),d>n.autoresize_min_height&&(l=d),n.autoresize_max_height&&d>n.autoresize_max_height?(l=n.autoresize_max_height,g.style.overflowY="auto",m.style.overflowY="auto"):(g.style.overflowY="hidden",m.style.overflowY="hidden",g.scrollTop=0),l!==a&&(r=l-a,y.setStyle(e.iframeElement,"height",l+"px"),a=l,tinymce.isWebKit&&0>r&&i(o))}}function o(e,t,n){setTimeout(function(){i({}),e--?o(e,t,n):n&&n()},t)}var n=e.settings,a=0;e.settings.inline||(n.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),n.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t=e.getParam("autoresize_overflow_padding",1);e.dom.setStyles(e.getBody(),{paddingBottom:e.getParam("autoresize_bottom_margin",50),paddingLeft:t,paddingRight:t})}),e.on("nodechange setcontent keyup FullscreenStateChanged",i),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){o(20,100,function(){o(5,1e3)})}),e.addCommand("mceAutoResize",i))});

@ -1 +1 @@
tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(l.getItem(d+"time"),10)||0;return(new Date).getTime()-e>v.autosave_retention?(a(!1),!1):!0}function a(t){l.removeItem(d+"draft"),l.removeItem(d+"time"),t!==!1&&e.fire("RemoveDraft")}function r(){!c()&&e.isDirty()&&(l.setItem(d+"draft",e.getContent({format:"raw",no_events:!0})),l.setItem(d+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(l.getItem(d+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function i(){m||(setInterval(function(){e.removed||r()},v.autosave_interval),m=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),i()}function u(){e.undoManager.beforeChange(),o(),a(),e.undoManager.add()}function f(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e}function c(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>(( |&nbsp;|[ ]|<br[^>]*>)+?|)</"+n+">|<br>$","i").test(t)}var d,m,v=e.settings,l=tinymce.util.LocalStorage;d=v.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",d=d.replace(/\{path\}/g,document.location.pathname),d=d.replace(/\{query\}/g,document.location.search),d=d.replace(/\{id\}/g,e.id),v.autosave_interval=t(v.autosave_interval,"30s"),v.autosave_retention=t(v.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:u,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:u,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&c()&&o()}),e.on("saveContent",function(){a()})),window.onbeforeunload=f,this.hasDraft=n,this.storeDraft=r,this.restoreDraft=o,this.removeDraft=a,this.isEmpty=c}); tinymce._beforeUnloadHandler=function(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e},tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(v.getItem(c+"time"),10)||0;return(new Date).getTime()-e>m.autosave_retention?(a(!1),!1):!0}function a(t){v.removeItem(c+"draft"),v.removeItem(c+"time"),t!==!1&&e.fire("RemoveDraft")}function r(){!f()&&e.isDirty()&&(v.setItem(c+"draft",e.getContent({format:"raw",no_events:!0})),v.setItem(c+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(v.getItem(c+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function i(){d||(setInterval(function(){e.removed||r()},m.autosave_interval),d=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),i()}function u(){e.undoManager.beforeChange(),o(),a(),e.undoManager.add()}function f(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>(( |&nbsp;|[ ]|<br[^>]*>)+?|)</"+n+">|<br>$","i").test(t)}var c,d,m=e.settings,v=tinymce.util.LocalStorage;c=m.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",c=c.replace(/\{path\}/g,document.location.pathname),c=c.replace(/\{query\}/g,document.location.search),c=c.replace(/\{id\}/g,e.id),m.autosave_interval=t(m.autosave_interval,"30s"),m.autosave_retention=t(m.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:u,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:u,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&f()&&o()}),e.on("saveContent",function(){a()})),window.onbeforeunload=tinymce._beforeUnloadHandler,this.hasDraft=n,this.storeDraft=r,this.restoreDraft=o,this.removeDraft=a,this.isEmpty=f});

@ -1 +1 @@
tinymce.PluginManager.add("contextmenu",function(e){var n,t=e.settings.contextmenu_never_use_native;e.on("contextmenu",function(i){var o;if(!i.ctrlKey||t){if(i.preventDefault(),o=e.settings.contextmenu||"link image inserttable | cell row column deletetable",n)n.show();else{var c=[];tinymce.each(o.split(/[ ,]/),function(n){var t=e.menuItems[n];"|"==n&&(t={text:n}),t&&(t.shortcut="",c.push(t))});for(var a=0;a<c.length;a++)"|"==c[a].text&&(0===a||a==c.length-1)&&c.splice(a,1);n=new tinymce.ui.Menu({items:c,context:"contextmenu"}).addClass("contextmenu").renderTo(),e.on("remove",function(){n.remove(),n=null})}var l={x:i.pageX,y:i.pageY};e.inline||(l=tinymce.DOM.getPos(e.getContentAreaContainer()),l.x+=i.clientX,l.y+=i.clientY),n.moveTo(l.x,l.y)}})}); tinymce.PluginManager.add("contextmenu",function(e){var t,n=e.settings.contextmenu_never_use_native;e.on("contextmenu",function(o){var i,c=e.getDoc();if(!o.ctrlKey||n){if(o.preventDefault(),tinymce.Env.mac&&tinymce.Env.webkit&&2==o.button&&c.caretRangeFromPoint&&e.selection.setRng(c.caretRangeFromPoint(o.x,o.y)),i=e.settings.contextmenu||"link image inserttable | cell row column deletetable",t)t.show();else{var a=[];tinymce.each(i.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"==t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var r=0;r<a.length;r++)"|"==a[r].text&&(0===r||r==a.length-1)&&a.splice(r,1);t=new tinymce.ui.Menu({items:a,context:"contextmenu"}).addClass("contextmenu").renderTo(),e.on("remove",function(){t.remove(),t=null})}var m={x:o.pageX,y:o.pageY};e.inline||(m=tinymce.DOM.getPos(e.getContentAreaContainer()),m.x+=o.clientX,m.y+=o.clientY),t.moveTo(m.x,m.y)}})});

File diff suppressed because one or more lines are too long

@ -1 +1 @@
!function(e){e.on("AddEditor",function(e){e.editor.settings.inline_styles=!1}),e.PluginManager.add("legacyoutput",function(t){t.on("init",function(){var i="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",n=e.explode(t.settings.font_size_style_values),l=t.schema;t.formatter.register({alignleft:{selector:i,attributes:{align:"left"}},aligncenter:{selector:i,attributes:{align:"center"}},alignright:{selector:i,attributes:{align:"right"}},alignjustify:{selector:i,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(t){return e.inArray(n,t.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}}),e.each("b,i,u,strike".split(","),function(e){l.addValidElements(e+"[*]")}),l.getElementRule("font")||l.addValidElements("font[face|size|color|style]"),e.each(i.split(","),function(e){var t=l.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})})})}(tinymce); !function(e){e.on("AddEditor",function(e){e.editor.settings.inline_styles=!1}),e.PluginManager.add("legacyoutput",function(t,n,i){t.on("init",function(){var n="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",i=e.explode(t.settings.font_size_style_values),a=t.schema;t.formatter.register({alignleft:{selector:n,attributes:{align:"left"}},aligncenter:{selector:n,attributes:{align:"center"}},alignright:{selector:n,attributes:{align:"right"}},alignjustify:{selector:n,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(t){return e.inArray(i,t.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}}),e.each("b,i,u,strike".split(","),function(e){a.addValidElements(e+"[*]")}),a.getElementRule("font")||a.addValidElements("font[face|size|color|style]"),e.each(n.split(","),function(e){var t=a.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})}),t.addButton("fontsizeselect",function(){var e=[],n="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7",i=t.settings.fontsize_formats||n;return t.$.each(i.split(" "),function(t,n){var i=n,a=n,o=n.split("=");o.length>1&&(i=o[0],a=o[1]),e.push({text:i,value:a})}),{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:e,fixedWidth:!0,onPostRender:function(){var e=this;t.on("NodeChange",function(){var n;n=t.dom.getParent(t.selection.getNode(),"font"),e.value(n?n.size:"")})},onclick:function(e){e.control.settings.value&&t.execCommand("FontSize",!1,e.control.settings.value)}}}),t.addButton("fontselect",function(){function e(e){e=e.replace(/;$/,"").split(";");for(var t=e.length;t--;)e[t]=e[t].split("=");return e}var n="Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",a=[],o=e(t.settings.font_formats||n);return i.each(o,function(e,t){a.push({text:{raw:t[0]},value:t[1],textStyle:-1==t[1].indexOf("dings")?"font-family:"+t[1]:""})}),{type:"listbox",text:"Font Family",tooltip:"Font Family",values:a,fixedWidth:!0,onPostRender:function(){var e=this;t.on("NodeChange",function(){var n;n=t.dom.getParent(t.selection.getNode(),"font"),e.value(n?n.face:"")})},onselect:function(e){e.control.settings.value&&t.execCommand("FontName",!1,e.control.settings.value)}}})})}(tinymce);

File diff suppressed because one or more lines are too long

@ -1 +1 @@
tinymce.PluginManager.add("nonbreaking",function(n){var e=n.getParam("nonbreaking_force_tab");if(n.addCommand("mceNonBreaking",function(){n.insertContent(n.plugins.visualchars&&n.plugins.visualchars.state?'<span class="mce-nbsp">&nbsp;</span>':"&nbsp;"),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),n.addButton("nonbreaking",{title:"Insert nonbreaking space",cmd:"mceNonBreaking"}),n.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),e){var a=+e>1?+e:3;n.on("keydown",function(e){if(9==e.keyCode){if(e.shiftKey)return;e.preventDefault();for(var t=0;a>t;t++)n.execCommand("mceNonBreaking")}})}}); tinymce.PluginManager.add("nonbreaking",function(n){var e=n.getParam("nonbreaking_force_tab");if(n.addCommand("mceNonBreaking",function(){n.insertContent(n.plugins.visualchars&&n.plugins.visualchars.state?'<span class="mce-nbsp">&nbsp;</span>':"&nbsp;"),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),n.addButton("nonbreaking",{title:"Nonbreaking space",cmd:"mceNonBreaking"}),n.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),e){var a=+e>1?+e:3;n.on("keydown",function(e){if(9==e.keyCode){if(e.shiftKey)return;e.preventDefault();for(var t=0;a>t;t++)n.execCommand("mceNonBreaking")}})}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
tinymce.PluginManager.add("textcolor",function(t){function e(e){var o;return t.dom.getParents(t.selection.getStart(),function(t){var r;(r=t.style["forecolor"==e?"color":"background-color"])&&(o=r)}),o}function o(){var e,o,r=[];for(o=t.settings.textcolor_map||["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],e=0;e<o.length;e+=2)r.push({text:o[e+1],color:"#"+o[e]});return r}function r(){function e(t,e){var o="transparent"==t;return'<td class="mce-grid-cell'+(o?" mce-colorbtn-trans":"")+'"><div id="'+F+"-"+m++ +'" data-mce-color="'+(t?t:"")+'" role="option" tabIndex="-1" style="'+(t?"background-color: "+t:"")+'" title="'+e+'">'+(o?"&#215;":"")+"</div></td>"}var r,l,a,n,c,d,u,g=this,F=g._id,m=0;for(r=o(),r.push({text:"No color",color:"transparent"}),a='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',n=r.length-1,d=0;s>d;d++){for(a+="<tr>",c=0;i>c;c++)u=d*i+c,u>n?a+="<td></td>":(l=r[u],a+=e(l.color,l.text));a+="</tr>"}if(t.settings.color_picker_callback){for(a+='<tr><td colspan="'+i+'" class="mce-custom-color-btn"><div id="'+F+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+F+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">Custom...</button></div></td></tr>',a+="<tr>",c=0;i>c;c++)a+=e("","Custom color");a+="</tr>"}return a+="</tbody></table>"}function l(e,o){t.focus(),t.formatter.apply(e,{value:o}),t.nodeChanged()}function a(e){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()}function n(o){function r(t){s.hidePanel(),s.color(t),l(s.settings.format,t)}function n(t,e){t.style.background=e,t.setAttribute("data-mce-color",e)}var c,s=this.parent();if(tinymce.DOM.getParent(o.target,".mce-custom-color-btn")&&(s.hidePanel(),t.settings.color_picker_callback.call(t,function(t){var e,o,l,a=s.panel.getEl().getElementsByTagName("table")[0];for(e=tinymce.map(a.rows[a.rows.length-1].childNodes,function(t){return t.firstChild}),l=0;l<e.length&&(o=e[l],o.getAttribute("data-mce-color"));l++);if(l==i)for(l=0;i-1>l;l++)n(e[l],e[l+1].getAttribute("data-mce-color"));n(o,t),r(t)},e(s.settings.format))),c=o.target.getAttribute("data-mce-color")){if(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),o.target.setAttribute("aria-selected",!0),this.lastId=o.target.id,"transparent"==c)return a(s.settings.format),void s.hidePanel();r(c)}else null!==c&&s.hidePanel()}function c(){var t=this;t._color&&l(t.settings.format,t._color)}var i,s;s=t.settings.textcolor_rows||5,i=t.settings.textcolor_cols||8,t.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{role:"application",ariaRemember:!0,html:r,onclick:n},onclick:c}),t.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{role:"application",ariaRemember:!0,html:r,onclick:n},onclick:c})}); tinymce.PluginManager.add("textcolor",function(t){function e(e){var o;return t.dom.getParents(t.selection.getStart(),function(t){var r;(r=t.style["forecolor"==e?"color":"background-color"])&&(o=r)}),o}function o(){var e,o,r=[];for(o=t.settings.textcolor_map||["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],e=0;e<o.length;e+=2)r.push({text:o[e+1],color:"#"+o[e]});return r}function r(){function e(t,e){var o="transparent"==t;return'<td class="mce-grid-cell'+(o?" mce-colorbtn-trans":"")+'"><div id="'+m+"-"+F++ +'" data-mce-color="'+(t?t:"")+'" role="option" tabIndex="-1" style="'+(t?"background-color: "+t:"")+'" title="'+tinymce.translate(e)+'">'+(o?"&#215;":"")+"</div></td>"}var r,l,a,n,c,d,u,g=this,m=g._id,F=0;for(r=o(),r.push({text:tinymce.translate("No color"),color:"transparent"}),a='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',n=r.length-1,d=0;s>d;d++){for(a+="<tr>",c=0;i>c;c++)u=d*i+c,u>n?a+="<td></td>":(l=r[u],a+=e(l.color,l.text));a+="</tr>"}if(t.settings.color_picker_callback){for(a+='<tr><td colspan="'+i+'" class="mce-custom-color-btn"><div id="'+m+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+m+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+tinymce.translate("Custom...")+"</button></div></td></tr>",a+="<tr>",c=0;i>c;c++)a+=e("","Custom color");a+="</tr>"}return a+="</tbody></table>"}function l(e,o){t.focus(),t.formatter.apply(e,{value:o}),t.nodeChanged()}function a(e){t.focus(),t.formatter.remove(e,{value:null},null,!0),t.nodeChanged()}function n(o){function r(t){s.hidePanel(),s.color(t),l(s.settings.format,t)}function n(t,e){t.style.background=e,t.setAttribute("data-mce-color",e)}var c,s=this.parent();if(tinymce.DOM.getParent(o.target,".mce-custom-color-btn")&&(s.hidePanel(),t.settings.color_picker_callback.call(t,function(t){var e,o,l,a=s.panel.getEl().getElementsByTagName("table")[0];for(e=tinymce.map(a.rows[a.rows.length-1].childNodes,function(t){return t.firstChild}),l=0;l<e.length&&(o=e[l],o.getAttribute("data-mce-color"));l++);if(l==i)for(l=0;i-1>l;l++)n(e[l],e[l+1].getAttribute("data-mce-color"));n(o,t),r(t)},e(s.settings.format))),c=o.target.getAttribute("data-mce-color")){if(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),o.target.setAttribute("aria-selected",!0),this.lastId=o.target.id,"transparent"==c)return a(s.settings.format),void s.hidePanel();r(c)}else null!==c&&s.hidePanel()}function c(){var t=this;t._color&&l(t.settings.format,t._color)}var i,s;s=t.settings.textcolor_rows||5,i=t.settings.textcolor_cols||8,t.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{role:"application",ariaRemember:!0,html:r,onclick:n},onclick:c}),t.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{role:"application",ariaRemember:!0,html:r,onclick:n},onclick:c})});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 B

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save