Elxis CMS Forum

Extensions => Components => Topic started by: jorgebravoc on May 30, 2011, 09:36:21

Title: HTML Submit Content
Post by: jorgebravoc on May 30, 2011, 09:36:21
Hello everybody:

I have noticed that when someone with lower than superadmin level posts something from the frontend using the Add Content interface the HTML code gets deleted, the formats get messed up, things like tables, margins, img borders, etc... so when they are being created they look fine but they get messed up when published. I´m using the TinyMCE Editor to insert content form the frontend.

Anybody knows how to keep the html someone (other than a superadmin, author actually) creates when styling text, images and tables from the frontend?

thanks a lot
Title: Re: HTML Submit Content
Post by: datahell on May 30, 2011, 19:22:25
You mean that any formatting is deleted? The article remains plain text? For example if you just make something bold it will be deleted after you press the submit button?
Title: Re: HTML Submit Content
Post by: jorgebravoc on May 31, 2011, 20:42:34
yeah, especially with positioning images. Someone could make an article using the TinyMCE editor at the frontend with a couple of images, formated, aligned left or right, tables, etc... and when they get published they show up as if they had no-formatting so what I have to do is access the article from the backend as a superadmin and re-format, thn when I save and publish it shows up as intended, well formated.
Title: Re: HTML Submit Content
Post by: datahell on May 31, 2011, 21:04:28
I just tested it on Elxis 2009.2 and I don't see any problem. The formatting is preserved just fine...
It needs debugging on your site to tell why it doesn't work for you. If you wish you can do the following test.

1. Write an article and make something bold, colour some text, etc. Submit the article.
2. Click to edit the article (before publish). Is the format preserved?
3. If yes, login as admin go to administration area -> content -> submitted content and edit the article. Is the format preserved?
4. Save the article and re-open it for edit. Is the format preserved?

Where exactly the formatting was lost?
Title: Re: HTML Submit Content
Post by: jorgebravoc on June 01, 2011, 05:09:25
the formatting mainly disapears with images, I enabled the Ibrowser and when someone adds an image from it and gives a margin or border, the margins and borders disapear, the text is right next to the image as if it had no margins...
Title: Re: HTML Submit Content
Post by: datahell on June 01, 2011, 17:37:08
ibrowser is not displayed in frontend! Have you modified the editor?
Title: Re: HTML Submit Content
Post by: jorgebravoc on June 05, 2011, 00:24:12
yeah, I modified it using a code I found here in the forum, it works perfectly. I'm fixing this problem by assigning a constant margin for any image inside the div holding the main content.