Can't access to api

13 views
Skip to first unread message

Oleg Delosgatos

unread,
Aug 5, 2013, 7:30:22 AM8/5/13
to snape...@googlegroups.com
I followed your documentaion http://www.snapeditor.com/docs/api:
var editor = SnapEditor.InPlace("editor");
editor.api;
But didn't find api field there.
SnapEditor.InPlace or SnapEditor.Form returns object with four functions: init, updateTextarea, formInit, finishConstruct

What am i doing wrong?


Wesley Wong

unread,
Aug 6, 2013, 12:54:57 PM8/6/13
to snape...@googlegroups.com
Hi Oleg,

It looks like there's a typo in the docs. The first line should be the creation of a SnapEditor instance.

var editor = new SnapEditor.InPlace("editor");

That should work.

I'll fix the docs.

Thanks!
Wesley
Reply all
Reply to author
Forward
0 new messages