Closed Bug 409766 Opened 17 years ago Closed 3 years ago

Design Mode: no way to add text between adjacent tables

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1247480

People

(Reporter: BijuMailList, Unassigned)

References

Details

No way to add text between adjacent tables in Design Mode
(I think it is actually no way to add text before/after table in Design Mode)

Steps:-
1. Goto FCKEditor http://www.fckeditor.net/demo
   or Midas Demo http://www.mozilla.org/editor/midasdemo/

2. Add two new tables.

3. Remove line space if there is any between them

4. Now try to add line space or any text between the tables

Result: Not possible

Expected: User should have some way to insert space between adjacent tables.


I think the actual problem is more severe and that user unable to add text before/after a table.
(overcome Bug 409740 issues using workaround)

1. Logon to https://docs.google.com/#all
2. Create a table as first element in a document.
3. Try inserting some text before the table
4. user find it is not possible
5. Now create another table at the end of the document.
6. Try inserting some text after the table
7. user find it is not possible


POSSIBLE SOLUTION USE CASE
1. to add a new line  before table.
  a) user places cursor at beginning of first cell in the table.
  b) user press Enter Key 
  c) browser should add a new line (<br>) before table 
    and cursor is moved before <br> tag
   (this is same way as the MS-Word/OOo Write, 
    when table is the first element of the document)

2. to add text after table.
  a) user places cursor at the end of last cell in the table.
  b) user press right arrow key.
  c) browser should place cursor after the table border
Mozilla/5.0 gcc-4.1.1/4.1.2 (X11;U;Linux i686 rv:1.9b3pre) Gecko/2007122902 SeaMonkey/2.0a1pre

Created new document in SM-Composer, insert table2x2 + table 2x2
Default-behavior inserts no-line/space at beginning of document, but does insert line between tables.
Unable to move cursor ahead of first-table via mouse or cursor-keys.
TEST: User places cursor at beginning of first-cell in the table.
  b) user press Enter Key 
  c) Composer adds another line into first-cell 
*Cannot insert anything ahead of fist-table in GUI-mode.*

Test: Remove (Backspace-key) line-space from-between tables.
Attempt to reinsert cursor between tables fails, using either mouse or cursor-keys.
Unable to insert anything.
No space between top-table and bottom-table.

Source-Edit-Test:
<HTML>Source source-mode (source-edit-mode) inserting line-break and text-string:--
<br>1234-test<br>
ahead of first-table and between tables works perfectly, with line-space, line-of-text, table, line-space, line-of-text, table
now enabled in GUI-page. Composer's <HTML>Source still edits normally.
Why does this block bug 237964?
Blocks: 424615
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5pre) Gecko/2008032401 SeaMonkey/2.0a1pre
Update:Default-behavior inserts no-line-space at beginning of document, but does
insert line-space between tables.
Unable to move cursor ahead of first-table via mouse or cursor-keys.
*Cannot insert anything ahead of first-table in GUI-mode.*

GUI-mode table-test: Remove (Backspace-key) line-space from-between tables now FAILS.
Cannot remove Line-space between tables, which is now locked, but editable.

Insert table2x2 into line-space between 2-tables gives-
Result = table2x2, line-space, table2x2, table2x2 without intervening line-space.

First 2-tables are separated by line-space, second and third tables have no intervening line-space.
Use-of cursor-key from within last-cell of table-2, jumps to first-row of table-3.
Use of Tab-key, inserts newline-3 into table-2.
GUI controls now-unable to insert line-space between table-2 and table-3.

Edit-"<HTML> Source" mode, still permits full-edit, including beginning of document line-break inserts, text, and tables, etcetera.
Given that I didn't get a reply to comment 2 and this isn't marked as regression, removing bug 237964 from dependencies.
No longer blocks: contenteditable
See Also: → 535475

Bug 1247480 has a more accessible testcase, hence higher chances to succeed. Forward-duping.

Severity: normal → S3
Status: NEW → RESOLVED
Closed: 3 years ago
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.