vue+elementui+quill富文本框+秀米编辑器和135编辑器

vue2+ueditor集成秀米编辑器 3. 在ueditor.config.js文件中 找到toolbars属性,添加dialog字段,否则编辑器也是不会展示图标的。4.在main.js中引入基本文件(第一次npm run start时,编辑ueditor.all.js可能会比较慢,等待一会就好了)1.xiumi-ue-dialog-v5一定要放在ueditor.all.js后面,不然可能会出现报错。2.下载的图标样式最好放在本地(图二),我的项目就遇到直接请求背景图地址。5.此时你的编辑器就能出现秀米的图标啦。,也可以参考我下面的操作。 阅读详情

自定义自定义Vue-Quill-Editor富文本框可参照:
https://blog.csdn.net/ccsundhine/article/details/125867053?spm=1001.2014.3001.5502
注意:

  • 秀米官网声明只支持ueditor内核的编辑器内核(本文使用quill富文本框,自定义了一个blot文件,防止quill自动过滤掉秀米和135编辑器里面的section之类的样式)
  • 秀米的第三方对接文档地址:https://ent.xiumi.us/doc2.html
  • 您的网站务必使用https访问,否则会造成用户无法登录秀米账户
  • 秀米官方更新后,在本地开发环境时,无法正常插入数据到编辑器;且在ip环境下无法登录秀米
  • 秀米插入编辑器前需要做图片本地化处理才能正常显示(如果不处理图片就会裂开,上传的图片是存放在秀米的服务器上面的,这样会消耗秀米的服务器资源,所以秀米会禁止外站的图片请求)可以考虑两种方式:quill自定义处理粘贴的文本内容;在index.html通过通过referrer去处理;
  • 秀米以及135编辑器回显的时候,如果有section之类的元素也会被过滤,所以在回显数据的时候也需要处理

在这里插入图片描述

  1. 把秀米编辑器和135编辑器的html文件放入public文件下(秀米这里有两个文件一个新版一个旧版本,自愿引入哪一个)
    在这里插入图片描述
    135EditorDialogPage.html文件:
<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>135编辑器</title>
  <style>
    html,
    body {
      padding: 0;
      margin: 0;
    }

    #editor135 {
      position: absolute;
      width: 100%;
      height: 100%;
      border: none;
      box-sizing: border-box;
    }

  </style>
</head>

<body>

  <iframe id="editor135" src="//www.135editor.com/simple_editor.html?callback=true&appkey="></iframe>
  <!-- <script type="text/javascript" src="internal.js"></script> -->
  <script>
    var editor135 = document.getElementById('editor135');
    var parent = window.parent;
    window.onload = function () {
      setTimeout(function () {
        editor135.contentWindow.postMessage(parent.getHtml(), '*');
        // parent.getHtml 其实是quill里暴露的 window.getHtml
      }, 3000);
    };
    document.addEventListener("mousewheel", function (event) {
      event.preventDefault();
      event.stopPropagation();
    });
    window.addEventListener('message', function (event) {
      if (typeof event.data !== 'string') return;
      parent.setRichText_135(event.data)
      // editor.setContent(event.data);
      // editor.fireEvent("catchRemoteImage"); 
      // dialog.close();
    }, false);

  </script>
</body>

</html>

xiumi-ue-dialog-v5_new.html文件:

<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>XIUMI connect</title>
  <style>
    html,
    body {
      padding: 0;
      margin: 0;
    }

    #xiumi {
      position: absolute;
      width: 100%;
      height: 100%;
      border: none;
      box-sizing: border-box;
    }

  </style>
</head>

<body>
  <iframe id="xiumi" src="//xiumi.us/studio/v5#/paper">
  </iframe>
  <!-- <script type="text/javascript" src="dialogs/internal.js"></script> -->
  <script>
    var parent = window.parent;
    console.log('parent: ', parent);
    var xiumi = document.getElementById('xiumi');
    var xiumi_url = window.location.protocol + "//xiumi.us";
    console.log("xiumi_url is %o", xiumi_url);
    xiumi.onload = function () {
      console.log("postMessage to %o", xiumi_url);
      // "XIUMI:3rdEditor:Connect" 是特定标识符,不能修改,大小写敏感
      xiumi.contentWindow.postMessage('XIUMI:3rdEditor:Connect', xiumi_url);
    };
    document.addEventListener("mousewheel", function (event) {
      event.preventDefault();
      event.stopPropagation();
    });
    window.addEventListener('message', function (event) {
      console.log("Received message from xiumi, origin: %o %o", event.origin, xiumi_url);
      console.log('event.data: ', event.data);
      if (event.origin == xiumi_url) {
        console.log("Inserting html");
        parent.setRichText_xm(event.data)
        console.log("Xiumi dialog is closing");
        // dialog.close();
      }
    }, false);

  </script>
</body>

</html>

xiumi-ue-dialog-v5.html文件:

<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>XIUMI connect</title>
  <style>
    html,
    body {
      padding: 0;
      margin: 0;
    }

    #xiumi {
      position: absolute;
      width: 100%;
      height: 100%;
      border: none;
      box-sizing: border-box;
    }

  </style>
</head>

<body>
  <iframe id="xiumi" src="//xiumi.us/studio/v5#/paper">
  </iframe>
  <!-- <script type="text/javascript" src="internal.js"></script> -->
  <script>
    var parent = window.parent;
    var xiumi = document.getElementById('xiumi');
    var xiumi_url = window.location.protocol + "//xiumi.us";
    xiumi.onload = function () {
      console.log("postMessage");
      xiumi.contentWindow.postMessage('ready', xiumi_url);
    };
    document.addEventListener("mousewheel", function (event) {
      event.preventDefault();
      event.stopPropagation();
    });
    window.addEventListener('message', function (event) {
      if (event.origin == xiumi_url) {
        parent.setRichText_xm(event.data)
        // editor.execCommand('insertHtml', event.data);
        // dialog.close();
      }
    }, false);

  </script>
</body>

</html>

  1. 用iframe引入(这里踩了一个坑!!!!src引入文件的时候一定要看清楚自己项目的publicPath )
<div  :style="{ height: fullheight + 'px' }">
	 <!-- quill -->
	 <quill-editor
	          ref="myQuillEditor"
	          v-model="articleForm.artContent"
	          v-screen
	          class="quilleditor"
	          :options="editorOption"
	          style="height: 265px"
	        />
	       <el-dialog
	      :append-to-body="true"
	      :close-on-click-modal="false"
	      :modal-append-to-body="false"
	      title="秀米"
	      top="50px"
	      :visible.sync="visible"
	      width="90%"
	      z-index="99999999"
	    >
	      <!-- 秀米插件弹框 -->
	      <div v-if="visible">
	        <!-- :src="`${baseUrl}static/xiumi-ue-dialog-v5_new.html?time=1267765432`" -->
	        <iframe
	          id="xiumiIframe"
	          frameborder="0"
	          :height="fullheight - 150 + 'px'"
	          src="./static/xiumi-ue-dialog-v5_new.html"
	          width="100%"
	        ></iframe>
	      </div>
	    </el-dialog> 
	     <!-- 135编辑器弹框 -->
	     <el-dialog
	      :append-to-body="true"
	      :close-on-click-modal="false"
	      :modal-append-to-body="false"
	      title="135编辑器"
	      top="50px"
	      :visible.sync="visible2"
	      width="90%"
	      z-index="99999999"
	    >
	      <div v-if="visible2">
	        <iframe
	          id="xiumiIframe"
	          frameborder="0"
	          :height="fullheight - 150 + 'px'"
	          src="./static/135EditorDialogPage.html"
	          width="100%"
	        ></iframe>
	      </div>
	    </el-dialog>
    </div>
  1. 自定义blot.js文件(防止quill过滤)
export default function (Quill) {
  // 引入源码中的BlockEmbed
  const BlockEmbed = Quill.import('blots/block/embed');
  // 定义新的blot类型
  class AppPanelEmbed extends BlockEmbed {
    static create(value) {
      const node = super.create(value);
      // node.setAttribute('contenteditable', 'false');
      // node.setAttribute('width', '100%');
      //   设置自定义html
      node.innerHTML = this.transformValue(value)
      // 返回firstChild,避免被包一层<div class='rich-innerHtml'></div>的无意义标签
      return node.firstChild;
    }

    static transformValue(value) {
      let handleArr = value.split('\n')
      handleArr = handleArr.map(e => e.replace(/^[\s]+/, '')
        .replace(/[\s]+$/, ''))
      return handleArr.join('')
    }

    // 返回节点自身的value值 用于撤销操作
    static value(node) {
      return node.innerHTML
    }
  }
  // blotName
  AppPanelEmbed.blotName = 'AppPanelEmbed';
  // class名将用于匹配blot名称
  AppPanelEmbed.className = 'rich-innerHtml';
  // 标签类型自定义,这玩意还必须加,去掉会报错
  AppPanelEmbed.tagName = 'div';
  Quill.register(AppPanelEmbed, true);
}

  1. 在js中使用 (引入blot文件,配置quill等)
<script>
	 // 秀米引入
	  import blotSelect from './components/blot.js'
	  blotSelect(Quill)
	  // 工具栏配置(可根据自己的需求配置quill工具栏)
	  const toolbarOptions = [
	    ['insertMetric'], //秀米
	    ['otEdit'], //135编辑器
	  ]
	export default {
		data() {
		      return {
		       msg: undefined,
               imgFile: undefined,
		      //富文本内容
		     articleForm:{
				artContent:""
				},
		        visible: false,//秀米
		        visible2: false,135编辑器
		        selection: {}, // 光标位置
		        fullheight: document.documentElement.clientHeight, // 给quill容器设置了个高度
		        quill: null, // 待初始化的编辑器
		        //quill配置
		       editorOption: {
			          modules: {
			            toolbar: {
			              container: toolbarOptions, //自定义工具栏
			              handlers: {
			                that: this,
			                // 秀米
			                insertMetric: function () {
			                  let self = this.handlers.that
			                  self.visible = true
			                },
			                // 135编辑器
			                otEdit: function () {
			                  let self = this.handlers.that
			                  self.visible2 = true
			                },
			              },
			            },
			          },
			          //主题
			          theme: 'snow',
			          placeholder: '请输入正文',
			        },
		       }
		   },
		    watch: {
		      value(newVal, oldVal) {
		        console.log(newVal, oldVal)
		        if (newVal) {
		          this.articleForm.artContent = newVal
		        } else if (!newVal) {
		          this.articleForm.artContent = ''
		        }
		      },
		  },
		  created() {
		      this.articleForm.artContent = this.value
	       },
	       mounted() {
		      this._initEditor()//初始化编辑器
		      this.initButton() //自定义图标(秀米,135)
		      // 暴露方法绑定到window上,给public\xiumi-ue-dialog-v5.html使用
		      window.setRichText_xm = this.setRichText_xm
		      window.setRichText_135 = this.setRichText_135
		      // 调用135页面的时候 带入数据 getHtml()
		      window.getHtml = this.getHtml
		    },
		    methods:{
		    	 // 初始化编辑器
			      _initEditor() {
			        // 初始化编辑器
			        this.quill = this.$refs.myQuillEditor.quill
			        // 双向绑定代码 v-model
			        this.quill.on('text-change', () => {
			          this.emitChange()
			          this.selection = this.quill.getSelection()
			        })
			        // 插入内容
			        this.firstSetHtml()
			        // 粘贴板监听
			        this.listenPaste()
			      },
			      //秀米编辑器
			      setRichText_xm(e) {
			        const index = this.selection ? this.selection.index : 0
			        // console.log('光标位置',index)
			        this.quill.insertEmbed(index || 0, 'AppPanelEmbed', e)
			        this.visible = false
			      },
			        //135编辑器
			      setRichText_135(e) {
			        const index = this.selection ? this.selection.index : 0
			        //这个主要是用来处理在135编辑器添加导出到quill再点击135编辑器返回到quill的重复内容
			        this.quill.setContents([
			          { insert: '', attributes: { bold: true } },
			          { insert: '\n' },
			        ])
			        this.quill.insertEmbed(index || 0, 'AppPanelEmbed', e)
			        this.visible2 = false
			      },
			       emitChange() {
				        // 获取到quill 根dom中的html
				        let html = this.articleForm.artContent
				        const quill = this.quill
				        const text = this.quill.getText()
				        if (html === '<p><br></p>') html = ''
				        // v-model相关
				        this.$emit('input', html)
				        this.$emit('change', { html, text, quill })
				        // 返回quill中文本长度
				        // bug注意:这个方法无法计算秀米代码的中的文字长度!
				        this.$emit('getConetntLength', this.quill.getLength())
				      },
				       // 回显内容时检查秀米代码
					      firstSetHtml() {
					        // value 为回显内容
					        if (this.value) {
					          // 判断是否有秀米和或135元素
					          if (
					            this.value.indexOf('xiumi.us') > -1 ||
					            this.value.indexOf('135editor.com') > -1
					          ) {
					            const originNode = new DOMParser().parseFromString(
					              this.value,
					              'text/html'
					            ).body.childNodes
					            this.nodesInQuill(originNode)
					          } else {
					            // 正常插入
					            this.quill.clipboard.dangerouslyPasteHTML(this.value)
					          }
					        }
					      },
				       // 根据node类型分发处理
				      nodesInQuill(originNode) {
				        for (let i = originNode.length - 1; i >= 0; i--) {
				          if (originNode[i].localName === 'section') {
				            // 秀米类型代码,走新blot
				            this.setRichText_xm(originNode[i].outerHTML, 0)
				            this.setRichText_135(originNode[i].outerHTML, 0)
				          } else {
				            // 正常插入
				            this.quill.clipboard.dangerouslyPasteHTML(
				              0,
				              originNode[i].outerHTML
				            )
				          }
				        }
				      },
				     
				     // 监听粘贴板(请求接口把秀米图片本地化处理)  
				     //注意!注意!注意!如果是本地复制粘贴的话,会走此方法,如果是线上直接点击秀米编辑器上的√ 直接导入,可以考虑在chang时贴入此段代码
				      listenPaste() {
				        var that = this
				        var imageArr = []
				        this.quill.root.addEventListener('paste', (e) => {
				          that.msg = (e.clipboardData || window.clipboardData).getData(
				            'text/html'
				          )
				          // //匹配图片
				          var imgReg = /<img.*?(?:>|\/>)/gi // eslint-disable-line
				          // //匹配src属性
				          var srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i // eslint-disable-line
				          if (that.msg) {
				            if (
				              that.msg.indexOf('xiumi.us') > -1 ||
				              that.msg.indexOf('_135editor') > -1
				            ) {
				              that.msg.replace(imgReg, function (txt) {
				                return txt.replace(srcReg, function (src) {
				                  var img_src = src.match(srcReg)[1]
				                  //正则把?x-oss-process后面的都去掉
				                  img_src = img_src.replace(/\?.*/i, '')
				                  imageArr.push(img_src)
				                })
				              })
				
				              const parmas = {
				                urlList: imageArr,
				              }
				              if (imageArr.length != 0) {
				                //    如果有图片则 请求接口上传图片
				                uploadUrlImgs(parmas)
				                  .then((res) => {
				                    if (res.data && res.data.length) {
				                      var index = 0
				                      while (index < res.data.length) {
				                        //接口返回图片根据index替换
				                        that.msg = that.msg.replace(
				                          imageArr[index],
				                          res.data[index]
				                        )
				                        index++
				                        that.$emit('change', that.msg)
				                        // 富文本
				                        const value = new DOMParser().parseFromString(
				                          that.msg,
				                          'text/html'
				                        ).body.childNodes // 获取nodes
				                        e.preventDefault() // 阻止复制动作
				                        e.stopPropagation() // 阻止冒泡
				                        that.nodesInQuill(value) // 根据不同标签,使用不同的插入方法
				                      }
				                    } else {
				                      // 富文本
				                      const value1 = new DOMParser().parseFromString(
				                        that.msg,
				                        'text/html'
				                      ).body.childNodes // 获取nodes
				                      e.preventDefault() // 阻止复制动作
				                      e.stopPropagation() // 阻止冒泡
				                      that.nodesInQuill(value1) // 根据不同标签,使用不同的插入方法
				                    }
				                  })
				                  .catch(() => {})
				              } else {
				                // 富文本
				                const value1 = new DOMParser().parseFromString(
				                  that.msg,
				                  'text/html'
				                ).body.childNodes // 获取nodes
				                e.preventDefault() // 阻止复制动作
				                e.stopPropagation() // 阻止冒泡
				                that.nodesInQuill(value1) // 根据不同标签,使用不同的插入方法
				              }
				            }
				          }
				        })
				        //以下是不需要请求接口,直接使用秀米的图片地址
				        // this.quill.root.addEventListener('paste', (e) => {
				        //   let msg = (e.clipboardData || window.clipboardData).getData(
				        //     'text/html'
				        //   ) // 获取粘贴板文本
				        //   if (msg) {
				        //     if (
				        //       msg.indexOf('xiumi.us') > -1 ||
				        //       msg.indexOf('_135editor') > -1
				        //     ) {
				        //       let value = new DOMParser().parseFromString(msg, 'text/html').body
				        //         .childNodes // 获取nodes
				        //       e.preventDefault() // 阻止复制动作
				        //       e.stopPropagation() // 阻止冒泡
				        //       this.nodesInQuill(value) // 根据不同标签,使用不同的插入方法
				        //     }
				        //   }
				        // })
				      },
				      //  自定义图标(秀米,135)
				      initButton() {
				        const sourceEditorButton = document.querySelector('.ql-insertMetric')
				        sourceEditorButton.innerHTML = `<button id="custom-button-xiumi" title="秀米" ></button>`
				        const sourceEditorButtonotEdit = document.querySelector('.ql-otEdit')
				        sourceEditorButtonotEdit.innerHTML = `<button id="custom-button-135" title="135编辑器" ></button>`
				      },
				
				      // 获取html内容
				      getHtml() {
				        return this.articleForm.artContent
				      },
		}
}
</script>

5.css

<style lang="scss" scoped>
	  ::v-deep(#custom-button-xiumi) {
	    background-size: contain;
	    background-repeat: no-repeat;
	    height: 16px;
	    width: 33px;
	    background-image: url('../../../assets/img/xiumi-connect-icon.png');
	  }
	  ::v-deep(#custom-button-135) {
	    background-size: contain;
	    background-repeat: no-repeat;
	    height: 16px;
	    width: 33px;
	    background-image: url('../../../assets/img/editor-135-icon.png');
	  }
  </style>

本文参考:https://www.freesion.com/article/97151190977/
https://blog.csdn.net/qq_41621896/article/details/121975513

【Vue】vue2预览显示quill富文本内容,vue-quill-editor回显页面,v-html回显富文本内容 vue富文本编辑器vue-quill-editor的内容的渲染 阅读详情

相关推荐

vue项目百度ueditor编辑器集成135和秀米,主题图标美化

vue项目百度ueditor编辑器集成135和秀米,ueditor编辑器接入135和秀米,富文本编辑器接入135,富文本编辑器接入秀米,vue接入135编辑器,vue接入秀米编辑器,ueditor百度编辑器集成vue,Ueditor接入秀米,Ueditor接入135,Ueditor 135 秀米,Ueditor添加菜单栏入口,Ueditor整合135/秀米,富文本编辑器集成

江拥羡橙的博客 3862

在quill编辑器中集成秀米和135编辑器

1:问题&需求 大家知道,quill会自动过滤掉秀米和135编辑器文章里面的section之类的样式,导致复制进去的文章排版根本不能看。秀米官网声明只支持ueditor内核的编辑器内核。如果项目里用的编辑器不是ueditor内核的,而客户一定要秀米的功能,咋整?换编辑器?怼客户?换编辑器是不可能换的,这辈子都不可能换的。怼客户又不会,只能自己开发一个这样子。 ** 下面直接上成品,有兴趣的继续往下看,没兴趣直接拷贝仓库研究。 ** 示例地址: 在线预览 github仓库:https://gith

front的博客 4294

阿里巴巴达摩院人工智能训练师(高级)

阿里巴巴达摩院人工智能训练师(高级)

huang0612123的博客 1万+

vue项目引入秀米插件

注:整个UEditor文件放入static文件夹下。查看秀米第三方对接平台,根据步骤配置。UEditor整个文件代码附上,

sinat_41273766的博客 1536

论文阅读:Visual Relationship Detection with Language Priors

Visual Relationship Detection with Language Priors(ECCV2016) 文章   尽管大多数的relationship并不常见,但是它们的object和predicate却更频繁地独立出现。paper用这个insight分别独立训练训练object和predicate的模型,然后再进行组合来预测relationship。Visual relatio...

Kivee的博客 2889

AXI4接口说明

ACLK:全局AXI接口时钟输入(建议与系统时钟保持一致)ARESET_n:全局AXI接口复位信号,低电平有效。PS:在HBM AXI接口应用中,此复位端口仅应在数据传输开始前使用。若在传输开始后使用,会导致AXI接口与内存控制器失步(out-of-sync)。当开关启用时,IP核会将所有ARESET_n引脚内部连接在一起——因为内存作为一个整体工作。

rhtul的博客 1533

富文本编辑器(vue-quill-editor)自定义工具栏按钮

安装 npm install vue-quill-editor --save 使用 1、引用 (1)局部引用,在使用页面引入 import 'quill/dist/quill.core.css' import 'quill/dist/quill.snow.css' import 'quill/dist/quill.bubble.css' import { quillEditor } from 'vue-quill-editor' export default { components: {

qq_31970227的博客 1万+

PentAGI自动渗透测试平台搭建与使用

但是PentAGI的缺陷也比较明显,一个是自动化程度高带来过程的介入困难,整个渗透的过程都交给AI自动决策,无法进行人工调整,耗时较长;从上述过程来看PentAGI似乎是一个比较“可用”的AI自动化渗透测试平台,但是在继续等待测试的过程中,PentAGI的一些缺点也暴露了出来,一个是测试的过程非常漫长,因为PentAGI是使用配置大模型API key的方式全自动运行,支持openai、deepseek等主流LLM大模型,过程中不需要人工介入,会不断自动调整,所以比较依赖于大模型本身的响应速度。

墨痕诉清风的博客 2497

vue-cli 使用ueditor集成 秀米富文本

要做一个公众号文本和官网文章的同步操作公司准备集成秀米富文本。

stpzhf的博客 751

C#联合Halcon机器视觉框架源码—升级版

相较于之前的NxtVision,本软件代码架构更加合理,且新增。对源码有需求的,订阅本专栏后,私信我领取。、原来的vb脚本改为。

Z's Palace 1438

基于线性约束最小方差准则(LCMV)的自适应波束形成算法的matlab仿真

波束形成(BeamForming)通过对多路麦克风(常为多路全向麦)信号进行合并,抑制非目标方向信号,增强目标方向信号;进而能够实现对特定方向的聚焦拾音,能够有效提高接收信号的信噪比,也有起到降噪的作用。基本原理是波的干涉:通过调整不同阵列单元信号之间的参数,使得某些角度的信号增强,而另一些角度的信号相互抵消,例如下图中来自±45°的输入信号未被增强,而在0度方向的输入信号同相位叠加后被增强。为了将窄带波束形成扩展至宽带,可以使用频域LCMV波束形成器。

平时工作较为繁忙,私信消息一般晚上回复,谢谢大家~~ 776

Yjs + Quill 实现文档多人协同编辑器开发(基础+实战)

多人协同开发确实是比较难的知识点,在技术实现上有一定挑战。但随着各种技术库的发展,目前已经有了比较成熟的解决方案,而Yjs+Quill是比较简单实现多人协同编辑的开发技术

~朴:shu的博客 1万+

MATLAB计算干旱指标:SPI、SRI、SWAP、DWAAI、EDI等

简介各种干旱指数以及其MATLAB代码实现

WW、forever的博客 2万+

vue前端富文本组件 quill-editor 粘贴图片的处理

【代码】vue前端富文本组件 quill-editor 粘贴图片的处理。

Survivor_L的博客 2249

Imagiq AI-PQ 图像质量增强模块详解:联发科 ISP 中的 AI 图像管线实战解析

随着智能手机影像系统对图像质量要求的持续提升,联发科在其 Imagiq ISP 中引入了 AI 驱动的图像增强模块——AI-PQ(AI-based Picture Quality),通过 AI 模型对亮度、色彩、噪声、锐度等多个维度进行动态调节与增强,实现更加智能化和个性化的图像输出效果。AI-PQ 在实际工程中已成为影响照片风格、视频观感和多模组一致性的核心能力之一。本文围绕 Imagiq 平台最新一代 AI-PQ 模块(2024-2025年量产平台为基础),结合实机开发与调优经验,深入剖析其各子模块的算

努力分享一些人工智能、计算机视觉、影像等相关的知识干货! 1438

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

quill富文本编辑器 自定义字体和大小 以及提交和回显

第一步:引入quill样式,我是下载到本地了 <!-- 主题样式 --> <link rel="stylesheet" href="${request.contextPath}/statics/css/quill.snow.css"> <link rel="stylesheet" href="${request.contextPath}/statics/css/quill.bubble.css"> <link rel="stylesheet" href="${re.

qq_37278017的博客 4457

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

vue-quill-editor的回显

vue-quill-editor回显

weixin_54526156的博客 2165

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

河豚随心记(六)vue+element ui 使用富文本编辑器组件vue-ueditor-wrap集成秀米编辑器(ueditor内核)

这里的link就是图片上传完成后富文本编辑器上回显的图片url,所以这个url一定要是前端可以访问的,一般是网络地址,我的config.imgURL是图片存放地址的前缀,res.url是图片的名称,所以我这里做了字符串拼接,你们可以根据自己的实际情况修改。秀米编辑器的要求的富文本编辑器内核得是ueditor的,不过用quill内核的也可以,quill的大家可以自行百度,我这里用的是ueditor内核来做的。接下来要讲的是怎么对从秀米编辑器那边粘贴到ueditor富文本编辑器里的图片进行本地化。

m0_46412695的博客 4158

vue-quill-editor回显时字体大小样式丢失

有关于vue-quill-editor回显时字体大小样式丢失问题 如图,在回显编辑器中的内容时,发现文本内容的字色,下划线等样式均能使用,但是字体的大小无法统一 将其转换成html格式输出后发现 如图,在具体变化大小的字前都定义了一个class 查阅资料得知要想文本的样式正确显示,需要在回显的div上增加一个class=”ql-editor”的class名,来确保子元素样式被匹配到 <div class="ql-container"> <div class="q

ThatDawn的博客 3181

VUE项目中引入135编辑器

**【前言】前人栽树,后人乘凉 ** 由于之前做过这个功能,但是没有记录,这次再一次开发的时候忘了几步操作,花了半天时间又一次实现,充分知道了好记性不如烂笔头,记录一下分享给大家 ==|具体效果如图 |==百度编辑器嵌套135编辑器/秀米编辑器===| 【上手第一步】 1.百度编辑器官网下载ueditor的文件压缩包 {这里吐槽一下,这玩意百度都不怎么维护了} 【上手第二步】 2.项目目录文件public文件夹存放以下文件:文件结构如下 ...

菜鸟老五 2576

富文本插件 和回显 vue-quill-editor

在开发过程中,input的限制会越来越明显。这时富文本输入框就派上用场了。 推荐使用这个插件vue-quill-editor 插件的使用方法和自定义组件的使用方法一样 第一步: 安装插件 npm install vue-quill-editor 第二步: 引入vue-quill-editor import { quillEditor } from 'vue-quill-editor' 还要引入下面的样式 import 'quill/dist/quill.core.css' im.

Liu_JiaqiPro的博客 3375

vue-ueditor-wrap集成秀米

因为老项目还在用Ueditor,现在又需要集成秀米,期间踩了很多坑,在这里做个笔记。

weixin_46028703的博客 2489

vue2+ueditor集成135编辑器

最后在main.js中引入这两个文件,注意引入路径。1.引入两个文件存在此处。

Bitter的博客 597

Quill编辑器操作实例详解

今天分享下”Quill编辑器操作实例详解“这篇文章,文中根据实例编码详细介绍,或许对大家的编程之路有着一定的参考空间与使用价值,需要的朋友接下来跟着云南仟龙Mark一起学习一下吧。 一转眼早已2020年,难耐的人们不会再能够满足于简易的文本,因此拥有花哨的带上各种各样款式的文本,殊不知有文本还不够,大家还必须让使用者在小编的情况下,可以插进各种各样自定义信息种类,使我们传出去的推广软文更为漂亮,因而拥有本文。 序言 因为Quill在线编辑器内置的富文本过虑(绝大多数流行在线编辑器都是会对富文本开展过虑解决)

yunduanaoligei的博客 2906
上一篇: vue+elementui+自定义Vue-Quill-Editor富文本框(一)
下一篇: src转换成base64,src转换成Blob,base64转换为file文件流
一颗柚
博客等级 码龄10年 4粉丝 10原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值