I'm trying to insert a table into the a Rich Text Editor. I've got insert table button enabled in TinyMCE, and when the button is clicked the dialog opens ok. Trouble is when I click insert NOTHING happens. The dialog flashes a bit but remains open and nothing is inserted.
Is this a tinyMCE problem?
Umbraco 4.0.3 (freshly upgraded from 4.0.1 about 10mins ago) on Windows Server 2k3.
I understand that you did an upgrade right before the problem occured. It's possible that some files got corrupted during the upgrade (especially when FTP'ing to a webhost.)
Try removing the umbraco_client folder (after a backup) and adding it again from a freshly downloaded umbraco 4.0.3 install.
There are two JavaScript errors that seem to happen only in WebKit browsers in the insertTable function:
O = I.elements.frame.options[I.elements.frame.selectedIndex].value;
L = I.elements.rules.options[I.elements.rules.selectedIndex].value;
Both of these cause this error: TypeError: Cannot read property 'value' of undefined
If you look at the SELECT list for these they don't have an item selected. I tried to set selected="selected" on each of these but it had no effect. I ended up changing table.js to this:
try { O = I.elements.frame.options[I.elements.frame.selectedIndex].value; } catch(e1) { O = ""; } try { L = I.elements.rules.options[I.elements.rules.selectedIndex].value; } catch(e2) { L = ""; }
Insert Table problems
I'm trying to insert a table into the a Rich Text Editor. I've got insert table button enabled in TinyMCE, and when the button is clicked the dialog opens ok. Trouble is when I click insert NOTHING happens. The dialog flashes a bit but remains open and nothing is inserted.
Is this a tinyMCE problem?
Umbraco 4.0.3 (freshly upgraded from 4.0.1 about 10mins ago) on Windows Server 2k3.
Paul -
I'd try a hard-delete of your local browser cache - I've seen this more than once when the JS files are updated with the update to 4.0.3.
-Paul
Nice try Paul but no good the problem's still there.
Hi Paul,
I understand that you did an upgrade right before the problem occured. It's possible that some files got corrupted during the upgrade (especially when FTP'ing to a webhost.)
Try removing the umbraco_client folder (after a backup) and adding it again from a freshly downloaded umbraco 4.0.3 install.
Good luck,
Chris
I forgot to mention. I've had a similar problem some time ago:
http://forum.umbraco.org/yaf_postst9716_insertedit-link-not-working-in-rich-text-editor.aspx
Chris
OK solved the problem: It was caused by using Chrome. When I use the same dialog in FF it works fine.
Not sure what is causing the error to happen in the first place, but here is a workaround.
~/umbraco_client/tinymce3/plugins/table/js/table.js
There are two JavaScript errors that seem to happen only in WebKit browsers in the insertTable function:
O = I.elements.frame.options[I.elements.frame.selectedIndex].value;
L = I.elements.rules.options[I.elements.rules.selectedIndex].value;
Both of these cause this error: TypeError: Cannot read property 'value' of undefined
If you look at the SELECT list for these they don't have an item selected. I tried to set selected="selected" on each of these but it had no effect. I ended up changing table.js to this:
try {
O = I.elements.frame.options[I.elements.frame.selectedIndex].value;
} catch(e1) {
O = "";
}
try {
L = I.elements.rules.options[I.elements.rules.selectedIndex].value;
} catch(e2) {
L = "";
}
is working on a reply...