Opened 4 years ago

Last modified 4 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 Jakub Ś)

  1. Open document properties sample
  2. Insert below meta tag into page (under title :)). You can also insert doctype but this has no effect on result.
    <meta charset="utf-8" />
    
  3. Open document properties dialog and notice that charset it not set in dialog.
  4. 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.

  1. Let's say that you have removed HTML5 charset and decided to use HTML4 charset.
  2. 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 4 years ago by Piotrek Koszuliński

Status: newpending

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?

comment:2 Changed 4 years ago by datalink

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">
	&lt;!DOCTYPE html&gt;
	&lt;html lang=&quot;de&quot;&gt;
		&lt;head&gt;
			&lt;title&gt;Example&lt;/title&gt;
			&lt;meta charset=&quot;UTF-8&quot; /&gt;
			&lt;meta content=&quot;author of page&quot; name=&quot;author&quot; /&gt;
			&lt;meta content=&quot;copyright (c) 2014 by author&quot; name=&quot;copyright&quot; /&gt;
			&lt;meta content=&quot;The description of this page.&quot; name=&quot;description&quot; /&gt;
			&lt;meta content=&quot;keyword1,keyword2,keyword3&quot; name=&quot;keywords&quot; /&gt;
		&lt;/head&gt;
		&lt;body&gt;
			&lt;p&gt;Content&lt;/p&gt;
		&lt;/body&gt;
	&lt;/html&gt;
</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 4 years ago by Jakub Ś

Description: modified (diff)
Status: pendingconfirmed
Summary: HTML5 FullpageCharset in docprops plugin is not recognized
Version: 4.0 Beta

comment:4 Changed 4 years ago by Jakub Ś

Other bugs that concern docProps plugin: #8612, #10645, #8807, #12624.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy