Skip to content

Commit

Permalink
editing atoms for moving the caret behind/before the current element
Browse files Browse the repository at this point in the history
These atoms are so generic. They are used by downstream frameworks.
  • Loading branch information
lueck committed Feb 15, 2024
1 parent bd118cc commit 08b2610
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- editing atom -->
<!-- this will move the caret before the current element. -->
<a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/author/external-action http://www.oxygenxml.com/ns/author/external-action/authorAction.xsd"
id="move.caret.before.current">
<a:name>Move caret before the current element</a:name>
<a:description>Inserts a new section.</a:description>
<a:operations>
<a:operation id="MoveCaretOperation">
<a:xpathCondition>self::*</a:xpathCondition>
<a:arguments>
<a:argument name="position">Before</a:argument>
<a:argument name="selection">Element</a:argument>
<a:argument name="xpathLocation">self::*</a:argument>
</a:arguments>
</a:operation>
</a:operations>
<a:accessKey/>
</a:authorAction>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- editing atom -->
<!-- this will move the caret behind the current element. -->
<a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/author/external-action http://www.oxygenxml.com/ns/author/external-action/authorAction.xsd"
id="move.caret.behind.current">
<a:name>Move caret behind the current element</a:name>
<a:description>Inserts a new section.</a:description>
<a:operations>
<a:operation id="MoveCaretOperation">
<a:xpathCondition>self::*</a:xpathCondition>
<a:arguments>
<a:argument name="position">After</a:argument>
<a:argument name="selection">Element</a:argument>
<a:argument name="xpathLocation">self::*</a:argument>
</a:arguments>
</a:operation>
</a:operations>
<a:accessKey/>
</a:authorAction>

0 comments on commit 08b2610

Please sign in to comment.