mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 18:28:22 +01:00
17 lines
400 B
CoffeeScript
17 lines
400 B
CoffeeScript
|
class MarkOn extends window.classes.BaseObject
|
||
|
constructor: (@id) ->
|
||
|
super "MarkOn"
|
||
|
|
||
|
init: () ->
|
||
|
me = @
|
||
|
@ready()
|
||
|
.then () ->
|
||
|
me.editor = new SimpleMDE { element: $(me.id)[0] }
|
||
|
.catch (m, s) ->
|
||
|
console.error(m, s)
|
||
|
|
||
|
MarkOn.dependencies = [
|
||
|
"/rst/gscripts/mde/simplemde.min.js"
|
||
|
]
|
||
|
|
||
|
makeclass "MarkOn", MarkOn
|