Changeset 97
- Timestamp:
- 05/02/05 15:39:55 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/ContextMenu/context-menu.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ContextMenu/context-menu.js
r60 r97 92 92 img = target; 93 93 elmenus.push(null, 94 [ HTMLArea._lc(" Image Properties", "ContextMenu"),94 [ HTMLArea._lc("_Image Properties...", "ContextMenu"), 95 95 function() { 96 96 editor._insertImage(img); … … 103 103 link = target; 104 104 elmenus.push(null, 105 [ HTMLArea._lc(" Modify Link", "ContextMenu"),105 [ HTMLArea._lc("_Modify Link...", "ContextMenu"), 106 106 function() { editor.config.btnList['createlink'][3](editor); }, 107 107 HTMLArea._lc("Current URL is", "ContextMenu") + ': ' + link.href, 108 108 config.btnList["createlink"][1] ], 109 109 110 [ HTMLArea._lc("Chec k Link", "ContextMenu"),110 [ HTMLArea._lc("Chec_k Link...", "ContextMenu"), 111 111 function() { window.open(link.href); }, 112 112 HTMLArea._lc("Opens this link in a new window", "ContextMenu") ], 113 113 114 [ HTMLArea._lc(" Remove Link", "ContextMenu"),114 [ HTMLArea._lc("_Remove Link...", "ContextMenu"), 115 115 function() { 116 116 if (confirm(HTMLArea._lc("Please confirm that you want to unlink this element.", "ContextMenu") + "\n" + … … 128 128 if (!tbo) break; 129 129 elmenus.push(null, 130 [ HTMLArea._lc("C ell Properties", "ContextMenu"),130 [ HTMLArea._lc("C_ell Properties...", "ContextMenu"), 131 131 function() { tableOperation("TO-cell-prop"); }, 132 132 HTMLArea._lc("Show the Table Cell Properties dialog", "ContextMenu"), … … 138 138 if (!tbo) break; 139 139 elmenus.push(null, 140 [ HTMLArea._lc("Ro w Properties", "ContextMenu"),140 [ HTMLArea._lc("Ro_w Properties...", "ContextMenu"), 141 141 function() { tableOperation("TO-row-prop"); }, 142 142 HTMLArea._lc("Show the Table Row Properties dialog", "ContextMenu"), 143 143 config.btnList["TO-row-prop"][1] ], 144 144 145 [ HTMLArea._lc("I nsert Row Before", "ContextMenu"),145 [ HTMLArea._lc("I_nsert Row Before", "ContextMenu"), 146 146 function() { tableOperation("TO-row-insert-above"); }, 147 147 HTMLArea._lc("Insert a new row before the current one", "ContextMenu"), 148 148 config.btnList["TO-row-insert-above"][1] ], 149 149 150 [ HTMLArea._lc("In sert Row After", "ContextMenu"),150 [ HTMLArea._lc("In_sert Row After", "ContextMenu"), 151 151 function() { tableOperation("TO-row-insert-under"); }, 152 152 HTMLArea._lc("Insert a new row after the current one", "ContextMenu"), 153 153 config.btnList["TO-row-insert-under"][1] ], 154 154 155 [ HTMLArea._lc(" Delete Row", "ContextMenu"),155 [ HTMLArea._lc("_Delete Row", "ContextMenu"), 156 156 function() { tableOperation("TO-row-delete"); }, 157 157 HTMLArea._lc("Delete the current row", "ContextMenu"), … … 163 163 if (!tbo) break; 164 164 elmenus.push(null, 165 [ HTMLArea._lc(" Table Properties", "ContextMenu"),165 [ HTMLArea._lc("_Table Properties...", "ContextMenu"), 166 166 function() { tableOperation("TO-table-prop"); }, 167 167 HTMLArea._lc("Show the Table Properties dialog", "ContextMenu"), 168 168 config.btnList["TO-table-prop"][1] ], 169 169 170 [ HTMLArea._lc("Insert Column Before", "ContextMenu"),170 [ HTMLArea._lc("Insert _Column Before", "ContextMenu"), 171 171 function() { tableOperation("TO-col-insert-before"); }, 172 172 HTMLArea._lc("Insert a new column before the current one", "ContextMenu"), 173 173 config.btnList["TO-col-insert-before"][1] ], 174 174 175 [ HTMLArea._lc("Insert C olumn After", "ContextMenu"),175 [ HTMLArea._lc("Insert C_olumn After", "ContextMenu"), 176 176 function() { tableOperation("TO-col-insert-after"); }, 177 177 HTMLArea._lc("Insert a new column after the current one", "ContextMenu"), 178 178 config.btnList["TO-col-insert-after"][1] ], 179 179 180 [ HTMLArea._lc("De lete Column", "ContextMenu"),180 [ HTMLArea._lc("De_lete Column", "ContextMenu"), 181 181 function() { tableOperation("TO-col-delete"); }, 182 182 HTMLArea._lc("Delete the current column", "ContextMenu"), … … 204 204 205 205 if (selection && !link) 206 menu.push(null, [ HTMLArea._lc("Make lin k", "ContextMenu"),206 menu.push(null, [ HTMLArea._lc("Make lin_k...", "ContextMenu"), 207 207 function() { editor.config.btnList['createlink'][3](editor); }, 208 208 HTMLArea._lc("Create a link", "ContextMenu"), … … 214 214 if (!/html|body/i.test(currentTarget.tagName)) 215 215 menu.push(null, 216 [ HTMLArea._lc("Remove the", "ContextMenu") + " <" + currentTarget.tagName + "> " + HTMLArea._lc("Element ", "ContextMenu"),216 [ HTMLArea._lc("Remove the", "ContextMenu") + " <" + currentTarget.tagName + "> " + HTMLArea._lc("Element...", "ContextMenu"), 217 217 function() { 218 218 if (confirm(HTMLArea._lc("Please confirm that you want to remove this element:", "ContextMenu") + " " +
