ueditor plus粘贴图片设置

浪淘沙4个月前前端71
 <script src="~/ueditor/ueditor.config.js"></script>
 <script src="~/ueditor/ueditor.all.js"></script>
 <textarea class="xxt-textarea" id="article" name="article"></textarea>
 <script type="text/javascript">
             var ue = UE.getEditor('article', {
                 allowDivTransToP: false,
                 initialContent: '<h1 style="margin:20px 0;"><span style="background:linear-gradient(90deg,#7F00FF,#E100FF,#FF416C);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-size:32px;font-weight:800;letter-spacing:1px;">一键复制Word中的图片或文字</span></h1>',
                 autoClearinitialContent: true
             });
             ue.ready(function() {

                 // 关闭html过滤
                 ue.options.filterRules = null;

                 // 关闭输入过滤
                 ue.filterInputRule = function(html) {
                     return html;
                 };

             });
 </script>

相关文章

layui postgresql 时间绑定格式化,去除2025-11-30T00:00:00

  "bmks":  layui.util.toDateString(data[0].bmks,"yyyy-MM-dd ...

asp.net code webapi layui ajax post表单数据

using System; using System.Collections.Generic; using System.Linq; using Syst...

asp.net core razor  CKEDITOR 添加等使用详细

asp.net core razor CKEDITOR 添加等使用详细

<script src="/ckeditor/ckeditor.js"></script>     &l...

element 调用接口返回json中的data-bs-toggle="tooltip" data-bs-title="查阅"

<el-table ref="tableRef"><el-table-column prop="files" label=...

vue element 复制密码

<el-table-column prop="password" label="密码" min-width="15...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。