Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Insert Text at Cursor? #54

Open
alanjames1987 opened this issue Feb 18, 2014 · 4 comments
Open

Feature: Insert Text at Cursor? #54

alanjames1987 opened this issue Feb 18, 2014 · 4 comments

Comments

@alanjames1987
Copy link

Is there a feature to insert text at the cursor?

If not I think this should be added.

@raphaelcruzeiro
Copy link
Owner

You mean like emulating the INSERT key?

@alanjames1987
Copy link
Author

I mean a method for inserting text programmatically where the user's cursor is. This would be useful for dictation software in Chrome and collaborative software using WebSockets.

@ghost
Copy link

ghost commented Mar 14, 2014

+1 wherr case can be inserting smilies (with custom button)

@raphaelcruzeiro
Copy link
Owner

Got it. It should be fairly simple to implement using the execCommand API .
I have some things to do before I can take a look at this. Meanwhile, if anyone wants to implement this, I se text insertion at the cursor position on the paste function https://github.com/raphaelcruzeiro/jquery-notebook/blob/master/src/js/jquery.notebook.js#L727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants