PDA

View Full Version : Weird character  inserted with CKEditor


Hall of Famer
10-28-2013, 01:13 PM
This bug occurs whenever you add a whitespace between two characters/words. It also affects lines separated by a blank line as in CKEditor the default behavior of dealing with blank line is to insert a whitespace character in it.

This is caused by the default character encoding incompatible with CKeditor's. To fix it, go to your theme's template folder(the default is main, you may want to do the same for acp theme), open the file header.tpl and add this following line right below the <header> opening tag:


<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />


This will change the encoding to UTF-8 and should fix your problem. Note if you use multiple themes, you will have to add this meta statement in all themes.

Abronsyth
10-29-2013, 05:26 PM
Ah, little confused. You say under the <header> tag but I do not see a <header> tag within the file header.tpl :/ There's the <head> tag and something in php (a language I know not) to do with header....but no <header> tag.

I apologize for the repetitiveness of my sentences XD

IntoRain
10-29-2013, 05:42 PM
Ah, little confused. You say under the <header> tag but I do not see a <header> tag within the file header.tpl :/ There's the <head> tag and something in php (a language I know not) to do with header....but no <header> tag.

I apologize for the repetitiveness of my sentences XD

It's <head>

Abronsyth
11-01-2013, 03:21 PM
Mmkay, that's what I thought but I wanted to be certain :)

LucasA33
12-25-2013, 12:19 AM
Thanks for this. It was annoying me! :P