|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2014
Device: none
|
How to register a plugin to viewer selected text context menu?
I want to write a plugin that uses selected text in the window of the epub viewer.
In the preferences is an option to configure the toolbar, I understand this is the place where ui-plugins are to be 'registered'. In the set of popupmenu items are 3 contextmenus to select from: library, device, coverbrowser. There is no entry for the contextmenu of epub-viewer's selected text. So how do I register this plugin? |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Moderator Notice where the code gurus hang out
Moved to development |
|
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont need to register the plugin simply implement the customize_context_menu() method in your plugin to do whatever you want with the menu.
|
|
|
|
![]() |
| Tags |
| register plugin, viewer context menu |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy in Preview Context Menu | BetterRed | Editor | 2 | 03-17-2014 01:35 AM |
| Add semantics context menu | Artha | Sigil | 1 | 11-22-2011 03:11 PM |
| Save One Format to Disk - Add to Context Menu? | nynaevelan | Library Management | 4 | 02-13-2011 10:16 PM |
| How to create custom context menu item? | gizban | Calibre | 2 | 08-22-2010 07:22 PM |
| no context-menu, no wifi | snakeduh | PocketBook | 3 | 07-08-2010 04:24 PM |