Ticket #304 (new Bug)

Opened 21 months ago

Last modified 10 months ago

FormatIndentator cannot be reliably set via script interface

Reported by: tallyce Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Cc:

Description

I wish to have the FormatIndentator be a tab rather than 4 spaces. I also generally aim to put as much configuration in the scripting interface (e.g. calling via PHP/ASP/Perl/etc.) so that the config file can avoid having to be altered much.

Using

FCKConfig.FormatIndentator	= '	' ;

in fckconfig.js works fine.

But doing any of the following when calling via script (example in PHP) :

$instanceName->Config['FormatIndentator'] = '	' ;
$instanceName->Config['FormatIndentator'] = "	" ;
$instanceName->Config['FormatIndentator'] = "\t" ;
$instanceName->Config['FormatIndentator'] = "'	'" ;

fails. In the first three cases, NaN (not a number) is placed into the HTML source. In the fourth case, a tab surrounded by ' marks is put in (so a tab seems actually possible, just not on its own!)

Change History

Changed 19 months ago by fredck

  • keywords FormatIndentator removed
  • milestone set to FCKeditor 3.0

This one should came with #30.

Changed 10 months ago by w.olchawa

  • keywords Confirmed added

Confirmed

Note: See TracTickets for help on using tickets.