You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<jsml xmlns="http://cutesoft.net/jsml"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../core/jsml.xsd">
|
|
|
|
<panel jsml-base="rtemenuitem" htmlcode="@MOVE" imagename="move">
|
|
<attach name="click">
|
|
<![CDATA[
|
|
var node=option.dragcontrol;
|
|
var div=new $rte.ContainerElement("div");
|
|
editor.InsertNode(div);
|
|
node.RemoveNode(true);
|
|
div.GetParent().InsertBefore(node,div);
|
|
div.RemoveNode(false);
|
|
editor.SelectControl(node);
|
|
editor.RangeSyncToDom(true);
|
|
]]>
|
|
</attach>
|
|
</panel>
|
|
<panel jsml-base="rtemenuitem" htmlcode="@COPY" imagename="copy">
|
|
<attach name="click">
|
|
<![CDATA[
|
|
var node=option.dragcontrol;
|
|
var div=new $rte.ContainerElement("div");
|
|
editor.InsertNode(div);
|
|
node=node._cloneNode(true);
|
|
div.GetParent().InsertBefore(node,div);
|
|
div.RemoveNode(false);
|
|
editor.SelectControl(node);
|
|
editor.RangeSyncToDom(true);
|
|
]]>
|
|
</attach>
|
|
</panel>
|
|
<panel jsml-base="rtemenuitem" htmlcode="@CANCEL">
|
|
<attach name="click">
|
|
var node=option.dragcontrol;
|
|
editor.SelectControl(node);
|
|
editor.RangeSyncToDom(true);
|
|
</attach>
|
|
</panel>
|
|
|
|
|
|
</jsml>
|