i want to select a list and indent it using the indent button.
it is disabled when i select the whole list with the mouse.
if i indent the list with a custom button using inserthtml it adds extra tags <li>
Why is this ?
What is the solution ?
it is disabled when i select the whole list with the mouse.
if i indent the list with a custom button using inserthtml it adds extra tags <li>
Why is this ?
What is the solution ?
Re: indent of unnumbered list or numbered list does not work
A lot of changes to fckeditor between versions 2.2 to 2.5, the main ones being the change in structure of the js files !
indent used to be done with fckformatlist, while as now there is a lot of code for indent in FCKIndentcommand.
1. to allow indent button when selecting ENTIRE list :
change to GetState : function --> return TRISTATE 0 instead of -1 if no previous sibling
2. in execute function : if common parent node ..... ['ul','ol]...
this._IndentBlock() in both cases !!!
This does mean that the indenting is done with margin_left instead of inserting extra <ul> or <ol> tags, but the functionality is there ,