+
+
+global $rightClickMenu;
+$rightClickMenu = [
+ [
+ "text" => "Copy",
+ "onclick" => "copy_to_clipboard(window.getSelection().toString())",
+ "icon" => "fa-clipboard"
+ ],
+ [
+ "text" => "Paste",
+ "onclick" => "paste_from_clipboard()",
+ "icon" => "fa-paint-brush",
+ ],
+];
+
+// register our menu
+Hook::run(HOOKTYPE_RIGHTCLICK_MENU, $rightClickMenu);