Opened 11 years ago

Closed 11 years ago

#9785 closed Bug (invalid)


Reported by: bfxyly Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0.1
Keywords: Cc:


here is the invironment,I want to update data from the database(such as mysql), so i'll init the textarea with data that query from mysql. If the data is "aaa" and so on, it doesn't has problem.But if it includes "<xxx>",after CKEDITOR.replace, the init data becomes "<xxx></xxx>". It's really a problem. Now i assume,in fact, i must save code into mysql. For example,i save C code, "#include <stdio.h>". After executing CKEDITOR.replace, The CKEDITOR sourcecode looks like this "#include <stdio.h></stdio.h>". However, user just saw "#include", where is the "<stdio.h>"? It was used as the html tag. In fact,it does not a html tag. I'm using CKEDITOR in my website,hope resoving this issue as soon as possible,thx.

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
  1. CKEditor handles HTML and not C language.
  2. If you want to have C on your HTML page use protectedsource -!/api/CKEDITOR.config-cfg-protectedSource
  3. If you want to display code sample use pre tags.
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