Can't type in a table cell #228
Comments
Found a fix on the forums where the JS was tweaked to add default text into the cells and that seemed to fix it. I set the newly add default text to be '<br _moz_editor_bogus_node="TRUE" style="display:table-cell;" _moz_dirty="">' and set it to only add text for Firefox. The styling makes the <br> hidden and the '_moz_editor_bogus_node="TRUE"' filters it as part of Firefox's editable frame. |
--- //webtest/wwwroot/drupal-6/sites/all/libraries/wymeditor/wymeditor/original/jquery.wymeditor.js Thu Jun 03 13:54:48 2010 +++ //webtest/wwwroot/drupal-6/sites/all/libraries/wymeditor/wymeditor/jquery.wymeditor.js Thu Feb 10 11:24:38 2011 @@ -1530 +1530,6 @@ - for(y=0; y<iCols; y++) {newRow.insertCell(y);} + for(y=0; y<iCols; y++) { + var newCell = newRow.insertCell(y); + if(jQuery.browser.mozilla){ + newCell.innerHTML = ' + } + } |
This should be at least partially fixed (see 830f1cc). |
Still not quite fixed. With current master, once you insert a new table you have to click in a cell, out of the cell and back in to insert content. Otherwise your typing has no result. |
Added a pull request to narrow the affected case to only manual HTML insertion of a table: #235 |
This will have to do for now. The only case thats not covered is tables inserted using the html-view, which are still editable on double click or by navigating the table using the keyboard. |
…space next to a header would turn it in to a paragraph
Refs gh-228. FF bug- double-clicking whitespace changes h2 to p tag
When creating a new table in Firefox, any of the cells that were made from the pop-up form can be clicked into, but you can't enter text. Any cells that are added through the firefox editable frame table tools seem to work fine.
The text was updated successfully, but these errors were encountered: