Thanks for the thorough answers. Den 8. apr. 2010 kl. 18.26 skrev Hussein Shafie:
> A simpler option would be to type Esc twice in order unselect the newly > inserted element. After doing this, you'll be able to paste the text. Thanks for the tip. >> When splitting elements in cases where it isn't possible to bind the split >> command to the Enter key (ie when there is a requiredd attribute), this >> makes for a lot of extra keypresses, since one has to cut out the text in >> question, add the new element, and then move back and forth with the arrow >> keys before one finally can paste in the text (and then you also have to add >> the required attribute values). It would be very helpful if it would be >> possible to paste textual content directly into newly created elements >> without having to click in it, or move the insertion point back and forth >> with the arrow keys. >> >> An even better solution would be to allow splitting to be bound to the Enter >> key also when attributes are required, either by specifying (a) default >> attribute value(s) in the config file, or by inheriting from the unsplit >> element. >> >> In our usage scenario (editing dictionary articles), splitting as described >> above is a very common action, and everything that can save on keypresses >> will save a lot of time for us. >> >> I'm using XXE 4.5.2 on MacOS 10.6.2. >> > > Out of the box, XXE works OK in most cases and we do not intend to > change its default behavior in the near future. Ok. I still find it unintuitive that pasting does work in some cases, and not in others, without any appearent reason (seen from a user perspective). > However, XXE is an extensible XML editor and it's possible to adapt it > to your specific needs. :-) > For the above cases, it's probably possible to > do it without programming: By programming, I assume you mean Java programming? > * Please confider rebinding some of its keyboard shortcuts: > > For example, Cmd-V is bound to command "paste" with parameter "toOrInto". > > If you rebind it to command "paste" with parameter "into", it will work > as expected in the above case (and will make Cmd-V unusable in other > cases!). Hm, probably not the optimal solution, but thanks for the info:) > * Please consider writing a few macro commands. Example: a smarter split. This is what I ended up doing, by first recording my actions, and then copying the resulting macro to the xxe configuration, and modifying it as needed. One small issue still remains: I would like to copy the value of one attribute from the origing element when creating new siblings as described in my first post. I could not find any way of doing it using the GUI (and thus no way to record the actions), but I did find the following java command: http://www.xmlmind.com/xmleditor//_distrib/doc/api/com/xmlmind/xmledit/cmd/attribute/SetAttributeValue.html Combined with some macro commands it should be possible to get the attribute value of the preceeding sibling (the old element), and add the attribute with the specified value to the current element. But I'm unable to see how to tie these things together, and I could find no examples of using that java command. Could you give me some hints on how to proceed? Best regards, Sjur Moshagen -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

