Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
CK editor - Editing and Formatting text [SOLVED]
« previous
next »
Print
Pages: [
1
]
Author
Topic: CK editor - Editing and Formatting text [SOLVED] (Read 8651 times)
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
CK editor - Editing and Formatting text [SOLVED]
«
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).
«
Last Edit: October 04, 2012, 23:26:47 by rentasite
»
Logged
Rent a Site
|
Lelevose
webgift
Elxis Team
Hero Member
Posts: 4193
Re: CK editor - Editing and Formatting text
«
Reply #1 on:
October 02, 2012, 12:27:19 »
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?
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text
«
Reply #2 on:
October 02, 2012, 12:33:31 »
Quote from: webgift on October 02, 2012, 12:27:19
Which the DOC type you use?
Haven't touched anything. By default it's
HTML5
Logged
Rent a Site
|
Lelevose
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text
«
Reply #3 on:
October 02, 2012, 13:21:26 »
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.
Logged
Rent a Site
|
Lelevose
datahell
Elxis Team
Hero Member
Posts: 10356
Re: CK editor - Editing and Formatting text
«
Reply #4 on:
October 02, 2012, 14:57:15 »
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
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text
«
Reply #5 on:
October 02, 2012, 15:15:38 »
I see! Ok with the Parsing Error.
The problems (2) and (3) mentioned on the first post, exist!
Logged
Rent a Site
|
Lelevose
datahell
Elxis Team
Hero Member
Posts: 10356
Re: CK editor - Editing and Formatting text
«
Reply #6 on:
October 02, 2012, 19:06:36 »
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.
«
Last Edit: October 04, 2012, 23:43:50 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text
«
Reply #7 on:
October 03, 2012, 02:30:41 »
Ok I'll investigate this. Thanks!
Logged
Rent a Site
|
Lelevose
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text [SOLVED]
«
Reply #8 on:
October 04, 2012, 23:27:30 »
Hi,
magic_quotes_gpc turned OFF
and the problem is solved
Logged
Rent a Site
|
Lelevose
datahell
Elxis Team
Hero Member
Posts: 10356
Re: CK editor - Editing and Formatting text [SOLVED]
«
Reply #9 on:
October 04, 2012, 23:42:54 »
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.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
rentasite
Elxis Community
Hero Member
Posts: 3282
Web Services
Re: CK editor - Editing and Formatting text [SOLVED]
«
Reply #10 on:
October 05, 2012, 12:22:26 »
Thank you datahell
Logged
Rent a Site
|
Lelevose
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
CK editor - Editing and Formatting text [SOLVED]