Hello,
I'm a new user of ckeditor (and wysiwyg techologies) but I have some problems with CkEditor 4.1.2. Actually, I have a form with a textarea (with ckeditor interface) and when the form is submit I get the content by using "$_POST['textarea_name'] to save it in a mySQL database.
Then, I get the content (with a SQL query) to display it on an html page but the problem is the style display in the form is not the same applied on my page.
What I want : having same style in my html page (data in<article> tag) as in the textarea with ckeditor interface.
I did not find solution on the web and on the web so I need your help :)
Ps : forgive my english
Is something missing in the
Is something missing in the stored data? It should be easy to look at the "string" saved in the MySQL database and see whether the expected styling is preserved. It it is, then it means it gets stripped of when you insert it in the destination page or is influenced by a css file etc.
No problem in database but on page structure
The string saved is an html code with tags. For exemple, a text declared as a quote will produce a simple text in blockquote tag and on screen I can see an indent and a border (ckeditor style). When I put this content on my page with ckeditor style linked, the style on my all page is changed but I wish the ckeditor style will be used only for the tag where I display the content.
In the form, there are no problems because it is in an iframe which contains a complete html page with a link to ckeditor style, Therefore, the style is not applied outside the form on my page.
Finally, the question is : how to applied the ckeditor style on page whereas the css selectors are for tags directly in the <body> of a page but on my page the content is in an <article> tag so title, list and other styles are not applied on my content and worse it is applied on my body page.