Groups
Groups
Sign in
Groups
Groups
Ajax.org Cloud9 Editor (Ace)
Conversations
About
Send feedback
Help
How to replace selected text
757 views
Skip to first unread message
ms.im...@gmail.com
unread,
Nov 11, 2013, 8:59:31 AM
11/11/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
Hi
I have a short question.
Is it possible to replace a selected text in the editor?
I want to select a text and with some different buttons I will change the selected text.
Thanks
Martin
Harutyun Amirjanyan
unread,
Nov 11, 2013, 1:15:35 PM
11/11/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
Hi
try
editor.session.replace(editor.selection.getRange(), "Hi")
ms.im...@gmail.com
unread,
Nov 12, 2013, 2:03:11 AM
11/12/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
Works like a charm ;)
Thank you.
Reply all
Reply to author
Forward
0 new messages