Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When triple clicking on a paragraph then applying a style or format then the format is applied to the next paragraph as well. Example:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
then selecting the second paragraph with a triple click and applying the "Heading 1" format (instead of "normal") gives the following :
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<h1>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</h1>
<h1>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</h1>
whereas expected result is :
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<h1>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</h1>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
This seems only to happen in Chrome (probably webkit based browsers). It works with no problems in Firefox. Not tested on IE.
Comment | File | Size | Author |
---|---|---|---|
#3 | ezgif-2-e446d13e2a.gif | 183.29 KB | progzy |
Comments
Comment #2
Wim LeersCan you also reproduce this at http://ckeditor.com/features?
Comment #3
progzy CreditAttribution: progzy as a volunteer commentedYes (chrome):
Comment #4
Wim LeersOkay, then this is definitely a bug in CKEditor. Assigning to CKEditor maintainer @mlewand.
Comment #5
mlewand CreditAttribution: mlewand commentedThis is a known issue originating from how contenteditable handles the selection upon triple click. The status can be followed on https://github.com/ckeditor/ckeditor-dev/issues/484
Comment #6
Wim LeersThanks, @mlewand!
Comment #8
Wim LeersComment #16
quietone CreditAttribution: quietone at PreviousNext commentedCKEditor has been removed from core, CKEditor 4 is removed from Drupal Core in 10.0.0