mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Annotations, part 1 (#11563)
New format to handle annotations (page bookmarks, highlights, notes) and store them in the book metadata files.
This commit is contained in:
@@ -3,7 +3,7 @@ ReaderLink is an abstraction for document-specific link interfaces.
|
||||
]]
|
||||
|
||||
local BD = require("ui/bidi")
|
||||
local ButtonDialogTitle = require("ui/widget/buttondialogtitle")
|
||||
local ButtonDialog = require("ui/widget/buttondialog")
|
||||
local ConfirmBox = require("ui/widget/confirmbox")
|
||||
local Device = require("device")
|
||||
local DocumentRegistry = require("document/documentregistry")
|
||||
@@ -118,7 +118,7 @@ function ReaderLink:init()
|
||||
end)
|
||||
if G_reader_settings:isTrue("opening_page_location_stack") then
|
||||
-- Add location at book opening to stack
|
||||
self.ui:registerPostReadyCallback(function()
|
||||
self.ui:registerPostReaderReadyCallback(function()
|
||||
self:addCurrentLocationToStack()
|
||||
end)
|
||||
end
|
||||
@@ -858,7 +858,7 @@ end
|
||||
|
||||
function ReaderLink:onGoToExternalLink(link_url)
|
||||
local buttons, title = self:getButtonsForExternalLinkDialog(link_url)
|
||||
self.external_link_dialog = ButtonDialogTitle:new{
|
||||
self.external_link_dialog = ButtonDialog:new{
|
||||
title = title,
|
||||
buttons = buttons,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user