1、更换编辑器

2、seo优化功能
3、表单的bug
This commit is contained in:
2016-07-13 15:06:44 +08:00
parent 485690400b
commit 2dbbb20f20
301 changed files with 8380 additions and 129034 deletions

View File

@@ -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>