Ticket #2293 (closed Bug: invalid)

Opened 6 years ago

Last modified 6 years ago

fckeditor strips all information before a body tag

Reported by: arbyter Owned by:
Priority: Normal Milestone:
Component: UI : Source View Version: FCKeditor 2.6.1
Keywords: Cc:

Description

when you paste the following code into fckeditor in the sourceview and switch back to wysiwyg-mode, then the style tags vanishes. if you remove the body tag, then the style tag stayes untouched. Tried in in Version 2.6.1 and on your Online-Demo - both dont work.

code to paste:

<style type="text/css">#second {position: absolute; background-color: blue;}</style> <body> <p id="second">Second paragraph. style </code> applied.</p> <p>pi</p> <p>pa</p> <p>po</p> </body>

Change History

comment:1 Changed 6 years ago by w.olchawa

  • Status changed from new to closed
  • Keywords missing style tags removed
  • Resolution set to invalid

Actually this is an expected behaviour. Text which is written between <body> tags as well as the tag itself should be deleted.To avoid this behaviour you may always enable the following option:

FCKConfig.FullPage = true ;

and edit the whole page.

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