尝试在Jade
有人可以帮忙吗?
form(method='post', action='/posts/add', enctype="mutilpart/form-data")
.form-group
label Title:
input.form-control(name='title', type='text')
.form-group
label Category:
select.form-control(name='category')
each category, i in categories
option(value='#{category.title}') #{category.title}
.form-group
label Body:
textarea.form-control(name='body', id='body')
.form-group
label Main Image:
input.form-control(name='mainimage', type='file')
.form-group
label Author:
select.form-control(anme='author')
option(value='Brad Traversy') Brad Traversy
option(value='John Doe') John Doe
input.btn.btn-defalut(name='submit',type='submit',value='Save')
script(src='/ckeditor/ckeditor.js')
script
| CKEDITOR.replace('body');
答案 0 :(得分:0)
这里有语法错误。替换
script
CKEDITOR.replace('body');
通过
script.
CKEDITOR.replace('body');