1. There is ff2 exception NS_ERROR_XPC_JS_THREW_STRING with ContextMenu ( richfaces 3.1.4 ). It appears when mouse cursor goes from the contextmenu to the textarea element. The situation may be fixed like similar ToolTip bug. This code works normally, please check:
RichFaces.Menu.isWithin = function (event, element) { var within = false; Event.extend(event); var targetElement = event.relatedTarget; var srcElement = Event.element(event); try { // FF fix if (targetElement && targetElement.className=="anonymous-div") return false; } catch (e) { return false; } if (targetElement) { within = targetElement == element || $(targetElement).descendantOf(element); } return within; };
evalScripts: function() { return this.extractScripts().map(function(script) { /* richfaces RF-1794 bug fix */ return eval( script.replace(/^<!--\n/,'') ); }); },
evalScripts function is a prototype's function.
5. and last do you plan to add keyboard support to context menu?