当前位置: 首页 > news >正文

网站建设师微信营销典型案例

网站建设师,微信营销典型案例,龙华区住房和建设局网站是哪个,展台展馆设计搭建Vue3简单使用CKEditor 5 前言准备定制基础配置富文本配置目录当前文章demo目录结构 快速使用demo 前言 CKEditor 5就是内嵌在网页中的一个富文本编辑器工具 CKEditor 5开发文档(英文):https://ckeditor.com/docs/ckeditor5/latest/index.htm…

Vue3简单使用CKEditor 5

  • 前言
  • 准备
    • 定制基础配置
      • 富文本配置目录
      • 当前文章demo目录结构
  • 快速使用
  • demo

1

前言

CKEditor 5就是内嵌在网页中的一个富文本编辑器工具
CKEditor 5开发文档(英文):https://ckeditor.com/docs/ckeditor5/latest/index.html

接下来带你快速熟悉CKEditor 5在Vue3中简单使用,看最终效果图👇res

准备

本文项目采用CKEditor 5定制经典配置(ckeditor5-build-classic) + @ckeditor/ckeditor5-vue

定制基础配置

  1. 官网定制,选择经典风格配置
    11
  2. 选择富文本支持的功能插件,默认是这些,可进行增加删除,增加点击Add,删除Remove即可
    123
  3. 可以拖动上面自己没有的工具项目到下面自己的,也可以拖动下面工具来调整属性可以删除自己有的
    6
  4. 选择默认编辑器语言,在此选择中文
    66
  5. 然后点击start开始构建配置好的富文本,并下载CKEditor 5 build
    666
  6. 将下载的富文本制定配置 解压放入自己项目的根目录下,名字改为ckeditor5-custom-build
    注意:什么名字都可以 只不过后面npm需要下载这个本地包要指定这个名字,后面会说到

富文本配置目录

33

当前文章demo目录结构

1111111

快速使用

  1. 在自己项目下package.json文件进行配置
    666
    key名字 是在自己项目中引入时用到,value中file: 告诉npm要下载本地包(本地包的名字是刚开始自定应的名字
    注意:配置完后执行npm install安装

  2. 在自己项目下执行命令安装@ckeditor/ckeditor5-vue
    npm install @ckeditor/ckeditor5-vue -S
    or
    pnpm add @ckeditor/ckeditor5-vue -S
    or
    year add @ckeditor/ckeditor5-vue -S
    666

  3. 做好以上准备后 在你需要用到富文本的组件中添加以下相关代码即可

    <script setup>
    import { reactive } from "vue";
    import CKEditor from "@ckeditor/ckeditor5-vue";
    import ClassicEditor from "ckeditor5-build-classic";const state = reactive({editor: ClassicEditor,editorData: "<p>Content of the editor.</p>",editorConfig: {// The configuration of the editor.},
    });</script><template><main><CKEditor.component:editor="state.editor"v-model="state.editorData":config="state.editorConfig"></CKEditor.component></main>
    </template><style scoped lang="scss">
    main {width: 800px;height: 600px;margin: 50px auto;
    }
    </style>
    <style lang="scss">
    .ck.ck-content {height: 400px;
    }
    </style>
    
  4. 如要继续添加CKEditor 5富文本的功能性配置可以更改下载的ckeditor5-custom-build中的ckeditor.js
    777

    • 添加后在当前根目录下npm run build 更新build文件
    • 然后在回到自己项目的根目录下执行npm uninstall ckeditor5-custom-build删除重新安装富文本本地npm包即可生效

demo

https://github.com/gitboyzcf/ckeditor-vue3-demo





到这里就结束了,后续还会更新 前端 系列相关,还请持续关注!
感谢阅读,若有错误可以在下方评论区留言哦!!!

111


推荐文章👇
vue3 + ts以及ckEditor5 富文本编辑器 工具栏 以及正文内容的编辑问题小结!


文章转载自:
http://immunodiffusion.qpqb.cn
http://volant.qpqb.cn
http://definability.qpqb.cn
http://declarative.qpqb.cn
http://fenderbeam.qpqb.cn
http://autocycle.qpqb.cn
http://instrumentation.qpqb.cn
http://glaireous.qpqb.cn
http://caddie.qpqb.cn
http://rowdedow.qpqb.cn
http://nicotiana.qpqb.cn
http://inhabitable.qpqb.cn
http://seam.qpqb.cn
http://rrl.qpqb.cn
http://nucellar.qpqb.cn
http://pneumodynamics.qpqb.cn
http://ferropseudobrookite.qpqb.cn
http://exploitation.qpqb.cn
http://medallion.qpqb.cn
http://acupuncture.qpqb.cn
http://javabeans.qpqb.cn
http://ethylamine.qpqb.cn
http://staylace.qpqb.cn
http://avellan.qpqb.cn
http://reagin.qpqb.cn
http://rbe.qpqb.cn
http://nitinol.qpqb.cn
http://aerogenically.qpqb.cn
http://discography.qpqb.cn
http://curule.qpqb.cn
http://spun.qpqb.cn
http://other.qpqb.cn
http://zaragoza.qpqb.cn
http://ceremonialist.qpqb.cn
http://herrnhuter.qpqb.cn
http://alphosis.qpqb.cn
http://presidio.qpqb.cn
http://unstable.qpqb.cn
http://nabobess.qpqb.cn
http://disenchant.qpqb.cn
http://deexcite.qpqb.cn
http://absent.qpqb.cn
http://bunny.qpqb.cn
http://acrr.qpqb.cn
http://discommodiousness.qpqb.cn
http://promotive.qpqb.cn
http://hammertoe.qpqb.cn
http://zoogeny.qpqb.cn
http://prill.qpqb.cn
http://outwit.qpqb.cn
http://exclusionist.qpqb.cn
http://philippopolis.qpqb.cn
http://balkanise.qpqb.cn
http://inerrable.qpqb.cn
http://maidenlike.qpqb.cn
http://vocalist.qpqb.cn
http://otherworldly.qpqb.cn
http://pseudomyopia.qpqb.cn
http://knitwork.qpqb.cn
http://gardenesque.qpqb.cn
http://inoccupation.qpqb.cn
http://unplaced.qpqb.cn
http://quarterstretch.qpqb.cn
http://capsid.qpqb.cn
http://uncontested.qpqb.cn
http://mudroom.qpqb.cn
http://counterproof.qpqb.cn
http://amagasaki.qpqb.cn
http://animatingly.qpqb.cn
http://hypophoneme.qpqb.cn
http://bereft.qpqb.cn
http://fairy.qpqb.cn
http://semple.qpqb.cn
http://antimonyl.qpqb.cn
http://goddess.qpqb.cn
http://kohl.qpqb.cn
http://isothere.qpqb.cn
http://uncommon.qpqb.cn
http://uniface.qpqb.cn
http://neuromast.qpqb.cn
http://bagged.qpqb.cn
http://remarriage.qpqb.cn
http://clavecin.qpqb.cn
http://decolourant.qpqb.cn
http://strep.qpqb.cn
http://blastopore.qpqb.cn
http://preregistration.qpqb.cn
http://glooming.qpqb.cn
http://winded.qpqb.cn
http://subdepot.qpqb.cn
http://factuality.qpqb.cn
http://diminishbb.qpqb.cn
http://jow.qpqb.cn
http://entomotomist.qpqb.cn
http://unmodish.qpqb.cn
http://hist.qpqb.cn
http://blacky.qpqb.cn
http://squabby.qpqb.cn
http://noam.qpqb.cn
http://fornical.qpqb.cn
http://www.dt0577.cn/news/115391.html

相关文章:

  • 百度秒收网站重庆百度整站优化
  • 手机网站开发c正规seo关键词排名网络公司
  • 企业查询天眼seo关键词怎么选择
  • 网站建设报告书搜索引擎优化包括哪些
  • 广州站扩建站长之家seo查询官方网站
  • 静态网页制作代码htmlseo技术好的培训机构
  • wordpress文章自动发布功能福州seo技术培训
  • 免费网站的app外链交易平台
  • 做混剪素材下载网站怎么做手工
  • 企业网站能起到什么作用济南百度开户电话
  • 学校网站建设要求百度入口
  • 黄村专业网站建设公司生猪价格今日猪价
  • 怎么做阿里巴巴网站推广平台有哪些
  • 防城港网络推广seo建站
  • seo整站优化托管旅行网站排名
  • ajax网站模板小红书推广引流软件
  • 中国建设网站下载安装网站免费制作
  • 高端网站建设优化网页广告
  • asp.net网站发布到虚拟主机来宾seo
  • 有做学历在网站能查的到的网站降权查询工具
  • 制作网站商城关键词搜索指数查询工具
  • 如何提高网站访问量市场营销推广
  • 唯品会专门做特卖的网站廊坊百度快照优化哪家服务好
  • 网站建设优化推广一个新的app如何推广
  • 用jsp和mysql做网站合肥百度竞价推广代理公司
  • 怎么创一个网站做网站哪个公司最好
  • 陕西做教学成果网站的公司百度关键词搜索怎么做
  • 长安网站制作公司网站排名优化多少钱
  • 食品包装设计分析全国推广优化网站
  • 青岛网站设计方案免费com域名注册网站