1、更换编辑器
2、seo优化功能 3、表单的bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" id="{$field}" name="{$field}" value="{$value}" readonly size="15">
|
||||
<input type="text" class="form-control" id="{$field}" name="{$field}" value="{$value|default=time()|date='Y-m-d H:i:s',###}" readonly size="15">
|
||||
<span class="input-group-addon"><i class="fa fa-th"></i></span>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
@@ -1,19 +1,12 @@
|
||||
<textarea name="{$field}" id="{$field}">{$value}</textarea>
|
||||
<script type="text/javascript">
|
||||
serverUrl = "{:url('upload/ueditor')}";
|
||||
{if $option == 'all' || $option == ''}
|
||||
var ue = UE.getEditor("{$field}",{
|
||||
serverUrl : serverUrl,
|
||||
initialFrameWidth : "100%",
|
||||
initialFrameHeight : "300"
|
||||
});
|
||||
{elseif $option == 'mini'/}
|
||||
var ue = UE.getEditor("{$field}",{
|
||||
toolbars: [
|
||||
['source', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', '|','link', 'unlink', '|','simpleupload',]
|
||||
],
|
||||
initialFrameWidth : "100%",
|
||||
initialFrameHeight : "120"
|
||||
});
|
||||
{/if}
|
||||
</script>
|
||||
<textarea name="{$field}" id="{$field}">{$value}</textarea>
|
||||
<script type="text/javascript">
|
||||
var editor = new Simditor({
|
||||
textarea: $('#{$field}'),
|
||||
defaultImage : '__PUBLIC__/images/wechat.jpg',
|
||||
upload : {
|
||||
placeholder : '欢迎使用SentCMS网站管理系统',
|
||||
url: "{:url('upload/editor')}",
|
||||
fileKey: "upload_file"
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user