Ticket #102 (closed New Feature: worksforme)
Paste as Plain Text behaviour should depend on EnterMode
| Reported by: | fredck | Owned by: | martinkou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.5 |
| Component: | General | Version: | |
| Keywords: | SD-COE | Cc: | pkdille, Jyhem, nyloth |
Description
The following behavior should be achieved:
- If EnterMode=p, text blocks separated with double line breaks should be enclosed in a <p>, while single line breaks produce a <br>;
- If EnterMode=div, each block separated by a line break will be enclosed in a <div>. Double line breaks will generate empty <div>s.
- If EnterMode=br, line breaks will generate a <br> (current behavior).
Note for "p" and "div" modes: the first text block must not generate a "p" or "div", but be inserted in the cursor location. If further "p" or "divs" must be pasted, the cursor current block must be broken and the new blocks must be pasted after it.
Inside a <li>, each line break should generate a <li>, except when EnterMode=p, where each double line break generates a <li>.
Change History
Note: See
TracTickets for help on using
tickets.