ckeditor-wordcount-plugin
Advanced tools
Comparing version 1.17.6 to 1.17.9
@@ -8,5 +8,2 @@ { | ||
"license": [ "MIT" ], | ||
"support": { | ||
"issues": "https://github.com/w8tcha/CKEditor-WordCount-Plugin/issues" | ||
}, | ||
"authors": [ | ||
@@ -13,0 +10,0 @@ { |
{ | ||
"name": "ckeditor-wordcount-plugin", | ||
"version": "1.17.6", | ||
"version": "1.17.9", | ||
"author": "w8tcha", | ||
@@ -8,22 +8,13 @@ "description": "WordCount Plugin for CKEditor Editor", | ||
"type": "git", | ||
"url": "git+https://github.com/w8tcha/CKEditor-WordCount-Plugin.git" | ||
"url": "https://github.com/w8tcha/CKEditor-WordCount-Plugin.git" | ||
}, | ||
"keywords": [ | ||
"ckeditor", | ||
"editor", | ||
"wysiwyg", | ||
"html", | ||
"richtext", | ||
"ckeditor", | ||
"editor", | ||
"wysiwyg", | ||
"html", | ||
"richtext", | ||
"text", | ||
"javascript" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/w8tcha/CKEditor-WordCount-Plugin/issues" | ||
}, | ||
"homepage": "https://github.com/w8tcha/CKEditor-WordCount-Plugin#readme", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"license": "ISC" | ||
] | ||
} |
@@ -10,3 +10,3 @@ CKEditor-WordCount-Plugin | ||
http://w8tcha.github.com/CKEditor-WordCount-Plugin/ | ||
http://w8tcha.github.io/CKEditor-WordCount-Plugin/ | ||
@@ -51,3 +51,6 @@ DISCLAIMER: This is a forked Version, i can not find the original Author anymore if anyone knows the original Author please contact me and i can include the Author in the Copyright Notices. | ||
// Whether or not you want to show the Paragraphs Count | ||
// Whether or not you Show Remaining Count (if Maximum Word/Char/Paragraphs Count is set) | ||
showRemaining: false, | ||
// Whether or not you want to show the Paragraphs Count | ||
showParagraphs: true, | ||
@@ -60,2 +63,5 @@ | ||
showCharCount: false, | ||
// Whether or not you want to Count Bytes as Characters (needed for Multibyte languages such as Korean and Chinese) | ||
countBytesAsChars: false, | ||
@@ -70,2 +76,8 @@ // Whether or not you want to count Spaces as Chars | ||
countLineBreaks: false, | ||
// Whether or not to prevent entering new Content when limit is reached. | ||
hardLimit: true, | ||
// Whether or not to to Warn only When limit is reached. Otherwise content above the limit will be deleted on paste or entering | ||
warnOnLimitOnly: false, | ||
@@ -72,0 +84,0 @@ // Maximum allowed Word Count, -1 is default for unlimited |
@@ -5,4 +5,7 @@ // Arabic Translation by Amine BENHAMIDA | ||
WordCount: 'كلمات:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'حروف:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'حروف مع إتش تي إم إل', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'فقرات', | ||
@@ -9,0 +12,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Paraules:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Caràcters:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Caràcters (including HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Paragraphs:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -5,12 +5,14 @@ /* | ||
*/ | ||
CKEDITOR.plugins.setLang('wordcount', 'cs', | ||
{ | ||
WordCount: 'Slov: ', | ||
CharCount: 'Znaků: ', | ||
CharCountWithHTML: 'Znaků (s HTML): ', | ||
Paragraphs: 'Odstavců: ', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
pasteWarning: 'Obsah nelze vložit', | ||
Selected: 'Výběr: ', | ||
title: 'Statistika' | ||
}); | ||
CKEDITOR.plugins.setLang('wordcount', 'cs', { | ||
WordCount: 'Slov: ', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Znaků: ', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Znaků (s HTML): ', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Odstavců: ', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
pasteWarning: 'Obsah nelze vložit', | ||
Selected: 'Výběr: ', | ||
title: 'Statistika' | ||
}); |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Ord:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Karakterer:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Karakterer (med HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Afsnit:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,9 +7,12 @@ /* | ||
WordCount: 'Wörter:', | ||
WordCountRemaining: 'Verbleibende Wörter', | ||
CharCount: 'Zeichen:', | ||
CharCountRemaining: 'Verbleibende Zeichen', | ||
CharCountWithHTML: 'Zeichen (inkl. HTML):', | ||
CharCountWithHTMLRemaining: 'Verbleibende Zeichen (inkl. HTML)', | ||
Paragraphs: 'Absätze:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
pasteWarning: 'Content can not be pasted because it is above the allowed limit', | ||
Selected: 'Selected: ', | ||
ParagraphsRemaining: 'Verbleibende Absätze', | ||
pasteWarning: 'Text kann nicht eingefügt werden. Text ist zu lang.', | ||
Selected: 'Ausgewählt: ', | ||
title: 'Statistik' | ||
}); |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Λέξεις:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Χαρακτήρες:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Χαρακτήρες (μαζί με HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Paragraphs:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,6 +7,9 @@ /* | ||
WordCount: 'Palabras:', | ||
CharCount: 'Carácteres:', | ||
CharCountWithHTML: 'Carácteres (con HTML):', | ||
WordCountRemaining: 'Palabras restantes', | ||
CharCount: 'Caracteres:', | ||
CharCountRemaining: 'Caracteres restantes', | ||
CharCountWithHTML: 'Caracteres (con HTML):', | ||
CharCountWithHTMLRemaining: 'Caracteres (con HTML) restantes', | ||
Paragraphs: 'Párrafos:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'Párrafos restantes', | ||
pasteWarning: 'El contenido no se puede pegar, ya que se encuentra fuera del límite permitido', | ||
@@ -13,0 +16,0 @@ Selected: 'Seleccionado: ', |
@@ -6,4 +6,8 @@ /* | ||
WordCount: 'لغت:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'کاراکتر:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'کاراکترها (با HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'پاراگراف:', | ||
@@ -10,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -8,4 +8,7 @@ /** | ||
WordCount: 'Sanoja:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Merkkejä:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Merkkejä (ml. HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Kappaleita:', | ||
@@ -12,0 +15,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -5,6 +5,9 @@ // French Translation by Nicolas M. et Pierre-Luc Auclair | ||
WordCount: 'Mots :', | ||
WordCountRemaining: 'mots restants', | ||
CharCount: 'Caractères :', | ||
CharCountRemaining: 'caractères restants', | ||
CharCountWithHTML: 'Caractères (incluant HTML) :', | ||
CharCountWithHTMLRemaining: 'caractères (avec HTML) restants', | ||
Paragraphs: 'Paragraphes :', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'paragraphes restants', | ||
pasteWarning: 'Le contenu ne peut pas être collé car il dépasse la limite autorisée', | ||
@@ -11,0 +14,0 @@ Selected: 'Sélectionné :', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'מילים:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'תווים:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'תווים (כולל HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'פסקאות:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: "Riječi:", | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: "Znakova:", | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: "Znakova (uključujući HTML):", | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: "Paragraphs:", | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: "Paragraphs remaining", |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Szavak:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Karakaterek:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Karakterek (HTML tagekkel):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Bekezdések:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -8,6 +8,9 @@ /* | ||
WordCount: 'Parole:', | ||
WordCountRemaining: 'Parole rimanenti', | ||
CharCount: 'Caratteri:', | ||
CharCountRemaining: 'Caratteri rimanenti', | ||
CharCountWithHTML: 'Caratteri (HTML incluso):', | ||
CharCountWithHTMLRemaining: 'Caratteri (con HTML) rimanenti', | ||
Paragraphs: 'Paragrafi:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'Paragrafi rimanenti', | ||
pasteWarning: 'Il contenuto non può essere incollato poiché supera il limite massimo di caratteri disponibili', | ||
@@ -14,0 +17,0 @@ Selected: 'Selezionato: ', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: '単語数:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: '文字数:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: '文字数 (HTMLタグを含む):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: '段落数:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,6 +7,9 @@ /* | ||
WordCount: 'Woorden:', | ||
WordCountRemaining: 'Resterende woorden', | ||
CharCount: 'Tekens:', | ||
CharCountRemaining: 'Resterende tekens', | ||
CharCountWithHTML: 'Tekens (inclusief HTML):', | ||
CharCountWithHTMLRemaining: 'Resterende tekens (met HTML)', | ||
Paragraphs: 'Paragrafen:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'Resterende paragrafen', | ||
pasteWarning: 'De tekst kan niet worden geplakt omdat de limiet is overschreden', | ||
@@ -13,0 +16,0 @@ Selected: 'Geselecteerd: ', |
// Norwegian translation by Vegard S. | ||
CKEDITOR.plugins.setLang('wordcount', 'no', { | ||
WordCount: 'Ord:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Tegn:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Tegn (including HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Paragraphs:', | ||
@@ -7,0 +10,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Słów:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Znaków:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Znaków (wraz z kodem HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Paragrafy:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Contagem de palavras:', | ||
CharCount: 'Contagem de carateres:', | ||
CharCountWithHTML: 'Carateres (incluindo HTML):', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Contagem de caracteres:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Caracteres (incluindo HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Parágrafos:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
CKEDITOR.plugins.setLang('wordcount', 'pt', { | ||
WordCount: 'Palavras:', | ||
WordCountRemaining: 'Palavras remanescentes', | ||
CharCount: 'Caracteres:', | ||
CharCountRemaining: 'Caracteres remanescentes', | ||
CharCountWithHTML: 'Carateres (incluindo HTML):', | ||
CharCountWithHTMLRemaining: 'Caracteres (com HTML) remanescentes', | ||
Paragraphs: 'Parágrafos:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'Parágrafos remanescentes', | ||
pasteWarning: 'O conteúdo não pode ser colado porque ultrapassa o limite permitido', | ||
@@ -8,0 +11,0 @@ Selected: 'Selecionado: ', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Слов:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Символов:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: ' (включая HTML-разметку):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Параграфов:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Параграфов осталось', |
@@ -6,11 +6,13 @@ /* | ||
CKEDITOR.plugins.setLang('wordcount', 'sk', { | ||
WordCount: 'Slov:', | ||
CharCount: 'Znakov:', | ||
CharCountWithHTML: 'Znakov (vrátane HTML):', | ||
WordCount: 'Slov:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Znakov:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Znakov (vrátane HTML):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Odstavcov:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
pasteWarning: 'Obsah sa nedá prilepiť.', | ||
Selected: 'Výber: ', | ||
title: 'Štatistika' | ||
}); | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
pasteWarning: 'Obsah sa nedá prilepiť.', | ||
Selected: 'Výber: ', | ||
title: 'Štatistika' | ||
}); |
@@ -7,7 +7,9 @@ /* | ||
WordCount: 'Ord:', | ||
WordCountRemaining: 'ord kvar', | ||
CharCount: 'Tecken:', | ||
CharCountRemaining: 'tecken återstår', | ||
CharCountRemaining: 'tecken kvar', | ||
CharCountWithHTML: 'Tecken (inklusive HTML):', | ||
CharCountWithHTMLRemaining: 'tecken (med html) kvar', | ||
Paragraphs: 'Paragraf:', | ||
ParagraphsRemaining: 'Paragraphs remaining', | ||
ParagraphsRemaining: 'stycken kvar', | ||
pasteWarning: 'Innehåll kan inte klistras in eftersom det överskrider den tillåtna gränsen', | ||
@@ -14,0 +16,0 @@ Selected: 'Valt: ', |
@@ -7,4 +7,7 @@ /* | ||
WordCount: 'Kelime:', | ||
WordCountRemaining: 'Words remaining', | ||
CharCount: 'Karakter:', | ||
CharCountRemaining: 'Characters remaining', | ||
CharCountWithHTML: 'Karakter (HTML dahil):', | ||
CharCountWithHTMLRemaining: 'Characters (with HTML) remaining', | ||
Paragraphs: 'Paragraf:', | ||
@@ -11,0 +14,0 @@ ParagraphsRemaining: 'Paragraphs remaining', |
@@ -8,4 +8,4 @@ /** | ||
{ | ||
lang: "ar,bg,ca,cs,da,de,el,en,es,eu,fa,fi,fr,he,hr,hu,it,ko,ja,nl,no,pl,pt,pt-br,ru,sk,sv,tr,uk,zh-cn,zh,ro", // %REMOVE_LINE_CORE% | ||
version: "1.17.7", | ||
lang: "ar,bg,ca,cs,da,de,el,en,es,eu,fa,fi,fr,he,hr,hu,it,ka,ko,ja,nl,no,pl,pt,pt-br,ru,sk,sv,tr,uk,zh-cn,zh,ro", // %REMOVE_LINE_CORE% | ||
version: "1.17.9", | ||
requires: "htmlwriter,notification,undo", | ||
@@ -283,3 +283,9 @@ bbcodePluginLoaded: false, | ||
if (config.hardLimit) { | ||
editorInstance.execCommand("undo"); | ||
if (editor.mode === "source" && editor.plugins.codemirror) { | ||
window["codemirror_" + editor.id].undo(); | ||
} else { | ||
editorInstance.execCommand("undo"); | ||
editorInstance.execCommand("undo"); | ||
} | ||
} | ||
@@ -460,3 +466,5 @@ } | ||
editor.on("key", | ||
function(event) { | ||
function (event) { | ||
var ms = isCloseToLimits() ? 5 : 250; | ||
if (editor.mode === "source") { | ||
@@ -466,3 +474,3 @@ clearTimeout(timeoutId); | ||
updateCounter.bind(this, event.editor), | ||
250 | ||
ms | ||
); | ||
@@ -475,9 +483,7 @@ } | ||
updateCounter.bind(this, event.editor), | ||
250 | ||
ms | ||
); | ||
} | ||
}, | ||
editor, | ||
null, | ||
100); | ||
editor); | ||
@@ -493,5 +499,3 @@ editor.on("change", | ||
}, | ||
editor, | ||
null, | ||
100); | ||
editor); | ||
@@ -551,3 +555,5 @@ editor.on("uiSpace", | ||
var mySelection = event.editor.getSelection(), | ||
selectedText = mySelection.getNative().toString().trim(); | ||
selectedText = mySelection.getNative() | ||
? mySelection.getNative().toString().trim() | ||
: ''; | ||
@@ -554,0 +560,0 @@ |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
69008
49
0
1183
119
1