cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Content Restrictions

scott_anderson
Champ in-the-making
Champ in-the-making
I want to add an html form that contains a text area to an HTML content item but I find that Alfresco is prohibiting me from doing this. I add a beginning and ending form tag in the HTML source editor, click on the update button, and then return to the editor and the form tags are gone. Is there a way to accomplish what I want? Why does this operation silently fail without an explanatory error message? I am using a recent version of Alfresco 2.0 built from the svn repo.
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
How are you trying to do this? What editor are you using? Do you mean that source code you write disappears?

We use JSF for the app and the form tags are actually already on every page, are you using JSF components?

Maybe posting your code will help.

scott_anderson
Champ in-the-making
Champ in-the-making
I am using Alfresco's web client (which I built myself from a recent svn snapshot) to add new content to the repository. The operation is not related to any coding on my part. In the web client I simply create new HTML content and click on the HTML button in the WYSIWYG editor, which opens the "HTML source editor" in a separate browser window. When I type in an opening and closing form element , select update, and then re-open this editor the form tags are gone.

I have subsequently found a work around by creating this content item as type TEXT instead of type HTML, but I am still interested in why these restrictions exist in the latest code base.

scott_anderson
Champ in-the-making
Champ in-the-making
On a related topic … The HTML Source Editor would be much more usable if the HTML was not reformatted each time it gets updated. I would very much prefer that my line breaks get preserved so the markup is still readable when I re-open this editor.