Opened 8 years ago
Last modified 8 years ago
#14879 closed Bug
<aside> tag is incorrectly parsed and duplicated when pasted in the Source view of CK Editor — at Version 1
Reported by: | Randy Leiker | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Parser | Version: | |
Keywords: | Cc: | randy@… |
Description (last modified by )
Steps to reproduce
- Click the Source button in CK Editor, then paste in the following code:
This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is <aside style="float: left; width: 10em; height: auto; border-top: solid #000000 0.3em; border-bottom: solid #000000 0.3em; margin: 0.5em 0.5em 0.5em 0.5em;">The quick brown fox jumped over the four score and seven years ago our fathers brought forth upon this continent half a league half a league half a league onward</aside> a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which
- Click the Source button in CK Editor again. The first word of the <aside> content will be moved to its own <aside> object.
- Click the Source button in CK Editor again to switch to code view, then without making any changes, click the Source button in CK Editor to toggle back.
- The first two words of the original <aside> content now appear within their own <aside> elements, in addition to the remainder of the original <aside> element.
Expected result
CK Editor should display a single paragraph of text with a single left aligned floating <aside> element.
Actual result
CK Editor displays a single paragraph of text with two left aligned floating <aside> elements. The first <aside> element contains the first visible word of the <aside> content "The", and the second <aside> elements contains the remainder of the <aside> content starting with "quick brown fox...". Clicking the Source button repeatedly will continue to successively strip the first word of the original <aside> element & likewise place them into their own <aside> elements.
Other details (browser, OS, CKEditor version, installed plugins)
Browser: Firefox 49.0.1 OS: Windows 10, build 14393.187 CK Editor: 4.5.11 (also appears in 4.5.10) CK Editor configured with the default set of 72 plug-ins selected by default when using http://ckeditor.com/builder to create a Custom build of CK Editor.
Change History (2)
Changed 8 years ago by
Attachment: | bug-report.gif added |
---|
comment:1 Changed 8 years ago by
Description: | modified (diff) |
---|---|
Status: | new → pending |
Version: | 4.5.11 |
I can't confirm your findings.
I have tried default CKEditor 4.5.11 full package in Firefox, IE and Chrome. Duplication happened in none of these browsers.
Looking at the image, I can see you are using customized version of the editor. Please try using default full/standard package or disable your third-party CKEditor plugins, core code customizations (if you have made any) and re-check.
If you can reproduce it in default package, please provide exact steps to do so and CKEditor configuration if some changes were needed to be made to it.
NOTE: by default the aside
tag is filtered out by ACF, so I needed to use below configuration:
var editor = CKEDITOR.replace( 'editor1', { extraAllowedContent: 'aside(*){*}[*]' });
Illustration of the duplication of <aside> tags when the Source button is clicked repeatedly in CK Editor