Technical support This forum is closed.
Version 1.x > Technical support > CMSDesk BUG: HTML Editor completely destroys HTML layout View modes: 
User avatar
Member
Member
wtijsma - 12/27/2004 5:41:22 PM
   
CMSDesk BUG: HTML Editor completely destroys HTML layout
The HTML editor does very weird things. It completely trashes my manually entered HTML. The element names are transformed to uppercase, and paths in the <A HREF> attributes are rewritten. First it makes them relative, and after switching between HTML and Design modes, the paths are made exact. (to localhost, this is definately not wanted)

User avatar
Guest
admin - 12/28/2004 3:21:03 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
Hi Wiebe,

This is, unfortunately, a common behavior of the MSHTML component that is included in the Internet Explorer and that is used in all similar web-based WYSIWYG HTML editors and we cannot do anything about it :( The only solution is to use some other editor running as a Java Applet or ActiveX control and use it as a custom field type in the editing form.

Regarding paths: The path is trimmed so that it doesn't contain the name of the current server when content is saved, so you don't need to worry about it. The stored path is an absolute virtual path - e.g.:

http://localhost/KenticoCMS/CMSDesk/Files/myfile.gif
is replaced with
/KenticoCMS/CMSDesk/Files/myfile.gif

User avatar
Member
Member
wtijsma - 12/28/2004 3:28:29 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
Ok, that's good to know. I'll use some other editor. I'll try to implement this in a more modular fashion and send you the source codes.

I know there are editors out there that will maintain the XHMTL syntax.

User avatar
Guest
admin - 12/28/2004 3:37:27 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
OK, we plan to try integration with XStandard in future (http://www.xstandard.com) - it generates XHTML and they also have a free "lite" edition. If you try it before we do, please let us know how you liked it. Thank you.

User avatar
Member
Member
wtijsma - 12/28/2004 3:44:40 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
Ok, thanks, I'll try it. I think it would be useful to make this a configuration setting as well.

I think it would be useful to create an Interface for it (IHTMLEditor) implemented in a different assembly, configurable like data layer. (CMSHTMLEditorAssembly="Kentico.CMS....")

User avatar
Member
Member
wtijsma - 12/28/2004 4:24:11 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
Seems good... lots o' other alternatives as well (non-ActiveX, also supporting XHTML):

My main issue is that users may *only* use html elements and stylesheet classes and (no fonts, sizes, colors etc.)

http://cutesoft.net/example/ThemeSupport.aspx (commercial, non-activeX)

http://www.dynarch.com/demos/htmlarea/examples/full-page.html (free, but not no CSS stylesheet support)

http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_intro

and ofcourse
http://www.fckeditor.net/

If you're looking for the best calendar control:
http://www.dynarch.com/projects/calendar/

I still have to try them out to find the best one.

User avatar
Guest
admin - 12/28/2004 5:04:02 PM
   
Re: CMSDesk BUG: HTML Editor completely destroys HTML layout
OK, we will consider this for some future version. In the meantime, you can use it through custom field type (ASCX control with editor of your choice) - please see

Developer's Guide -> Custom Document Templates -> Creating Custom User Controls

for more details.