My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Tutorial  
How to use the editor in your code.
Updated May 11, 2009 by charalam...@gmail.com

Introduction

It is really simple to use and configure the editor at your needs. In the future there will be more funtionality through the java code. For now you can only set the init parameters using a configuration instance.

Step 1

Copy the jar in the WEB_INF/lib directory

Step 2

In your module xml configuration file insert the line

<inherits name="gr.open.TinymceGwt"/>

Details

Simple editor

The most simple way to create a tinyMCE widget (using the default configuration) is:

	public void onModuleLoad() {
		RootPanel.get().add(new TinyMCE());
	}

Using own configuration

If you want to use your own configuration, to change for example the skin, or the icons, you can create your own Configuration Class, extending the AbstractTinyMCEConfiguration class.

If you don't want to do something like that, you can use the following code:

	public void onModuleLoad() {
		TinyMCE editor = new TinyMCE();
		editor.getConfig().setTheme("simple");
		RootPanel.get().add(editor);
	}

This would create a simple editor.

Comment by kirtcat...@gmail.com, Aug 16, 2010

With multiple TinyMCE editors on the same page.... it seems that the same instance is assigned to them all. 'new' doesn't mean a whole lot with this implementation.

Comment by kirtcat...@gmail.com, Aug 16, 2010

I stand corrected... figured this out. Now how to set and retrieve styled text, HTML or whatever....

Comment by karsi...@gmail.com, Mar 2, 2011

i've done whats written here, and i'm getting error message:

ERROR? Unable to find 'gr/open/TinymceGwt?.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

what should i to use your plugin?

Comment by mukul1...@gmail.com, Dec 13, 2011

ASWs

Comment by ampahboyz, Dec 18, 2012

sorry my english badi'm using GWT 2.2.5, when i try getText() i not get value from TinyMCE pluginwhy?

Comment by tanna.sh...@gmail.com, Jul 15, 2015

This is not working for GWT 2.7

Powered by Google Project Hosting