Hello, 

I'd like to ask about dealing with collapsible elements. I'm writing DocBook 
documents and in addition to the common DocBook configuration I decided to 
have ordered- and itemizedlists collapsible and by default collapsed. 
--- CSS begin---
itemizedlist listitem {
    collapsible: yes;
    not-collapsible-head: 1;
    collapsed: yes;
}

itemizedlist > listitem {
    margin-left: 6.5ex;
}

itemizedlist > listitem:before,
itemizedlist listitem itemizedlist > listitem:before {
    content: collapser() " " disc;
    padding-top: .6ex;
}
--- CSS end ---

I works. But there is one annoying thing. When I press Enter to add next para 
inside the listitem, the para is inserted in a good place and the cursor is 
placed in it, as it would be desired. And I can start writing. Unfortunately 
the listitem is getting collapsed, so before writing I do have to expand it. 
I'd like to look at text I'm writing :-).

The problem appeared in xxe 3.2.0 and is still in the newest release (3.5.1). 
In version 3.1.0 and before, using the same configuration, the thing was 
different. When I pressed Enter to add new para inside listitem, the listitem 
was collapsed at the first time. When I expanded it, addition of next para 
inside this listitem with the Enter key kept listitem expanded. 

The best solution would be that one which would not require expanding at all. 
So I would like to have: 
1. list elements collapsed at the file load, - I do have
2. possibility of adding new paras inside list elements with Enter key ? I do 
have
3. possibility of entering text in the newly added para looking at it right 
after the addition ? I don't have. 

I looked inside original configuration of DocBook included with xxe versions 
3.1.0 and 3.5.1, and I think that the functionality of using Enter key for 
addition of new para is in the definition of docb.joinOrDeleteChar command 
(common.incl file). The definitions remained the same between versions. 

Please give any hint, how could I manage the problem.

Best regards, 
Robert Ganowski

Reply via email to