Save button on WTextEdit
How can i add a "save as" button on WTextEdit and then connect this button to an event ?
Thanks for your help.
RE: Save button on WTextEdit - Added by Koen Deforche about 13 years ago
It isn't documented but, you can use editor->jsRef() + ".ed" to access the TinyMCE editor instance. Since the standard 'save' button does not do what you hope it would do, you'll need to add your own save button.
With that, and using the API described at: http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.Editor/addButton you could do something like:
The saveSignal_ object is then a JSignal<> to which you connect a C function which is called when the user clicks the save button.