Properly handle EnterMode=br and block formatting
|Reported by:||FredCK||Owned by:||fredck|
|Priority:||Normal||Milestone:||FCKeditor 2.5 Beta|
|Component:||Core : Styles||Version:|
|Keywords:||SD-COE||Cc:||pkdille, Jyhem, nyloth|
When EnterMode='br', we must properly handle the formatting of the blocks (block element change) with the "Format" toolbar combo.
Every line separated by a <br> must be considered a "block", and therefore only that part must be changed when switching block type. Also, if a selection embraces a <br>, the entire selection must be broken in different blocks.
Today, the entire block is changed to the selected block style. To test it:
- Set EnterMode='br'
- Type some lines of text
- Position the cursor over one of the lines
- Switch the format to Heading 1 -> The entire block will be transformed
Change History (7)
comment:3 Changed 10 years ago by fredck
- Cc pkdille Jyhem nyloth added; Pascal.KUSTNER@… jean-marc.libs@… patrice.weber@… removed