Giter Club home page Giter Club logo

Comments (4)

stsquad avatar stsquad commented on September 18, 2024

The reason at the moment it fails is because the text box on the page isn't a textarea:

<div id="comment" contenteditable="true" role="textarea" aria-multiline="true" style="font-family: arial; height: 100%; overflow-x: hidden; overflow-y: hidden; " class="placeholder">Type your comment here.</div>

It's the same reason you can't use it for Google+ text boxes at the moment. I have experimented with other options but I'm not sure if there is a safe way to identify arbitrary 's as being editable.

The implementation on that page seems to have added an keydown event catching to the node which catches the key events and then inserts the typed text into the DOM.

from emacs_chrome.

stsquad avatar stsquad commented on September 18, 2024

Ahh it seems that contenteditable is an HTML5 thing that should be consistent. However the process of retrieving and setting information is a little different than with textareas so I shall need to furtle around when I have a bit more time. However I think it is doable.

from emacs_chrome.

stsquad avatar stsquad commented on September 18, 2024

Hi Krishna,

I've just pushed some changes to the git repo which should fix this for you. Could you test and report back please?

from emacs_chrome.

krishnoid avatar krishnoid commented on September 18, 2024

Edit button, alt-enter, doubleclick all work; context menu produces an empty emacs buffer, which when submitted, dutifully clears the original textarea in the 'venturebeat' URL I provided above.

However, when trying to submit a comment on a Slashdot story (which looks similar to a Disqus area), the context menu works fine. Otherwise, it's working great -- very much appreciated. This is in Chrome 9 under Windows; I'm not sure if that's an issue.

Thanks!
Krishna

from emacs_chrome.

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.