Home Forums DITA and XMetaL Discussion Customize element creation when editor creates new line Reply To: Customize element creation when editor creates new line

Derek Read

Reply to: Customize element creation when editor creates new line

If you are at the end of a list and the last list item contains no content pressing enter finishes the list and the next logical element is inserted (in this case

is inserted after the list). If you are at the end of a list and the last list item contains some content then pressing enter adds another list item.

I assume that is what you are seeing?

Assuming the following basic markup as the starting point:

     

1. Type some text:

     

  1. some text

2. Press enter:

     

  1. some text
  2.  

You can repeat steps 1 and 2 indefinitely to extend any list.

3. After repeating steps 1 and 2 a few times if you press enter without entering anything into the last list item that was created you exit the list:

     

  1. some text
  2.  

  3. some more text
  4.  

  5. even more text

For a list containing two or more items pressing enter at the end of any list item except the last one will always insert a new list item at that position.

If you are at the very start of a list before all list items (this is only possible in Tags On view) then pressing enter creates a new list before the current one (internally the list is actually being split).

If you are at the very end of a list after all list items (this is only possible in Tags On view) then pressing enter always inserts the next logical element after the list (which for DITA is a

).

If you aren't seeing this behaviour then there is probably something wrong with the installation of the DITA authoring functionality and I would recommend reinstalling.

Reply

Products
Downloads
Support