-
Notifications
You must be signed in to change notification settings - Fork 27
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
Compatibility with TinyMCE 3? #3
Comments
Sorry, it looks like TinyMCE has this capability already and I didn't know it. // get the selected text in the editor
alert(tinymce.activeEditor.selection.getContent());
// replace the selected text with different text
alert(tinymce.activeEditor.selection.setContent('Ready for battle princess?')); |
Typically I would not advise the use of this plugin with any WYSIWYG editors, as so much is going on within the actual editor. It's a bit out of scope for this jQuery plugin and as you found out many of the extensive editors have this functionality already. |
No idea, it's beyond my JavaScript skills at the moment. In any case, thanks for a great plugin. On Sep 8, 2013, at 12:04 AM, Daniel Imhoff notifications@github.com wrote:
|
I'm using TinyMCE for a text area and I'm trying to grab the selected text within the TinyMCE editor to modify. My
var range = $("#editor").textrange();
code keeps returning an object but the position, start, end and length are all 0 and text is blank.The text was updated successfully, but these errors were encountered: