Support #801
closedHow to pass init parameter to tinyMCE Text Editor by WTextEdit
0%
Description
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.
Updated by Koen Deforche over 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
Hey,
You can't do this at the moment. It would require a small patch to WTextEdit. The init() call is at line 103. Note that this is global, affecting al editors in your applications. Therefore, a configuration property is probably suitable.
Regards,
koen
Updated by Francesco Alfano over 13 years ago
Koen Deforche wrote:
Hey,
You can't do this at the moment. It would require a small patch to WTextEdit. The init() call is at line 103. Note that this is global, affecting al editors in your applications. Therefore, a configuration property is probably suitable.
Regards,
koen
Hello,
what do you mean by "configuration property is probably suitable" ?
Updated by Pieter Libin over 13 years ago
Dear Francesco,
we propose to make a wt_config.xml property tinymce.init.
This should be suitable, since the values passed to tinymce's init function are applied on all tinymce instances.
Kind regards,
Pieter
Updated by Francesco Alfano over 13 years ago
Pieter Libin wrote:
Dear Francesco,
we propose to make a wt_config.xml property tinymce.init.
This should be suitable, since the values passed to tinymce's init function are applied on all tinymce instances.Kind regards,
Pieter
Hello,
this is a new thing to develop for Wt?
Updated by Pieter Libin over 13 years ago
- Status changed from InProgress to Resolved
Dear Francesco,
we discovered that configuration settings can be applied to tinymce instances as well,
we implemented this by adding a setConfigurationSetting/configurationSetting in WTextEdit.
This change will be pushed to the public git soon.
kind regards,
Pieter
Updated by Koen Deforche over 13 years ago
- Status changed from Resolved to Closed