Hi,
I posted this in the CKEditor 3.x but, having received no responses I looked more closely and decided that I probably should have posted it here instead.
I apologise in advance if the answer to this question is in the
documentation.
I am trying to find an editor which I can confidently allow clients to
use without the changes they make mucking around with my code.
So I am testing CKEditor out on a website that I have already designed in
wordpress.
Here is the page I am playing with using the editor: http://www.resilience4life.com.au/?page_id=1417
The first thing I notice when I put the code into the editor is the
discrepancy between the spacing as it appears on the browser and how it
would appear to a client on the editor. This is the spacing of the first couple of
lines as it appears on the editor - clearly not the way it looks on the browser:
Contact
You can contact me at
Is there some way that the spacing on the editor can look the same as it
does on the browser? If not then I don't think I can expect a client
with no coding experience to understand that - they will, as I did
initially, try to change the spacing on the editor. When they can't get
that to work they will be asking for help - exactly what I am trying to avoid by using wordpress.
Thanks in advance for your help
Brenda
Thu, 11/24/2011 - 09:16
#1
Re: Is it possible get the editor to replicate the browser
Re: Is it possible get the editor to replicate the browser
Thanks so much for responding to my question. I do appreciate you taking the time.
I have never used CKeditor before so hope you don't mind me seeking the following clarification of your response:
1. which CSS stylesheet are you referring to please; and
2. when you say to add it to my editor pages, are you referring to the instructions in the Developers Guide about Defining Styles i.e. creating a definition registration?
Brenda
Re: Is it possible get the editor to replicate the browser
For me, via PHP, I wrote code in PHP that temporarily adds the css stylesheet for the actual site into the textarea of CKeditor. Thereby showing the exact layout one would see if they were viewing the content directly from the site.
Not sure what platform you use CKeditor on. So how you code it will be within your platform of choice. It is just a matter of affixing a stylesheet temporarily so the content within the editor can hold the same layout as your site. The stylesheet can be found by looking at your WordPress source and than copying the themes main css stylesheet. Possibly removing all the irrelevant css lines and than saving the file as editorstyle.css...
Re: Is it possible get the editor to replicate the browser
I think I am about to jump into the deep end when I can only just float!
But that is often the way it happens and I am really grateful for your advice.
If you don't mind I will come back with more questions if need be as I follow your advice. Possibly not immediately but I am determined to get this working as I love wordpress but have been so frustrated by its inability to allow me to hand a site over to the owner and let go of it!
I am hoping this is the solution.
Brenda