I want to add a rich text editor to my GWT application. TinyMCE is one candidate, and so is the rich text editor in SmartGWT. Do you have any advice about choosing between the two?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I wouldn’t be so fast to dismiss TinyMCE – it has many advantages over the GWT’s rich text editor – for me, it was the plugins – I needed a rich text editor that would produce bbcode, not html – can’t do that with GWT’s components, unfortunately. So I extended the standard bbcode plugin for TinyMCE to suit my needs and voilà 🙂
Below is a class I used to integrate TinyMCE into GWT (slightly modified from the original class by Aaron Watkins in order to work around drag and drop issues and some other stuff ;)):
Edit: slightly changed to include suggestions by David
Remember to init TinyMCE in your html file, something like (the key setting is
mode : "textareas", the rest should be safe to change):You can also try some other wrappers like http://www.ohloh.net/p/tinymce-gwt