Hi,
I've been reading through the API documentation and this forum, but can't seem to find a way to give focus to the editor and move the cursor to a specific position in the HTML. Is there a function(s) to do this?
Thanks!
Garann
Forum closed. New forum available at http://community.wymeditor.org/
$(this._wym._box).find("textarea").get(0)
var wym = $.wymedtors(0);
wym.setFocusToNode(DOMNode node, boolean toStart);
$(wym._doc.body).append('<p class="example"><br /></p>');
wym.update();
wym.setFocusToNode($(wym._doc.body).select(":last-child"),true);
Security error" code: "1000
[Break on this error] range.selectNodeContents(node);
$(wym._doc.body).append('<p class="example"><br /></p>');
wym.update();
var length = $(wym._doc.body).children().length;
wym.setFocusToNode($(wym._doc.body).children()[length-1],true);
wym.setFocusToNode($(wym._doc.body).children()[0],false);
wym.setFocusToNode($(wym._doc.body).children()[0],false);
wym._iframe.contentWindow.focus();
Users browsing this forum: No registered users and 2 guests