mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-24 08:02:15 +02:00
DOMVisitor demo now adds the selected text to the debug.log file when you click the "Visit DOM" button.
This commit is contained in:
parent
75cee6e6d8
commit
8da85dd1a8
@ -198,6 +198,11 @@ begin
|
|||||||
// As an example, this function only writes the document title to the 'debug.log' file.
|
// As an example, this function only writes the document title to the 'debug.log' file.
|
||||||
CefLog('CEF4Delphi', 1, CEF_LOG_SEVERITY_ERROR, 'document.Title : ' + document.Title);
|
CefLog('CEF4Delphi', 1, CEF_LOG_SEVERITY_ERROR, 'document.Title : ' + document.Title);
|
||||||
|
|
||||||
|
if document.HasSelection then
|
||||||
|
CefLog('CEF4Delphi', 1, CEF_LOG_SEVERITY_ERROR, 'document.SelectionAsText : ' + quotedstr(document.SelectionAsText))
|
||||||
|
else
|
||||||
|
CefLog('CEF4Delphi', 1, CEF_LOG_SEVERITY_ERROR, 'document.HasSelection : False');
|
||||||
|
|
||||||
// Simple DOM iteration example
|
// Simple DOM iteration example
|
||||||
SimpleDOMIteration(document);
|
SimpleDOMIteration(document);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user