Coder Social home page Coder Social logo

jquery.caret's People

Contributors

acdvorak avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.caret's Issues

Bug

$('#e_con_name').caret(); return an Object and not a number . Let me know where I'm wrong. Thanks.

Caret postion in contenteditable div

It would be really useful to be able to get the caret's position in a content-editable div that includes the length of the div's elements such as &nbsp; and <br>.

I would be happy to implement this feature. Does anybody have an opinion on whether this would be an appropriate addition to jquery.caret?

Put only last version in dist

dist folder should only contain last version, without version number suffix.

Package manager are here to handle the version we install & configuration / import file link to dist/lib_name.js. Having to handle version number everywhere is painfull.

Multiple lines

It ignores any characters before the current line- it doesn't work with multiple lines.

Can't set caret position in contenteditable div

Everything is working normally and perfectly when the contenteditable div contains only text.

When I have tags inside, it fails... It only takes the first text node inside the contenteditable div... It supposes to calculate all the nodes (img, span, etc) inside the contenteditable text.

The image below shows contenteditable div containing images (emojis)...

When I am checking the caret position when the div contains the image element, it calculates it perfectly, with no errors, the problem is when setting the caret position.

Checking the caret position: console.log( $('#cmb-text').caret()

wqedad

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.