Permalink
Browse files

Do not create a new editor, but find the old one

  • Loading branch information...
martin-g committed Dec 19, 2012
1 parent d314dbe commit 00f66b62c72141aa346d8e5aa3164f6cbd4cbf1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 readme.textile
View
@@ -177,7 +177,7 @@ h2. The underlying wysihtml5 object
You can access the "wysihtml5 editor object":https://github.com/xing/wysihtml5 like this:
<pre>
-var wysihtml5Editor = $('#some-textarea').wysihtml5().data("wysihtml5").editor;
+var wysihtml5Editor = $('#some-textarea').data("wysihtml5").editor;
wysihtml5Editor.composer.commands.exec("bold");
</pre>

0 comments on commit 00f66b6

Please sign in to comment.