HTML Area: using a different editor

Questions and answers for designing and implementing forms in Servoy

HTML Area: using a different editor

Postby studiomiazzo » Wed Jun 19, 2013 9:52 am

Hi all, is there any way to use an advanced editor (ckeditor / tinyMCE / Fckeditor) instead of the default one (which don't let us use some objects such as tables, paste from word, ecc...) in an HTML Area field? Thanks.
User avatar
studiomiazzo
 
Posts: 124
Joined: Thu Jun 16, 2011 10:48 am
Location: Novara (IT)

Re: HTML Area: using a different editor

Postby david » Wed Jun 19, 2013 6:15 pm

Smart or web client?
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: HTML Area: using a different editor

Postby studiomiazzo » Thu Jun 20, 2013 8:50 am

Good question! Webclient! Thanks.
User avatar
studiomiazzo
 
Posts: 124
Joined: Thu Jun 16, 2011 10:48 am
Location: Novara (IT)

Re: HTML Area: using a different editor

Postby david » Thu Jun 20, 2013 4:23 pm

You can edit the button configuration of Servoy's (which is YUI's Rich Text Editor) with the trick posted here: viewtopic.php?f=34&t=19075#p102710

However, this component doesn't have table editing support. I bet it would be possible to integrate http://www.garbageburrito.com/blog/entr ... ext-editor into it though.

Note that none of these rich text editors are very good at supporting pasted formatted MS word text. It can really screw things up actually.

For this reason (and the fact that people will do crazy things in a rich text editor like increase the font size by 1 point and the result won't match anything else), with Sutra CMS we've recently moved away from TinyMCE as our default data entry block to using Markdown. Much cleaner html code output that matches the css of whatever web template and actually easier (much less confusing) for users to use once they get over a short learning curve.

The code is here: https://www.servoyforge.net/projects/su ... sions/1065 if you want to take a look at it. Could be applied to a web client html field using web client utils plugin. Use a design-time property to tag html area fields in the designer that should get this component.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.


Return to Forms

Who is online

Users browsing this forum: No registered users and 3 guests

cron