Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: rentasite on October 02, 2012, 12:15:41
-
I tried to edit one of the default articles (Taj Mahal) in order to test CK Editor. Came up to these:
1. Why is it showing the text in "Times New Roman" style in the back-end, when the formatting is totally different in the front-end? (attachment 1)
2. Tried to format some piece of text, into Bold and Red. It doesn't change the color at all. The Bold format appeared after 2 attempts. But the message indicated that the changes have been saved. (attachment 1)
3. Tried to change Font to some piece of text and an Error occurred! The error can be seen through the editor and on the front-end (attachment 2).
-
Good morning!
CKEditor has it's own font family and it's different from the public view (it depends to each template's designer). As you can realize: Elxis 2009.x is history! I have modified the certain article before 5 minutes and the results comes to the attached image. Which the DOC type you use?
-
Which the DOC type you use?
Haven't touched anything. By default it's HTML5
-
Update
From the General Settings, if i change the "Document type" value to XHTML 5 as recommended, i get the error below, if any article is modified (as said on my first post):
XML Parsing Error: not well-formed
Location: http://www.mysiteexc.gr/
Line Number 172, Column 78: The 3 best Egyptian pyramids are the <em>Pyramids of Giza</em>. <span style=\"font-family:comic sans ms,cursive;\">These pyramids were built on the outskirts of Cairo</span>. The Pyramid of Khufu at Giza is said to be the largest Egyptian pyramid ever made in the history. This pyramid figure is one of the seven wonders of the worlds. The Pyramid of Kufu is also known as the Great Pyramid.</p>
------------------------------------------------------------------------------------^
If i unpost that modified article, the site goes back into normal.
-
You should not play with the doctype. The only change you can safely do is from XHTML to HTML5, not the oposite.
XHTML doctype should be chosen only by those fully understand what XML syntax means. Dont compare Elxis 2009.3 and 4.0 in XHTML. Elxis 2009.3 serves the document with content type text/html, so it is not a real XHTML document, it is what is called as a "tags soup". On the other hand Elxis 4.0 serves XHTML content using the application/xhtml+xml content type which forces the document to be a 100% valid XML document. If the XHTML document contains for example a single " " it will become invalid and you will get a warning by the browser.
The plus of the XHTML doctypes is that they force you to to have 100% valid syntax. No missing ending tags, no invalid chars, everything 100% correct, absolutely guaranteed. But you must be very careful when you add content and you should be aware of the restrictions of XML syntax (for instance the iframe tag is not supported, so your facebook implementation might not work - btw facebook sucks). XHTML5 doctype is an XML implementation of HTML5.
Pick XHTML5 only if you know what you are doing and you are able to manage a site with XHTML.
All the rest: pick HTML5
-
I see! Ok with the Parsing Error.
The problems (2) and (3) mentioned on the first post, exist!
-
I don't have any of the problems you have. For me it works perfect.
You must first make sure if this happens only to your site or to your pc. I mean it is a pc/browser issue or an elxis/php issue?
I don't think that it is an elxis issue as for the rest the editor works fine. At least I haven't seen anyone else complain about the editor.
If it is a php issue the only reason I can imagine is the existence of magic quotes gpc setting, although I enabled them on my pc and check it and I didn't faced a problem.
-
Ok I'll investigate this. Thanks!
-
Hi,
magic_quotes_gpc turned OFF and the problem is solved :)
-
Note that magic_quotes_gpc has been deprecated or removed in newer PHP versions.
PHP's developers believe (me too) that the developers should properly sanitize users data and don't rely on system.
You have no reason to keep magic_quotes_gpc enabled in Elxis 4.x. Elxis properly sanitizes and validates user input.
-
Thank you datahell :)