Project

General

Profile

Actions

Support #801

closed
FA PL

How to pass init parameter to tinyMCE Text Editor by WTextEdit

Support #801: How to pass init parameter to tinyMCE Text Editor by WTextEdit

Added by Francesco Alfano over 15 years ago. Updated about 15 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.

KD Updated by Koen Deforche over 15 years ago Actions #1

  • 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

FA Updated by Francesco Alfano over 15 years ago Actions #2

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" ?

PL Updated by Pieter Libin over 15 years ago Actions #3

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

FA Updated by Francesco Alfano over 15 years ago Actions #4

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?

PL Updated by Pieter Libin over 15 years ago Actions #5

  • 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

KD Updated by Koen Deforche about 15 years ago Actions #6

  • Target version set to 3.1.10

KD Updated by Koen Deforche about 15 years ago Actions #7

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom