Opened 12 years ago
Closed 12 years ago
#9785 closed Bug (invalid)
CKEDITOR.replace
Reported by: | bfxyly | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0.1 |
Keywords: | Cc: |
Description
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 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
- CKEditor handles HTML and not C language.
- If you want to have C on your HTML page use protectedsource - http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-protectedSource
- If you want to display code sample use pre tags.