Bug #795
Connect a button to Tinymce push button
| Status: | Feedback | Start date: | 04/19/2011 | |
|---|---|---|---|---|
| Priority: | Urgent | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | - | |||
| Target version: | - |
Description
Hello,
How to connect a button from tinymce editor (like save, or newdocument as shown in http://tinymce.moxiecode.com/tryit/full.php) to a "Wt connect" to handle the push button event ?
How to pass parameter to tinyMCE.init like
tinyMCE.init({'force_p_newlines' : false, 'forced_root_block' : 'div' }) ?
Thanks in advance for your help, Francesco.
History
#1 Updated by Francesco Alfano about 2 years ago
I'm sorry it is support request, not a bug !!!
#2 Updated by Koen Deforche about 2 years ago
- Status changed from New to Feedback
Hey Fransesco,
Could you try the following method:
http://redmine.webtoolkit.eu/boards/1/topics/1071
Regards,
koen
#3 Updated by Francesco Alfano about 2 years ago
Koen Deforche wrote:
Hey Fransesco,
Could you try the following method:
http://redmine.webtoolkit.eu/boards/1/topics/1071
Regards,
koen
Thanks for your response,
I can't use the method that you have proposed because the save button is already present in toolbar !
i've used the following code which automatically add a save button in toolbar
"
teTextEditor = new Wt::WTextEdit(teContainer);
teTextEditor->setExtraPlugins("autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template");
teTextEditor->resize(700, 400);
teTextEditor->setToolBar(0, "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect");
"
#4 Updated by Koen Deforche about 2 years ago
Hey Fransesco,
I see. So you actually want to react to an event of an existing standard button? Have you found whether this is possible in the documentation of TinyMCE? If so, I can help you with how to integrate it in your Wt application.
Regards,
koen
#5 Updated by Francesco Alfano about 2 years ago
Koen Deforche wrote:
Hey Fransesco,
I see. So you actually want to react to an event of an existing standard button?
Yes !
Have you found whether this is possible in the documentation of TinyMCE? If so, I can help you with how to integrate it in your Wt application.
Regards,
koen
Hello,
I have already contacted, you can see my post at:
http://tinymce.moxiecode.com/forum/viewtopic.php?id=25669
Thanks, for your time.