Opened 9 years ago

Closed 9 years ago

#13631 closed Bug (invalid)

Less Than '<' and Greater Than '>' not allowed in Courier New Monospace

Reported by: Gregg Current Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Steps to reproduce

  1. Enter text "Click <Finish>."
  2. Highlight the text "<OK>" and set the font to Courier New
  3. Save the text.
  4. Reload the text. (I am using CKEditor in a database application so the text is stored in a record for redisplay)

Expected result

"Click" and "." will be displayed in the default (Ariel?) and the "<OK>" will be displayed in Courier New

Actual result

Click . in default font

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

CKEditor 4.5.2 Full version Browser Safari 7.1.7

This also happens when I save the marked up text to an HTML file and try to display the page. <p>Click &lt;<span style=&quot;font-family:courier new,courier,monospace&quot;>OK&gt;</span>.</p> Displays the Click < in default font OK in Courier New and >. in default font

<p>Click <span style=&quot;font-family:courier new,courier,monospace&quot;>&lt;OK&gt;&nbsp;</span>.</p> Displays Click . in default font

Attachments (1)

EditorTest.html (5.3 KB) - added by Gregg Current 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Gregg Current

Attachment: EditorTest.html added

comment:1 Changed 9 years ago by Piotrek Koszuliński

Keywords: Courier New < > removed
Resolution: invalid
Status: newclosed
Version: 4.5.2

This is a source that CKEditor sends to the server (you can check it by switching to the source mode):

<p>Click <span style="font-family:courier new,courier,monospace">&lt;Finish&gt;</span>.</p>

This content is correct, so it is your backend what breaks it or the data is incorrectly loaded to CKEditor (remember to encode HTML entities before loading a raw content into a textarea).

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