We are migrating CKEditor issue tracking to GitHub. Please, use GitHub to report any new issues.

The former tracking system (this website) will still be available in the read-only mode. All issues reported in the past will still be available publicly and can be referenced.

Important: we decided not to transfer all the tickets to GitHub, as many of them are not reproducible anymore or simply no longer requested by the community. If the issue you are interested in, can be still reproduced in the latest version of CKEditor, feel free to report it again on GitHub. At the same time please note that issues reported on this website are still taken into consideration when picking up candidates for next milestones.

This new patch includes the original proposed fix, but includes also another fix for the insertion of block elements. The following is the proposed behavior:

If the selection is not inside a block (the source of the problem in this ticket), nothing in special is done. The new block is simply inserted at the current position. There is no need to SplitBlock (and therefore "FixBlock") first.

If the selection is at the start of a block, the new block is simply insert "before" that block.

If the selection is at the end of a block, the new block is then insert "after" that block.

If the selection is at the middle of the block, the previous behavior is taken and the SplitBlock is called.