下面的代码修改默认菜单(新版本已改成下面的菜单 )

import fsys.res;
var res = fsys.res.open( io.fullpath( "~\lib\web\layout\.res\HTMLayout.dll" ) ,false);

html = /*
<menu>
<li command="behavior:edit:undo"
style="foreground-image:url(res:edit-undo.png)"
>撤消<span class="accesskey">Ctrl+Z</span></li>
<hr/>
<li command="behavior:edit:cut"
style="foreground-image:url(res:edit-cut.png)"
>剪切<span class="accesskey">Ctrl+X</span></li>
<li command="behavior:edit:copy"
style="foreground-image:url(res:edit-copy.png)"
>复制<span class="accesskey">Ctrl+C</span></li>
<li command="behavior:edit:paste"
style="foreground-image:url(res:edit-paste.png)"
>粘贴<span class="accesskey">Ctrl+V</span></li>
<hr/>
<li command="behavior:edit:selectall"
>全选<span class="accesskey">Ctrl+A</span></li>
</menu>
*/
res.update(23/*_RT_HTML*/,"BEHAVIOR-EDIT-MENU",string.fromto(html,0,65001));

html = /*
<menu .plaintext-context>
<li command="richtext:undo"
style="foreground-image:url(res:edit-undo.png)"
>撤消<span class="accesskey">Ctrl+Z</span></li>
<hr/>
<li command="richtext:cut"
style="foreground-image:url(res:edit-cut.png)"
>剪切<span class="accesskey">Ctrl+X</span></li>
<li command="richtext:copy"
style="foreground-image:url(res:edit-copy.png)"
>复制<span class="accesskey">Ctrl+C</span></li>
<li command="richtext:paste"
style="foreground-image:url(res:edit-paste.png)"
>粘贴<span class="accesskey">Ctrl+V</span></li>
<hr/>
<li command="richtext:selectall"
>全选<span class="accesskey">Ctrl+A</span></li>
</menu>
*/
res.update(23/*_RT_HTML*/,"BEHAVIOR-TEXT-MENU",string.fromto(html,0,65001));

html = /*
<menu .richtext-context>
<li command="richtext:undo"
style="foreground-image:url(res:edit-undo.png)"
>撤消<span class="accesskey">Ctrl+Z</span></li>
<hr/>
<li command="richtext:cut"
style="foreground-image:url(res:edit-cut.png)"
>剪切<span class="accesskey">Ctrl+X</span></li>
<li command="richtext:copy"
style="foreground-image:url(res:edit-copy.png)"
>复制<span class="accesskey">Ctrl+C</span></li>
<li command="richtext:paste"
style="foreground-image:url(res:edit-paste.png)"
>粘贴<span class="accesskey">Ctrl+V</span></li>
<li>选择性粘贴
<menu>
<li command="richtext:paste-plain-text">HTML转换为文本</li>
<li command="richtext:paste-text-as-html">粘贴HTML代码 </li>
<li command="richtext:paste-html-no-tables">粘贴HTML格式(移除表格)</li>
</menu>
</li>
<hr/>
<li command="richtext:selectall"
>全选<span class="accesskey">Ctrl+A</span></li>
<div .cell-selection>
<caption style="color:graytext">单元格:<img.hr/></caption>
<li command="richtext:merge-cells"
>合并<span class="accesskey">Backspace</span></li>
<li command="richtext:split-cells-by-rows"
>拆分行<span class="accesskey">Ctrl+1</span></li>
<li command="richtext:split-cells-by-cols"
>拆分列<span class="accesskey">Ctrl+2</span></li>
</div>
</menu>
*/
res.update(23/*_RT_HTML*/,"BEHAVIOR-RICHTEXT-MENU",string.fromto(html,0,65001));
res.close();

原文链接:https://bbs.aardio.com/forum.php?mod=viewthread&tid=10418&extra=page%3D7