Coder Social home page Coder Social logo

molily / selectionmenu Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 9.0 23 KB

JavaScript context menu for selected text; Insert a source reference in copied text / JavaScript-Kontextmenü für ausgewählten Text; Fügt eine Quellenreferenz in kopierten Text ein

Home Page: http://molily.de/weblog/selectionmenu-copylink

JavaScript 67.44% HTML 29.35% CSS 3.21%

selectionmenu's Introduction

molily

Software developer with a focus on front-end web development and JavaScript web applications.

Writings

selectionmenu's People

Contributors

molily avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selectionmenu's Issues

No menu if mouseup outside paragraph

Because the mouseup listener is added on the container, if the selection ends slightly outside it, it won't register.Not sure if there's a good solution that doesn't involve the user adding a wrapper element.

no menu if mouseup outside paragraph

Direction sensitivity

When selecting a large chunk of text from right to left, the menu ideally should appear at the left edge of the selection, because

  1. That is where the user's pointing device will be
  2. That way the selection isn't obscured by the menu

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.