TinyMCE examples

Questions and answers on developing, deploying and using plugins and JavaBeans

TinyMCE examples

Postby antonio » Wed Jul 11, 2012 3:16 pm

I have a Servoy 5 app and I'm looking for a way to implement HTML editing of a field in web client in the same way it works with smart clients. I've started to look at TinyMCE, but not fixed on that. I wonder if anyone has an example of how to put a HTML editor such as TinyMCE, FCKeditor on CKEditor on a simple form that works in WC.
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: TinyMCE examples

Postby steve1376656734 » Sat Oct 26, 2013 9:22 pm

Hi Tony,

Did you ever get this working and if so which editor did you settle on?

Thanks

Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: TinyMCE examples

Postby Harjo » Sun Oct 27, 2013 12:54 am

Did you try setting an HTML field into editable?

That gives you an HTML-editor in webclient automatically
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: TinyMCE examples

Postby steve1376656734 » Sun Oct 27, 2013 3:33 pm

Hi Harjo,

I've tried using an editable HTML_AREA and this does indeed bring up a nice HTML editor. The problem with this is that you then lose the built-in spell-checking capabilities of the browser that work fine on a TEXT_AREA. I wondered about using one of the other editors (specifically CKEditor) as this has a spell-checker as part of the editor but although I have been able to get the editor to show up no problem I cannot seem to get it to persist any changes in the text to the DB.

Any suggestions for a nice HTML editor with spell checking in the web client?

Thanks

Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: TinyMCE examples

Postby david » Mon Oct 28, 2013 3:25 pm

Servoy only data binds with input tags of type text and TinyMCE magic isn't done with any kind of input tags.

Use webClientUtils to add a server-side callback to a TinyMCE event to save data back.
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: TinyMCE examples

Postby steve1376656734 » Tue Oct 29, 2013 9:28 pm

Thanks for the guidance David. I was hoping for a simple switchout with the existing HTML_AREA editor but if that's not possible then I will stick to plain text with the spell checking until I have time to look at a more complex solution.

Many thanks

Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 33 guests