Add support for using the current text selection as the find string on iOS
[WebKit-https.git] / Source / WebCore / editing / Editor.cpp
index a5e8584..8d17137 100644 (file)
@@ -4256,4 +4256,10 @@ RefPtr<HTMLImageElement> Editor::insertEditableImage()
     return InsertEditableImageCommand::insertEditableImage(document());
 }
 
+bool Editor::canCopyExcludingStandaloneImages() const
+{
+    auto& selection = m_frame.selection().selection();
+    return selection.isRange() && !selection.isInPasswordField();
+}
+
 } // namespace WebCore