Project

General

Profile

Actions

Support #801

closed

How to pass init parameter to tinyMCE Text Editor by WTextEdit

Added by Francesco Alfano almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Pieter Libin
Target version:
Start date:
04/26/2011
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Koen Deforche almost 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

Actions #2

Updated by Francesco Alfano almost 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" ?

Actions #3

Updated by Pieter Libin almost 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

Actions #4

Updated by Francesco Alfano almost 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?

Actions #5

Updated by Pieter Libin almost 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

Actions #6

Updated by Koen Deforche over 12 years ago

  • Target version set to 3.1.10
Actions #7

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF