You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
use
editor.session.getTextRange(editor.getSelectionRange())
or
editor.getCopyText()
When multiple ranges are selected getCopyText returns text in all
ranges joined with \n, first method will return only text in last
added range.
Also it may be worth to add
editor.getSelectedText = function() {
this.session.getTextRange(this.getSelectionRange())
}
to editor since this is often needed
Steve Ottoz
unread,
Apr 1, 2013, 12:08:07 AM4/1/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
Thanks.
That's exactly what I needed.
Only had to add the "return" to make the function work.