Sorry I can't write Eenglish well.. I use TinyMCE eidtor. it's very gooood editor..
http://consult.goannatravel.com/blog/2007/11/22/gwt-tinymce-widget/ <- convert tinymce.js to gwt wrapper class. question.. public TinyMainEditor() { editorId = "tinyMCE-" + System.currentTimeMillis(); loadListeners = new ArrayList(); changeListeners = new ArrayList(); textArea = new TextArea(); // textArea.setWidth("100%"); DOM.setElementAttribute(textArea.getElement(), "id", editorId); DOM.setStyleAttribute(textArea.getElement(), "width", "100%"); DOM.setStyleAttribute(textArea.getElement(), "height", "450"); initWidget(textArea); DeferredCommand.addCommand(new Command() { public void execute() { initEditor(); } }); } public TextArea getTextArea() { return textArea; } private native void initEditor()/*-{ ~~~~~ } ~~~~ ~~~ ~~~ I want TextArea key event. ==> textArea .addKeyboardListener(new KeyboardListenerAdapter(){ public void onKeyDown(Widget sender, char keyCode, int modifiers){ // if ( modifiers == KeyboardListener.MODIFIER_SHIFT) { // if ( (keyCode == (char) KEY_ENTER) ){ // System.out.println("DDD"); // } // if ( (keyCode == (char) KEY_ESCAPE) ){ // } // } System.out.println("editor"); } public void onKeyPress(Widget sender, char keyCode, int modifiers) { System.out.println("editor1"); } public void onKeyUp(Widget sender, char keyCode, int modifiers) { System.out.println("editor2"); } }); But it not work.. Beacuse tinymceEditor catch event... It is imposible?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
