Ticket #4638 (confirmed Bug)

Opened 4 years ago

Last modified 23 months ago

Incorrent wrapping of tags

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

Description (last modified by j.swiderski) (diff)

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>

or

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,
Johannes

Change History

comment:1 Changed 23 months ago by j.swiderski

  • Status changed from new to confirmed
  • Version changed from 3.0.1 to 3.0
  • Component changed from General to Core : Parser

comment:2 Changed 23 months ago by j.swiderski

  • Component changed from Core : Parser to General

comment:3 Changed 23 months ago by j.swiderski

  • Description modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy