A directory of browser-based WYSIWYG editors


Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
Spell check : weird ┬ characters added

The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.



Oct 25, 2004, 7:04 AM

Post #1 of 3 (6776 views)
Spell check : weird ┬ characters added Can't Post

I've head a quick trawl through the forums and can't find any other postings that realte to this so I thought I'd start a new one.

I've installed the spell checker with the Eng-GB dictionary to work with HTMLArea 3.0.

The spell checker works except apart from where it encounters 2 space characters. When this happens it replaces one of the spaces with ┬ (Captial A with a 'hat' accent over it).
  1. has anyone else encountered this problem or is it something odd I've done fiddleing with the code?
  2. if anyone else has seen this before - have you figured out what's causing it?

As always thanks for any and all your help Smile!


Nov 3, 2004, 8:05 AM

Post #2 of 3 (6705 views)
Re: [ozinm] Spell check : weird  characters added [In reply to] Can't Post

Hi all,

I think this may have got lost in the move to the new board so I'm being slightly cheeky and replying to my self (apologizes).

Has anyone else encountered this problem or is it only me?

All the best

Looking hopeful


New User

Nov 19, 2004, 6:50 AM

Post #3 of 3 (6561 views)
Re: [ozinm] Spell check : weird  characters added [In reply to] Can't Post

We modified the initDocument() function in the spell-check-ui.js file. We added code that will remove special characters. This is not the most elegant solution because it removes any extra spaces as well as the special characters, but we feel it is better then the A with the hat bracket.

function initDocument() {
modified = false;
frame = document.getElementById("i_framecontent");
var field = document.getElementById("f_content");
field.value = HTMLArea.getHTML(editor._doc.body, false, editor);

// Loop through retrieved text and remove all special characters
var cleanText = "";
for (i = 0; i < field.value.length; i++) {
if (field.value.charCodeAt(i) >= 32 && field.value.charCodeAt(i) <= 126) {
cleanText += field.value.charAt(i);
} else {
cleanText += String.fromCharCode(32);

//field.value = cleanText;
document.getElementById("f_init").value = "0";

// assign some global event handlers

var select = document.getElementById("v_suggestions");
select.onchange = function() {
document.getElementById("v_replacement").value = this.value;
if (is_ie) {
select.attachEvent("ondblclick", replaceClicked);
} else {
select.addEventListener("dblclick", replaceClicked, true);

document.getElementById("b_replace").onclick = replaceClicked;
// document.getElementById("b_learn").onclick = learnClicked;
document.getElementById("b_replall").onclick = replaceAllClicked;
document.getElementById("b_ignore").onclick = ignoreClicked;
document.getElementById("b_ignall").onclick = ignoreAllClicked;
document.getElementById("b_recheck").onclick = recheckClicked;
document.getElementById("b_revert").onclick = revertClicked;
document.getElementById("b_info").onclick = displayInfo;

document.getElementById("b_ok").onclick = saveClicked;
document.getElementById("b_cancel").onclick = cancelClicked;

select = document.getElementById("v_dictionaries");
select.onchange = function() {
document.getElementById("f_dictionary").value = this.value;


Search for (options)