![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UEditor
木木木又又
这个作者很懒,什么都没留下…
展开
-
UEditor富文本编辑器宽度随页面大小自适应
设置UEditor富文本编辑器宽度随页面大小自适应解决方法:1.打开/ueditor/ueditor.config.js找到initialFrameWidth属性,默认值是1000.即是initialFrameWidth: 1000把值更改为'100%' , 即是initialFrameWidth: '100%'保存后,刷新浏览器再看看... 原文地址:https://...转载 2019-01-17 11:11:32 · 5662 阅读 · 0 评论 -
Ueditor 富文本编辑器常用方法
实例化编辑器到id为container的dom容器上 var ue=UE.getEditor('container');设置编辑器内容ue.read(function(){ ue.setContent('<p>hello!</p>');});追加编辑器内容ue.read(function(){ var html=ue.ge...转载 2019-01-15 15:07:05 · 786 阅读 · 0 评论 -
UEditor工具按钮
toolbars: [ [ 'anchor', //锚点 'undo', //撤销 'redo', //重做 'bold', //加粗 'indent', //首行缩进 'snapscreen', //截图 'italic', //斜体 'underline',...转载 2019-01-15 15:09:29 · 393 阅读 · 0 评论 -
通过js去掉所有的html标签,得到HTML标签中的所有内容
<script> //替换掉所有的 html标签,得到Html标签中的内容 var s="<P><FONT face=宋体 color=#000000> 北京中航宇飞科技有限公司是一家致力于为中国国防工业服务的高新企业。<BR> <BR> 事业一部 主要以连接器、常异型热缩套管和电缆组件的外协加工为主。凭借泰兴这个得天...转载 2019-02-27 15:54:56 · 1298 阅读 · 0 评论 -
UEditor编辑器的一些小方法
1.定义了一个UEditor编辑器var ue= UE.getEditor('message');2.使用setContent()方法清空,ue.setContent('') ;3.给富文本赋值 setTimeout(function () { ue.setContent(text,false);//text为赋值的内容 ...原创 2019-03-05 10:26:05 · 548 阅读 · 0 评论