MCPcopy Create free account
hub / github.com/cnodejs/nodeclub / epicEditorPrepend

Function epicEditorPrepend

public/javascripts/editor.js:107–109  ·  view source on GitHub ↗

* 向EpicEditor前面增加内容 * * @param {EpicEditor} editor * @param {String} text * @return {String}

(editor, text)

Source from the content-addressed store, hash-verified

105 * @return {String}
106 */
107function epicEditorPrepend (editor, text) {
108 return editor.getElement('editor').body.innerHTML = text + editor.getElement('editor').body.innerHTML;
109}
110
111// 自动创建编辑框
112$(function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected