feat(forums): add bootstrap-markdown editor into post new topic page

This commit is contained in:
OldHawk
2017-07-07 15:38:27 +08:00
parent a89ad6a93b
commit 011e2212ed
5 changed files with 39 additions and 3 deletions

View File

@@ -18,6 +18,13 @@
* init
*/
vm.init = function () {
$("#postContent").markdown({
autofocus:false,
savable:false,
iconlibrary: 'fa',
resize: 'vertical'
});
// get forum info by state params
ForumsService.get({
forumId: $stateParams.forumId