Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-12-31 06:17:18

herbie
New member
Registered: 2009-12-31
Posts: 2

can not configure formatblock

Hi all

I have a problem to configure the formatblock. As far as I can see the configuration is correct but when the editor is displayed the default formatblock is prepared. Rest of the configuration is working properly. Here is the part of the configuration:

  xinha_config.toolbar =
  [
    ["popupeditor"],
    ["separator","formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
    ["separator","forecolor","hilitecolor","textindicator"],
    ["separator","subscript","superscript"],
    ["linebreak","separator","justifyleft","justifycenter","justifyright","justifyfull"],
    ["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
    ["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
    ["linebreak","separator","undo","redo","selectall"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
    ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"],
    ["separator","htmlmode","showhelp","about"]
  ];
 
//^^ this configuration is working ok

// this declaration is not used
   xinha_config.formatblock =
   {
                "— format —"  : "",
                "Normal": "p",
                "Heading 1": "h3",
                "Heading 2": "h4",
                "Heading 3": "h5",
                "Heading 4": "h6",
                "Address"  : "address",
                "Formatted": "pre"
   };

Thank you for your feedback/help

Best regards
herbie

Offline

#2 2009-12-31 06:26:33

herbie
New member
Registered: 2009-12-31
Posts: 2

Re: can not configure formatblock

Sorry for this message, It's working like expected. I was struggling because of the automatic translation of the format names in german.

Best regards and a happy new year

Offline

Board footer

Powered by FluxBB