You are not logged in.
Hello,
I have just started using Xinha, and I found it was quite easy to cinfigure whatever I wanted to.
However, the "linebreak" keyword in the toolbar just seems to have no effect at all, either in FF or IE. I've searched the forum for a solution to this, but could not somehow find one.
I'm using a Nightly Build. Is that an issue?
Here's the simple code:
xinha_config.toolbar =
[
["popupeditor"],
["separator","formatblock","fontname","fontsize"],
["linebreak","separator","bold","italic","underline","strikethrough"],
["separator","forecolor","textindicator"],
["separator","justifycenter"],
["separator","insertorderedlist","insertunorderedlist"],
["separator","createlink","insertimage"],
["separator","undo","redo","selectall","print"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
["separator","killword","clearfonts","removeformat"],
["separator","htmlmode","showhelp","about"]
];
Am I doing something stupid ?
Thanks for help.
Offline
by default, config.flowToolbars is set to true.
And here is quoted from changeset:471 line 323, it explain a special behavior if you put a linebreak and separator next to each others, perhaps it can help you.
// Turning this on will turn all "linebreak" and "separator" items in your toolbar into soft-breaks,
// this means that if the items between that item and the next linebreak/separator can
// fit on the same line as that which came before then they will, otherwise they will
// float down to the next line.
// If you put a linebreak and separator next to each other, only the separator will
// take effect, this allows you to have one toolbar that works for both flowToolbars = true and false
// infact the toolbar below has been designed in this way, if flowToolbars is false then it will
// create explictly two lines (plus any others made by plugins) breaking at justifyleft, however if
// flowToolbars is false and your window is narrow enough then it will create more than one line
// even neater, if you resize the window the toolbars will reflow. Niiiice.
Offline
Thanks !
That worked. And it was really nice you told me about that separator issue, I don't think I could have figured it out.
Offline
Where do I find this config.flowToolbars?
Offline
Where do I find this config.flowToolbars?
Great, the newbie gets to help someone. :-)
Look at the last line
xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();
xinha_config.width = 800;
xinha_config.height = 600;
xinha_config.mozParaHandler = 'built-in'; //This gets you br's insted of p's
xinha_config.flowToolbars = false ;
Offline