YII中百度编辑器器的使用
来源:互联网 发布:windows和安卓平板 编辑:程序博客网 时间:2024/05/17 22:10
1.下载百度编辑器,解压到assets/super/下
<div class="row"> <div class="control-group "> <div class="control-label"> <?php echo $form->labelEx($model,'pic_url'); ?> </div> <div class="controls"> <?php echo $form->textArea($model,'pic_url'); ?> <?php echo $form->error($model,'pic_url'); ?> </div> </div></div>
<!--**引入百度编辑器**--> <!-- 配置文件 --> <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/super/org/ueditor/ueditor.config.js"></script> <!-- 编辑器源码文件 --> <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/assets/super/org/ueditor/ueditor.all.min.js"></script> <!-- 实例化编辑器 --> <script type="text/javascript"> window.UEDITOR_HOME_URL="<?php echo Yii::app()->request->baseUrl; ?>/assets/super/org/ueditor/"; //定义第一个编辑器 window.UEDITOR_CONFIG.initialFrameHeight=200; window.UEDITOR_CONFIG.toolbars=[['simpleupload', 'insertimage']]; var editor1 = new baidu.editor.ui.Editor(); editor1.render( 'Pictures_pic_url'); window.UEDITOR_CONFIG.toolbars=[[ 'fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'directionalityltr', 'directionalityrtl', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'webapp', 'pagebreak', 'template', 'background', '|', 'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|', 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|', 'print', 'preview', 'searchreplace', 'help', 'drafts' ]]; //定义第二个编辑器 var editor2 = new baidu.editor.ui.Editor(); editor2.render( 'Pictures_pic_votes'); </script>
0 0
- YII中百度编辑器器的使用
- yii 百度编辑器Ueditor使用
- php中百度编辑器的使用
- 百度编辑器的使用
- 百度编辑器的使用
- 百度编辑器的使用
- 百度编辑器的YII插件的安装配置
- yii中yii-bootstrap的使用
- jfinal中使用百度编辑器上传图片的实现
- 关于百度附文本编辑器使用中遇到的问题
- 百度编辑器ueditor的使用
- UE百度编辑器的使用
- 百度编辑器的简单使用
- Yii中components的使用
- yii中数据模型的使用
- Yii中ajaxLink的使用
- yii 中cookie的使用
- yii 中CHttpSession的使用
- JS获取浏览器窗口大小 获取屏幕,浏览器,网页高度宽度
- inline成员函数
- SP2-1503: 无法初始化 Oracle 调用界面 SP2-1503: 无法初始化 Oracle
- c++标准库 及 命名空间std
- Maven中的占位符
- YII中百度编辑器器的使用
- 细谈Ehcache页面缓存使用
- BAE 3.0日志
- oracle在sqlplus中执行sql文件
- C++中的this指针
- codeforce round#261(Div2)
- arcengine 缓冲区查询 (ITopologicalOperator ISpatialFilter接口 )
- Hibernate3查询返回Map探秘
- webstorm快捷键大全