Remove all marker in ACE editor

1,719 views
Skip to first unread message

Anaïs Ghelfi

unread,
Sep 8, 2014, 10:35:28 AM9/8/14
to ace-d...@googlegroups.com
Hi guys,

I have the following scenario : some text in the editor, a button to compilate it in a webservice, i recover errors and add markers on each lines.
I would like to remove all markers when i have a button onclick event.

My question is : is there any existing functionality in ACE that i can use to resolve this scenario?

Thanks,
Anaïs

Harutyun Amirjanyan

unread,
Sep 9, 2014, 12:34:19 PM9/9/14
to ace-d...@googlegroups.com
Hi,

if you are using session.addMarker
they can be removed with session.removeMarker(id)
you can also use session.$backMarkers to iterate over all markers, but
that's not a part of public api and may change in future versions.
Reply all
Reply to author
Forward
0 new messages