doc-method.md 1.0 KB


layout: doc title: Methods - Simditor id: doc-method

root: ../

Keep a reference of Simditor instance and call the methods:

# init Simditor
editor = new Simditor
  textarea: $('#editor')

# call setValue to set content
editor.setValue 'hello world'

#Public Methods

{% for item in site.data.methods %}
{{ item.name }} {% for param in item.params %} {{ param.name }} {{ param.type }} {% endfor %} {% if item.return.size > 0 %} return value: {{ item.return.type }} {% endif %}
{{ item.description | markdownify }}
{% endfor %}