Opened 15 years ago

Last modified 12 years ago

#4638 confirmed Bug

Incorrent wrapping of tags

Reported by: Johannes Lindenbaum Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description (last modified by Jakub Ś)

CKEditor 3.0.1 is incorrectly wrapping tags with arbitrary <p> tags.

Problem / Steps to reproduction:

  1. Switch to HTML mode, type:
<br /><script type="text/javascript">alert('hello');</script>


sample text <script type="text/javascript">alert('hello');</script>
  1. Switch to WYSIWYG

Expected result (as per XHTML spec):
<script type="text/javascript">alert('hello');</script>

Actual result:
<p><br /><script type="text/javascript">alert('hello');</script></p>

This problem shouldn't / can not be remedied by changing the enter mode, as we want text wrapped in <p>, but not <script> tags

Kind Regards,

Change History (3)

comment:1 Changed 12 years ago by Jakub Ś

Component: GeneralCore : Parser
Status: newconfirmed

comment:2 Changed 12 years ago by Jakub Ś

Component: Core : ParserGeneral

comment:3 Changed 12 years ago by Jakub Ś

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy