調用百度富文本
阿新 • • 發佈:2017-05-05
bold str lock www rep upload ont mat orm 1、修改內容
<div class="form-group"> <label for="post-content">文章內容</label> <script id="post-content" name="content" type="text/plain">{$post.content|htmlspecialchars_decode}</script> </div><!-- 配置文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script><!-- 編輯器源碼文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script><!-- 實例化編輯器 --><script type="text/javascript"> var ue = UE.getEditor(‘post-content‘,{ toolbars: [ [‘fullscreen‘, ‘source‘, ‘undo‘, ‘redo‘,‘bold‘, ‘italic‘, ‘underline‘,‘fontborder‘, ‘strikethrough‘, ‘|‘,‘simpleupload‘, ‘insertimage‘,‘attachment‘,‘emotion‘,‘link‘,‘unlink‘, ‘|‘, ‘removeformat‘, ‘formatmatch‘, ‘autotypeset‘, ‘blockquote‘,‘searchreplace‘, ‘pasteplain‘, ‘|‘, ‘forecolor‘, ‘backcolor‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘selectall‘, ‘cleardoc‘], [‘inserttable‘,‘insertrow‘, ‘insertcol‘,‘mergeright‘, ‘mergedown‘,‘deleterow‘, ‘deletecol‘,‘splittorows‘,‘splittocols‘, ‘splittocells‘,‘deletecaption‘,‘inserttitle‘, ‘mergecells‘, ‘deletetable‘,‘insertparagraphbeforetable‘, ‘paragraph‘,‘fontsize‘,‘fontfamily‘] ], initialFrameHeight:500, zIndex:100 });</script>
2、添加內容 <div class="form-group"> <label for="post-content">文章內容</label> <script id="post-content" name="content" type="text/plain"></script> </div>
<!-- 配置文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script><!-- 編輯器源碼文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script><!-- 實例化編輯器 --><script type="text/javascript"> var ue = UE.getEditor(‘post-content‘,{ toolbars: [ [‘fullscreen‘, ‘source‘, ‘undo‘, ‘redo‘,‘bold‘, ‘italic‘, ‘underline‘,‘fontborder‘, ‘strikethrough‘, ‘|‘,‘simpleupload‘, ‘insertimage‘,‘attachment‘,‘emotion‘,‘link‘,‘unlink‘, ‘|‘, ‘removeformat‘, ‘formatmatch‘, ‘autotypeset‘, ‘blockquote‘,‘searchreplace‘, ‘pasteplain‘, ‘|‘, ‘forecolor‘, ‘backcolor‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘selectall‘, ‘cleardoc‘], [‘inserttable‘,‘insertrow‘, ‘insertcol‘,‘mergeright‘, ‘mergedown‘,‘deleterow‘, ‘deletecol‘,‘splittorows‘,‘splittocols‘, ‘splittocells‘,‘deletecaption‘,‘inserttitle‘, ‘mergecells‘, ‘deletetable‘,‘insertparagraphbeforetable‘, ‘paragraph‘,‘fontsize‘,‘fontfamily‘] ], initialFrameHeight:500, zIndex:100 });</script>
null
<div class="form-group"> <label for="post-content">文章內容</label> <script id="post-content" name="content" type="text/plain">{$post.content|htmlspecialchars_decode}</script> </div><!-- 配置文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script><!-- 編輯器源碼文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script><!-- 實例化編輯器 --><script type="text/javascript"> var ue = UE.getEditor(‘post-content‘,{ toolbars: [ [‘fullscreen‘, ‘source‘, ‘undo‘, ‘redo‘,‘bold‘, ‘italic‘, ‘underline‘,‘fontborder‘, ‘strikethrough‘, ‘|‘,‘simpleupload‘, ‘insertimage‘,‘attachment‘,‘emotion‘,‘link‘,‘unlink‘, ‘|‘, ‘removeformat‘, ‘formatmatch‘, ‘autotypeset‘, ‘blockquote‘,‘searchreplace‘, ‘pasteplain‘, ‘|‘, ‘forecolor‘, ‘backcolor‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘selectall‘, ‘cleardoc‘], [‘inserttable‘,‘insertrow‘, ‘insertcol‘,‘mergeright‘, ‘mergedown‘,‘deleterow‘, ‘deletecol‘,‘splittorows‘,‘splittocols‘, ‘splittocells‘,‘deletecaption‘,‘inserttitle‘, ‘mergecells‘, ‘deletetable‘,‘insertparagraphbeforetable‘, ‘paragraph‘,‘fontsize‘,‘fontfamily‘] ], initialFrameHeight:500, zIndex:100 });</script>
2、添加內容
<!-- 配置文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script><!-- 編輯器源碼文件 --><script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script><!-- 實例化編輯器 --><script type="text/javascript"> var ue = UE.getEditor(‘post-content‘,{ toolbars: [ [‘fullscreen‘, ‘source‘, ‘undo‘, ‘redo‘,‘bold‘, ‘italic‘, ‘underline‘,‘fontborder‘, ‘strikethrough‘, ‘|‘,‘simpleupload‘, ‘insertimage‘,‘attachment‘,‘emotion‘,‘link‘,‘unlink‘, ‘|‘, ‘removeformat‘, ‘formatmatch‘, ‘autotypeset‘, ‘blockquote‘,‘searchreplace‘, ‘pasteplain‘, ‘|‘, ‘forecolor‘, ‘backcolor‘, ‘insertorderedlist‘, ‘insertunorderedlist‘, ‘selectall‘, ‘cleardoc‘], [‘inserttable‘,‘insertrow‘, ‘insertcol‘,‘mergeright‘, ‘mergedown‘,‘deleterow‘, ‘deletecol‘,‘splittorows‘,‘splittocols‘, ‘splittocells‘,‘deletecaption‘,‘inserttitle‘, ‘mergecells‘, ‘deletetable‘,‘insertparagraphbeforetable‘, ‘paragraph‘,‘fontsize‘,‘fontfamily‘] ], initialFrameHeight:500, zIndex:100 });</script>
null
調用百度富文本