![]() |
#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: 30,897
Karma: 60358908
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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy in Preview Context Menu | BetterRed | Editor | 2 | 03-17-2014 12:35 AM |
Add semantics context menu | Artha | Sigil | 1 | 11-22-2011 02:11 PM |
Save One Format to Disk - Add to Context Menu? | nynaevelan | Library Management | 4 | 02-13-2011 09:16 PM |
How to create custom context menu item? | gizban | Calibre | 2 | 08-22-2010 06:22 PM |
no context-menu, no wifi | snakeduh | PocketBook | 3 | 07-08-2010 03:24 PM |