Opened 10 years ago
Last modified 10 years ago
#12496 confirmed Bug
Charset in docprops plugin is not recognized
Reported by: | datalink | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 Beta |
Keywords: | Cc: |
Description (last modified by )
- Open document properties sample
- Insert below meta tag into page (under title :)). You can also insert doctype but this has no effect on result.
<meta charset="utf-8" />
- Open document properties dialog and notice that charset it not set in dialog.
- When you set charset to UTF-8 in dialog, below meta tag is inserted:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
This problem can be reproduced from CKEditor 4.0 beta.
In current version the problem gets worse.
- Let's say that you have removed HTML5 charset and decided to use HTML4 charset.
- In current version (latest master) this charset is also not recognized. What is more every time you set utf-8 charset in dialog, new tag gets inserted so you can end up with multiple meta tags inserted into page.
Shouldn't charset meta tag be somehow dependent on doctype or this is something developer/user should know when creating page?
Change History (4)
comment:1 Changed 10 years ago by
Status: | new → pending |
---|
comment:2 Changed 10 years ago by
Don't work for me in any browser - firefox, chrome, IE11 on Win8 with full featured download of CKE 4.4.4 plus docprops plugin.
My test case:
<textarea id="cke" name="cke"> <!DOCTYPE html> <html lang="de"> <head> <title>Example</title> <meta charset="UTF-8" /> <meta content="author of page" name="author" /> <meta content="copyright (c) 2014 by author" name="copyright" /> <meta content="The description of this page." name="description" /> <meta content="keyword1,keyword2,keyword3" name="keywords" /> </head> <body> <p>Content</p> </body> </html> </textarea> <script> CKEDITOR.replace( 'cke', { fullPage : true, extraPlugins : 'docprops' }); </script>
If I open the docprops, on tab general it shows the title, the doctype and the language code. Charset shows <not set>.
On tab meta tags all fields are empty. If I fill out the fields, click OK and switch to source mode, all meta tags are twice. On reopen docprops all fields are empty.
comment:3 Changed 10 years ago by
Description: | modified (diff) |
---|---|
Status: | pending → confirmed |
Summary: | HTML5 Fullpage → Charset in docprops plugin is not recognized |
Version: | → 4.0 Beta |
Works for me on Chrome. Can you describe more precisely what doesn't work on which browser(s) and what we have to do to reproduce that?