Recently, I came across a helpful code snippet for CKeditor that counts and ranks the most used words in a textarea. This feature is invaluable for generating SEO-keywords suggestions while writing articles. However, there is an issue with non-English characters like öäåÖÄÅ and Diacritics such as léjonet with é or ñ not being passed through some sort of filter.
Below is the HTML code along with a functioning Jsfiddle demo:
<!-- Textarea -->
<div class="form-group">
<label class="col-md-2 control-label" for="editor1">HTML </label>
<div class="col-md-10">
<textarea class="form-control" id="editor1" name="editor1"><p>text example with ahöäåra</p></textarea>
</div>
</div>
// More code snippets...
Additionally, JavaScript code has been included to address the diacritics removal function. If you encounter any issues related to this function affecting characters like öäåñ, the solution may lie in modifying or removing this specific function entirely.
If you would like to explore the full code and experiment with the functionality, feel free to check out the demonstration on JSFiddle: