Giter Club home page Giter Club logo

Comments (5)

btate avatar btate commented on July 17, 2024

I'm not sure I follow you.

from btandroidwebviewselection.

coder4567 avatar coder4567 commented on July 17, 2024

ok, here's the thing, I'm working on an ebook project, so my webview's width depends on the number of pages I have in each chapter. when I go to the second page in my webview using the following javascript ("javascript:window.HTMLOUT.scrolltopage(window.scrollTo("+ scrollToX + ",0));";)
and I try to do the selection, the start handle and the end handle show on the first page instead, while the popwindow and the selection show on the second page(where their supposed to show); I'm wondering how can I modify the startHandle and endHandle to show on the second page as well. I tried to manipulate their coordinate in drawSelectionHandlesHandler by changing the x of startParams and endParams, but it didn't work they just disappeared instead. I hope you can give me a suggestion that I can work on, thank you

from btandroidwebviewselection.

coder4567 avatar coder4567 commented on July 17, 2024

oh well problem solved I had to increase layerParams.width before manipulating the coordinates that's why it was disappearing,
Anyway thank u, and hope this helps someone.

from btandroidwebviewselection.

spdeepa avatar spdeepa commented on July 17, 2024

I too had a problem in this. draghandler in not visible in second page. I too working on ebook project Can you please say how you highlighted the selectedText after user press button in contextmenu and i need to select more than one selection in a single page that is i dont want to clear the selection after user highlighted.

from btandroidwebviewselection.

btate avatar btate commented on July 17, 2024

I don't have support for multiple selections. The highlighting was adding css. The rangy library supports this. It's something along these lines rangy.createCssClassApplier("highlighted", true); You'll need this module to make it work, http://code.google.com/p/rangy/wiki/CSSClassApplierModule

from btandroidwebviewselection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.