Skip to content

Commit 08b2610

Browse files
committed
editing atoms for moving the caret behind/before the current element
These atoms are so generic. They are used by downstream frameworks.
1 parent bd118cc commit 08b2610

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- editing atom -->
3+
<!-- this will move the caret before the current element. -->
4+
<a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://www.oxygenxml.com/ns/author/external-action http://www.oxygenxml.com/ns/author/external-action/authorAction.xsd"
7+
id="move.caret.before.current">
8+
<a:name>Move caret before the current element</a:name>
9+
<a:description>Inserts a new section.</a:description>
10+
<a:operations>
11+
<a:operation id="MoveCaretOperation">
12+
<a:xpathCondition>self::*</a:xpathCondition>
13+
<a:arguments>
14+
<a:argument name="position">Before</a:argument>
15+
<a:argument name="selection">Element</a:argument>
16+
<a:argument name="xpathLocation">self::*</a:argument>
17+
</a:arguments>
18+
</a:operation>
19+
</a:operations>
20+
<a:accessKey/>
21+
</a:authorAction>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- editing atom -->
3+
<!-- this will move the caret behind the current element. -->
4+
<a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://www.oxygenxml.com/ns/author/external-action http://www.oxygenxml.com/ns/author/external-action/authorAction.xsd"
7+
id="move.caret.behind.current">
8+
<a:name>Move caret behind the current element</a:name>
9+
<a:description>Inserts a new section.</a:description>
10+
<a:operations>
11+
<a:operation id="MoveCaretOperation">
12+
<a:xpathCondition>self::*</a:xpathCondition>
13+
<a:arguments>
14+
<a:argument name="position">After</a:argument>
15+
<a:argument name="selection">Element</a:argument>
16+
<a:argument name="xpathLocation">self::*</a:argument>
17+
</a:arguments>
18+
</a:operation>
19+
</a:operations>
20+
<a:accessKey/>
21+
</a:authorAction>

0 commit comments

Comments
 (0)