r1749 - branches/bxe_2_0/js
[email protected] Thu, 13 Sep 2007 08:41:03 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu Sep 13 08:41:03 2007
New Revision: 1749
Log:
fix BXEB-39
added "Insert Default Content" in popupmenu
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Thu Sep 13 08:41:03 2007
@@ -707,11 +707,21 @@
}
if (typeof BxeClipboardPasteDialog == 'function') {
- popup.addMenuItem(bxe_i18n.getText("Paste from Extern", new Array(node.vdom.bxeName)), function (e) {
+ popup.addMenuItem(bxe_i18n.getText("Paste from Extern"), function (e) {
var widget = e.currentTarget.Widget;
BxeTextClipboard_OpenDialog(e,widget.MenuPopup.MainNode);
});
}
+
+ if (node.canHaveText) {
+ popup.addMenuItem(bxe_i18n.getText("Insert Default Content"), function (e) {
+ var widget = e.currentTarget.Widget;
+ widget.MenuPopup.MainNode.makeDefaultNodes();
+ bxe_Transform(false,false,widget.MenuPopup.MainNode);
+
+ });
+ }
+
if (!node.vdom.bxeNoaddappenddelete) {
popup.addMenuItem(bxe_i18n.getText("Copy {0} Element", new Array(node.vdom.bxeName)), function (e) {
var widget = e.currentTarget.Widget;
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs