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.
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.
I stand corrected... figured this out. Now how to set and retrieve styled text, HTML or whatever....
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?
ASWs
sorry my english badi'm using GWT 2.2.5, when i try getText() i not get value from TinyMCE pluginwhy?
This is not working for GWT 2.7