|
|
@@ -164,19 +164,22 @@
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">文章标题:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
|
|
|
+ <input type="text" name="title" required lay-verify="required" placeholder="请输入标题"
|
|
|
+ autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">发布人:</label>
|
|
|
<div class="layui-input-inline">
|
|
|
- <input type="text" name="writer" required lay-verify="required" placeholder="请填写发布人" autocomplete="off" class="layui-input">
|
|
|
+ <input type="text" name="writer" required lay-verify="required" placeholder="请填写发布人"
|
|
|
+ autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label">文章简介:</label>
|
|
|
<div class="layui-input-inline layui-input-textarea">
|
|
|
- <textarea name="intro" lay-verify="required" placeholder="请输入内容" class="layui-textarea"></textarea>
|
|
|
+ <textarea name="intro" lay-verify="required" placeholder="请输入内容"
|
|
|
+ class="layui-textarea"></textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-form-item">
|
|
|
@@ -203,7 +206,8 @@
|
|
|
<input type="hidden" value="5" name="type">
|
|
|
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
|
|
|
<!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
|
|
|
- <button class="layui-btn layui-btn-primary" type="button" onclick="clearForm()">取消</button>
|
|
|
+ <button class="layui-btn layui-btn-primary" type="button"
|
|
|
+ onclick="clearForm()">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
@@ -295,7 +299,7 @@
|
|
|
} else {
|
|
|
layer.msg("发布成功,等待审核", { icon: 1 });
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
clearForm()
|
|
|
} else {
|
|
|
if (window.id !== '') {
|
|
|
@@ -327,7 +331,7 @@
|
|
|
fuzhi()
|
|
|
if (window.id !== '') {
|
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
|
- parent.layer.close(index);//关闭当前页
|
|
|
+ parent.layer.close(index);//关闭当前页
|
|
|
sessionStorage.removeItem('biao')
|
|
|
}
|
|
|
}
|
|
|
@@ -335,13 +339,25 @@
|
|
|
// 示例1:设置工具栏为基本工具栏,高度为70
|
|
|
var editor1 = CKEDITOR.replace('editor1',
|
|
|
{
|
|
|
- filebrowserBrowseUrl: 'test_aaphoto',
|
|
|
+ filebrowserBrowseUrl: 'test_photo',
|
|
|
height: 430,
|
|
|
toolbar:
|
|
|
[
|
|
|
- ['Undo', 'Redo'],
|
|
|
- ['Styles', 'FontSize', 'Format', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
|
|
|
- ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Image']
|
|
|
+ // ['Undo', 'Redo'],
|
|
|
+ // ['Styles', 'FontSize', 'Format', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
|
|
|
+ // ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Image']
|
|
|
+ {name: 'document',items: ['Source', '-', 'DocProps', 'Preview', 'Print', '-']},
|
|
|
+ {name: 'clipboard',items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
|
|
|
+ {name: 'editing',items: ['Find', 'Replace', '-', 'SelectAll', '-']},
|
|
|
+ { name: 'basicstyles',items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']},
|
|
|
+ '/',
|
|
|
+ {name: 'paragraph',items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl']},
|
|
|
+ {name: 'links',items: ['Link', 'Unlink', 'Anchor']},
|
|
|
+ {name: 'insert',items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']},
|
|
|
+ '/',
|
|
|
+ { name: 'styles',items: ['Styles', 'Format', 'Font', 'FontSize']},
|
|
|
+ { name: 'colors',items: ['TextColor', 'BGColor']},
|
|
|
+ { name: 'tools',items: [ 'ShowBlocks', '-']}
|
|
|
]
|
|
|
}
|
|
|
);
|