6kzz整合ueditor_PHP教程

企鹅博客
企鹅博客
企鹅博客
25193
文章
0
评论
2020年8月31日02:08:20 评论 21 views

用过

下载下来

就要进行配置了

本文就

1.仿照

目录的

2.找到调用编辑气的页面,在

在引入编辑器文件的位置引入

同时将引入原来编辑器的

 


 


   

然后初始化

     

如果是文件编辑或者修改

那么在admin.php

<p class="p0">千万注意 此处<span id</span><span 的值要与上文中编辑器初始化里</span></p> <p class="p0"> </p> <p class="p0"> UE.getEditor('myEditor')</p> <p class="p0"> </p> <p class="p0">的值一致,否者不起作用</p> <p class="p0"> </p> <p class="p0">自此以成功引入编辑器</p> <p class="p0"> </p> <p class="p0">但用编辑器编辑的内容在读取时是不是自己想要的展示效果呢,显然不是</p> <p class="p0"> </p> <p class="p0">在<span ueditor</span><span 下</span></p> <p class="p0"> </p> <p class="p0">有</p> <p class="p0"><img src="http://www.bkjia.com/uploads/allimg/131115/19301J507-0.jpg" alt="" /></p> <p class="p0">在展示<span (</span><span 文件读取页面</span><span )</span><span 还需进行配置</span></p> <p class="p0">在模板文件夹下模板文件比如</p> <p class="p0">View.htm<span 里加入</span></p> <pre class="code"> <span <</span><span script </span><span src</span><span ="<strong><span ./inc/ueditor/</span></strong>ueditor.parse.js"</span><span type</span><span ="text/javascript"</span><span ></</span><span script</span><span ></span> <span <</span><span script</span><span ></span><span uParse(</span><span '</span><span .viewcontent</span><span '</span><span ,{ </span><span '</span><span highlightJsUrl</span><span '</span><span :</span><span '</span><span <span <strong>./inc/ueditor</strong></span>/third-party/SyntaxHighlighter/shCore.js</span><span '</span><span , </span><span '</span><span highlightCssUrl</span><span '</span><span :</span><span '</span><span <span <strong>./inc/ueditor</strong></span>/third-party/SyntaxHighlighter/shCoreDefault.css</span><span '</span><span }) </span><span </</span><span script</span><span ></span></pre> <p> </p> <p class="p0">注意文件路径</p> <p class="p0">是<span view.php</span><span 引入</span><span view.htm</span><span 进行展示的,要以</span><span view.php</span><span 的路劲为基准引入</span><span js</span><span 文件</span></p> <p class="p0">还得注意</p> <p class="p0"><div class="viewcontent">{$row['content']}</div></p> <p class="p0">要展示的内容,<span 的class<span 名要与</span>uParse()</span><span <span 里的参数一致</span>,否者也不会解析。</span></p> <p class="p0"> </p> <p class="p0">到此,基本的配置基本结束</p> <p class="p0">下一步要配置的就是图片上传路径与在线图片管理了。</p> <p class="p0">上传图片路劲配置</p> <p class="p0">在<span ue</span><span 下的</span><span php</span><span 文件夹下的</span><span imageUp.php</span><span 里</span></p> <p class="p0">//上传配置</p> <p class="p0"> </p> <pre class="code"> <span $config</span> = <span array</span><span ( </span>"savePath" => (<span $path</span> == "1" ? "../../../uploadfile/attachment" : "upload1/"), "maxSize" => 1000, <span //</span><span 单位KB</span> "allowFiles" => <span array</span>(".gif", ".png", ".jpg", ".jpeg", ".bmp"<span ) );</span></pre> <p> </p> <p class="p0">在savePath里,如果上传到upload(后台上传进行)</p> <p class="p0"> <img src="http://www.bkjia.com/uploads/allimg/131115/19301M357-1.jpg" alt="" /></p> <p class="p0"> </p> <p class="p0">把路劲改为</p> <p class="p0">"../../../uploadfile/attachment"</p> <p class="p0">上传图片时,图片就会存储到</p> <p class="p0">Uploadfile/attachment/<span 年月日</span><span /</span></p> <p class="p0"> </p> <p class="p0">在线图片的管理</p> <p class="p0"><img src="http://www.bkjia.com/uploads/allimg/131115/19301KW5-2.jpg" alt="" /></p> <p class="p0">有时<span (</span><span 在我们没有配置该项时</span><span )</span><span 我们明明上传了图片,但点击在线管理时却是空的</span></p> <p class="p0">是应为我们少了这项配置</p> <p class="p0">在<span ue</span><span 下的</span><span php</span><span 文件夹下的</span></p> <p class="p0">imageManager.php里</p> <p class="p0">$paths = array('upload/','../../../uploadfile/attachment/');</p> <p class="p0">改成上面的上传路径就<span Ok</span><span 了</span></p> <p class="p0">文件附件等的上传与图片上传的配置类似</p> <p class="p0">其实在ueditor.config.js</p> <p class="p0">说的很明白,可以参考进行相关配置</p> <p class="p0">本文仅作抛砖引玉,与大家分享!</p> </p> <p align="left"><div style="display:none;"><span id="url" itemprop="url">http://www.bkjia.com/PHPjc/440169.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http://www.bkjia.com/PHPjc/440169.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">用过 下载下来 就要进行配置了 本文就 1.仿照 目录的 2.找到调用编辑气的页面,在 在引入编辑器文件的位置引入 同时将引入原来编辑器的...</span></div></p></div> <div class="art_confoot"></div> <div class='share layui-clear bdsharebuttonbox'> <li ><a href='javascript:;' data-cmd="weixin" class='wechat'><i class="layui-icon"></i>微信</a></li> <li ><a href='javascript:;' data-cmd="more" class='share-btn'><i class="layui-icon"></i>分享</a></li> </div> <img src="/static/images/article_wechat.jpg?1" style="margin-top: 30px;" alt="php教程网最新课程二维码"/> <div class='tags layui-clear'> <li>相关标签:<a href="/search?word=6kzz" target="_blank">6kzz</a> <a href="/search?word=整合" target="_blank">整合</a> <a href="/search?word=ueditor" target="_blank">ueditor</a> <a href="/search?word=用过" target="_blank">用过</a> <a href="/search?word=下载" target="_blank">下载</a> <a href="/search?word=下来" target="_blank">下来</a> <a href="/search?word=就要" target="_blank">就要</a> <a href="/search?word=进行" target="_blank">进行</a> <a href="/search?word=配置" target="_blank">配置</a> <a href="/search?word=了" target="_blank">了</a> <a href="/search?word=本文" target="_blank">本文</a> <a href="/search?word=就" target="_blank">就</a> <a href="/search?word=仿照" target="_blank">仿照</a> <a href="/search?word=目录" target="_blank">目录</a> <a href="/search?word=的" target="_blank">的</a> <a href="/search?word=找到" target="_blank">找到</a> <a href="/search?word=调用" target="_blank">调用</a> <a href="/search?word=编辑" target="_blank">编辑</a> <a href="/search?word=气" target="_blank">气</a> <a href="/search?word=" target="_blank"></a></li> <li class='line'> 本文原创发布php教程网 ,转载请注明出处,感谢您的尊重! </li> </div> <div class='page layui-clear'> <ul> <li>上一篇:<a href="/php-weizijiaocheng-306219.html">微信公众平台开发(八) 自定义菜单功能开发_PHP教程</a></li> <li>下一篇:<a href="/php-weizijiaocheng-306221.html">Node.js的颠覆者:PHP的Swoole扩展_PHP教程</a></li> </ul> </div> </div> <p class="article-relative-header">相关文章</p> <p class="article-relative-header">相关视频</p> <hr class="layui-clear"> <ul class="article-relative-ul"> <li><span class="layui-badge-dots"></span><a class="relevant" href="/php-weizijiaocheng-4.html" target="_blank">PHP如何安装和配置?</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/php-weizijiaocheng-5.html" target="_blank">php 和 python 语法(部分)上的区别</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/php-weizijiaocheng-12.html" target="_blank">PHP 随机数 C扩展随机数</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/php-weizijiaocheng-316.html" target="_blank">PHP查询附近的人及其距离的实现方法_php技巧</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/php-weizijiaocheng-306220.html">6kzz整合ueditor_PHP教程</a></li> </ul> <ul class="article-relative-ul"> <li><span class="layui-badge-dots"></span><a class="relevant" href="/code/6536.html" target="_blank" title='SAE与SVN整合(下)'>SAE与SVN整合(下)</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/code/11684.html" target="_blank" title='ThinkPHP-模板与框架整合'>ThinkPHP-模板与框架整合</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/code/11773.html" target="_blank" title=' 作业点评以及提出apache和php整合的需求'> 作业点评以及提出apache和php整合的需求</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/code/11940.html" target="_blank" title='yii框架整合用户登录模板'>yii框架整合用户登录模板</a></li> <li><span class="layui-badge-dots"></span><a class="relevant" href="/code/11942.html" target="_blank" title='yii商城其他页面与Yii整合'>yii商城其他页面与Yii整合</a></li> </ul> <div class="layui-clear"></div> </div> <div class="comment layui-clear"> <div class="J_Header" id="J_Header"> <h1 class="header-title">网友评论</h1> <p class="header-protocol">文明上网理性发言,请遵守 <a href="javascript:void(0);">新闻评论服务协议</a></p> <a class="article-comment-publish" href="javascript:void(0);">我要评论</a> </div> <div class="layui-row diy-page"></div> <div class="text-box layui-clear article_comment_textarea" > <div class="box-left"> <li> <a href="javascript:login_trigger()"> <img src="/static/images/user_avatar.jpg" alt=""> </a> </li> <li><a href="javascript:login_trigger()"></a></li> </div> <div class="box-right"> <textarea name="desc" placeholder="请输入内容" class="layui-textarea article_textarea"> 立即提交

继续阅读
企鹅博客
  • 本文由 发表于 2020年8月31日02:08:20
  • 转载请务必保留本文链接:https://www.qieseo.com/308499.html
实现PHP中session和cookie数据传值功能 php教程

实现PHP中session和cookie数据传值功能

1.session 登录上一个页面以后,长时间没有操作,刷新页面以后需要重新登录。 特点:(1)session是存储在服务器;    (2)session每个人(登陆者)存一份;    (3)sess...
php 输出文字到图片上(文字水印)的代码 php教程

php 输出文字到图片上(文字水印)的代码

分享一段php代码,可实现将文字写到图片上的功能,有需要的朋友参考下吧。 有时,我们需要将一些文字打在图片上,即所谓的文字水印。 本节分享的这段代码,借助php的图像函数,可以实现这样的功能。 如果文...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: