Philippe Nobili wrote:
> 
> Some time ago, we had this exchange (quoted from the support list):
>> Q2: Add after last child [more a suggestion for improvement ?]
>> > 
>> > You provide very convenient predefined functions to insert a new element; 
>> > something that is frequently needed (what we use most of the time 
>> > actually) is to add an element after the last child. It would be very 
>> > convenient to be able to do this when the parent is selected, e.g. 
>> > insert-after-last-child()
>> > 
>> We were thinking about this feature lately.
>>
> I did not see how to do this currently; is this feature in there, 

Yes, this feature has been implemented in v4.8.

Excerpts from http://www.xmlmind.com/xmleditor/changes.html#v4.8.0:
---
* Edit|Insert now works slightly differently. If an element is
explicitly selected, this command inserts an element or a text node
after its last child. Otherwise, this command inserts an element or a
text node at caret position.
---



> or could you give us some hints on how we could implement something about it ?
> 
> What we really seek is to be able in the CSS stylesheet to build a
> dynamic menu, e.g. as with *insert-after-button()*, but taking the last
> child of the selected element.

If you use insert-button() in XXE v4.8, this should work because by
default such command buttons explicitly select the element before
executing the command.

References:

*
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/insert-button.html

*
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/command-button.html


 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to