mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-23 09:20:03 +02:00
Update Blogger and Booklet to use new MDE library
This commit is contained in:
@ -3,6 +3,8 @@ A back-end tool for my online document hub [https://doc.iohub.dev/antos/](https:
|
||||
|
||||
|
||||
## Change logs
|
||||
### v0.2.5-a
|
||||
* Use the new MDE library
|
||||
### v0.2.3-a
|
||||
* Chage app category name
|
||||
### v0.2.1-a
|
||||
|
@ -3,6 +3,8 @@ A back-end tool for my online document hub [https://doc.iohub.dev/antos/](https:
|
||||
|
||||
|
||||
## Change logs
|
||||
### v0.2.5-a
|
||||
* Use the new MDE library
|
||||
### v0.2.3-a
|
||||
* Chage app category name
|
||||
### v0.2.1-a
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,9 +7,9 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@lxsang.me"
|
||||
},
|
||||
"version":"0.2.4-a",
|
||||
"version":"0.2.5-a",
|
||||
"category":"Office",
|
||||
"iconclass":"bi bi-journals",
|
||||
"dependencies": ["SimpleMDE@1.11.2-r","Katex@0.11.1-r"],
|
||||
"dependencies": ["SimpleMDE@2.18.0-r","Katex@0.11.1-r"],
|
||||
"mimes":["dir"]
|
||||
}
|
Binary file not shown.
@ -166,7 +166,7 @@ class Booklet extends this.OS.application.BaseApplication
|
||||
@previewOn = false
|
||||
@editormux = false
|
||||
|
||||
@editor = new SimpleMDE
|
||||
@editor = new EasyMDE
|
||||
element: markarea
|
||||
autoDownloadFontAwesome: false
|
||||
autofocus: true
|
||||
@ -232,7 +232,7 @@ class Booklet extends this.OS.application.BaseApplication
|
||||
name: __("Preview"),
|
||||
className: "fa fa-eye no-disable",
|
||||
action: (e) =>
|
||||
SimpleMDE.togglePreview e
|
||||
EasyMDE.togglePreview e
|
||||
#/console.log @select ".editor-preview editor-preview-active"
|
||||
renderMathInElement @find "mycontainer"
|
||||
@renderLocalElement()
|
||||
@ -246,7 +246,7 @@ class Booklet extends this.OS.application.BaseApplication
|
||||
|
||||
preview.innerHTML = html
|
||||
|
||||
@on "hboxchange", (e) => @resizeContent()
|
||||
@on "resize", (e) => @resizeContent()
|
||||
@bindKey "ALT-N", () => @actionFile "#{@name}-New"
|
||||
@bindKey "ALT-O", () => @actionFile "#{@name}-Open"
|
||||
@bindKey "CTRL-S", () => @actionFile "#{@name}-Save"
|
||||
@ -263,12 +263,12 @@ class Booklet extends this.OS.application.BaseApplication
|
||||
@currentToc.descFile.cache = @editor.value()
|
||||
|
||||
resizeContent: () ->
|
||||
children = ($ @container).children()
|
||||
children = ($ ".EasyMDEContainer", @container).children()
|
||||
titlebar = (($ @scheme).find ".afx-window-top")[0]
|
||||
toolbar = children[1]
|
||||
statusbar = children[4]
|
||||
toolbar = children[0]
|
||||
statusbar = children[3]
|
||||
cheight = ($ @scheme).height() - ($ titlebar).height() - ($ toolbar).height() - ($ statusbar).height() - 40
|
||||
($ children[2]).css("height", cheight + "px")
|
||||
($ children[1]).css("height", cheight + "px")
|
||||
|
||||
|
||||
menu: () ->
|
||||
|
@ -7,9 +7,9 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@lxsang.me"
|
||||
},
|
||||
"version":"0.2.4-a",
|
||||
"version":"0.2.5-a",
|
||||
"category":"Office",
|
||||
"iconclass":"bi bi-journals",
|
||||
"dependencies": ["SimpleMDE@1.11.2-r","Katex@0.11.1-r"],
|
||||
"dependencies": ["SimpleMDE@2.18.0-r","Katex@0.11.1-r"],
|
||||
"mimes":["dir"]
|
||||
}
|
Reference in New Issue
Block a user