On 09/18/2017 06:02 PM, Leif Halvard Silli wrote:
With XXE, in a DITA topic, do this:

 1. Copy some text
 2. Place the pointer/cursor at the end of a <p> element.
 3. Press Enter/Return (this will cause a new, emtpy p-element to be
    created - and also, the insertion point will move to the new empty
    paragraph)
 4. Now, without doing anything else, press Cmd-V to paste the text that
    you copied into the new empty pagraph.

  * Expected result: Copied text to be pasted into the new, empty p-element.
  * Actual result: Nothing happens
  * Workarounds: Do one of these before trying to paste - then pasting
    will work:
      o Either: Click inside the empty p-element in order to activate
        the 'text' node.
      o Or: press the upwards-arrow, and then the downwards-arrow.
      o Or: Type one character (and then delete it, if you don’t want it
        there)

A similar example, where things does work: Insert a new entry in a DITA
<dl> list: Pasting then works, without workarounds.


This issue is not related to <p> or to <dl>.

When you insert a new element, it is automatically *explicitly* *selected* (red box around it) and the caret is moved inside it.

By pressing Cmd-V, XXE thinks that you want to replace the element as a whole (e.g. the new <p>) by some plain text. Because this is seldom a valid action, generally nothing happens.

The simplest workaround is to press "Esc Esc" (cancel selection) before pressing Cmd-V.

Sorry for this XXE quirk.


--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to