Opened 9 years ago

Closed 9 years ago

#13018 closed Bug (invalid)

ckEditor loses html tags if toolbar doesn't have button of that tag

Reported by: mncs Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: 4.4.7
Keywords: Cc:

Description

Hi. I'm trying render html text into a readonly ckEditor included in primefaces-extensions. For do this, use an empty toolbar to show only the text, but when I do that I lose all html tags in my text and only "<p>" tags appear.

If I add the corresponding button to the toolbar, html tag of that button appear in editor. For example if I add the "Bold" button to the toolbar, I have the "<strong>" tag in my text, but if I don't add that button the <strong>, the tag dissapears from my text.

Here is a sample My Html text: <p>This is <strong>a strong text</strong></p>

Using this, ckeditor works: pe:ckEditor id="editor" value="#{bean.getText()}" toolbar="Bold?" readOnly="true"

But if I quit the "Bold button" from the toolbar I lose the <strong> tag pe:ckEditor id="editor" value="#{bean.getText()}" toolbar="[]" readOnly="true"

This is the html of this case: <p>This is a strong text</p>

Change History (1)

comment:1 Changed 9 years ago by Jakub Ś

Keywords: html toolbar removed
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