htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
TableOperations bugfix for IE6?


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.

 


dagod
New User

Jan 6, 2005, 5:40 AM

Post #1 of 4 (5792 views)
Shortcut
TableOperations bugfix for IE6? Can't Post

I noticed that on IE6 and WINXP (my home machine) the tableoperations can't insert a new colon after the last column of a table and before the first one. On mozzilla it runs perfect... Maybe I found a solution:

Code
   for (var i=rows.length; --i>=0;){  
var tr = rows[i];
var ref = tr.cells[index + (/after/.test(button_id) ? 1 : 0)];
function inspectStyle(elm){
if (elm.style){
var str = "";
for (var i in elm.style){
if (i == "cssText"){
str = elm.style;
}
}
return str;
}
}

if (!ref)
{
var ref2 = tr.cells[index];
var otd = editor._doc.createElement("td");
otd.style.cssText=inspectStyle(ref2);
otd.innerHTML = ref2.innerHTML + mozbr;
ref2.style.cssText="";
ref2.innerHTML = mozbr;
tr.insertBefore(otd, ref2);
} else {
var otd = editor._doc.createElement("td");
otd.innerHTML = mozbr;
tr.insertBefore(otd, ref);
}
}


this code go into table-operations.js (search for the comment: //COLUMNS) and use this for loop instead the original one!!! Wink
Plz tell me if this run for you too and plz test it also on LINUX machine!!!


(This post was edited by dagod on Jan 6, 2005, 10:20 AM)


alley
New User

Jan 6, 2005, 7:04 AM

Post #2 of 4 (5784 views)
Shortcut
Re: [dagod] TableOperations bugfix for IE6? [In reply to] Can't Post

var tr = rows;

should be

var tr = rows[i];

(gets replaced by bbcode)

but thanks for getting me to the fix ;)


(This post was edited by alley on Jan 6, 2005, 7:06 AM)


dagod
New User

Jan 6, 2005, 7:21 AM

Post #3 of 4 (5776 views)
Shortcut
Re: [alley] TableOperations bugfix for IE6? [In reply to] Can't Post

now i'm trying to keep the style on the old column and reset style on the new one!!!

but i don't understand how to get the params from the cell... I've to make a custom function that emulate the popup proprieties!!!

I'm working hard on tablesoperations so every kind of comment or help is appreciated! Smile

thank you in advance


Thefreak
New User

Jan 17, 2005, 6:37 AM

Post #4 of 4 (5614 views)
Shortcut
Re: [dagod] TableOperations bugfix for IE6? [In reply to] Can't Post

Sorry to bit of a noob in this area but my javascript is very limited.

What exactly am i replacing with this code?

I am having this very problem and this looks like the answer i need

Thanks
Freak

 
 
 


Search for (options)