Opened 9 years ago

Closed 8 years ago

#13804 closed Bug (invalid)

Disabling content filter does not stop <object> tags from being converted to <cke:object> tags

Reported by: Ryan Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version: 4.5.4
Keywords: object, cke:, namespace, prefix, filter Cc:

Description

Steps to reproduce

  1. Disable content filter in the config.js file
  2. Open the ckeditor
  3. Switch to "Source" mode
  4. type "<object></object>" into the textarea of the
  5. Switch back out of the source mode.
  6. View the source of the ckeditor entry area and see that the object tag has been changed to a <cke:object> tag

Expected result

The ckeditor does not add prefixes/namespaces to these elements. Or the editor allows an option to be configured to prevent prefixes from being added to certain html tags.

Other details (browser, OS, CKEditor version, installed plugins)

I have exhausted stackoverflow, the ckeditor documentation, google, etc. and I cannot find a way to prevent the CKEditor from changing html object tags to namespaced/prefixed <cke:object> tags.

I have developed a simple plugin to embed a pdf. When the object tag is inserted into the editor using the editor.insertElement method it is inserted as an object and looks fine. When the user switches to the source mode, they can see the object tag clearly and everything is fine. When they switch back to the "normal" editor mode the object is no longer visible, as it has been changed to <cke:object>

Change History (1)

comment:1 Changed 8 years ago by Piotr Jasiun

Resolution: invalid
Status: newclosed
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