vue3 uses the rich text editor wangEditor 5 to add a custom drop-down box and dynamically change the content of the drop-down box

Write a custom directory title here official information Show results Preparation Install use demo Custom extension function (drop-down box) First, define the menu class Second, register the menu to wangEditor Third, insert the menu into the toolbar final code selectTest.ts editorDemo.vue Official information wangEditor official website Effect display Preparation Just follow the Vue3 Demo operation […]

[Text editor nano, vim, gedit, file usage, and version update issues under ubuntu system]

Text Editor Summary Under Ubuntu, there are many text editors to choose from, each with its own unique features and uses. Here are some common text editors: Gedit: This is Ubuntu’s default text editor. It is simple to use and suitable for basic text editing tasks. Installation method: Gedit is usually pre-installed in Ubuntu systems. […]

wangEditor5 customizes the menu bar in vue–format brush, upload pictures, video functions

Copy, paste, modify and use it directly, and also write relevant comments. 1. Install related plug-ins npm install @wangeditor/editor npm install @wangeditor/editor-for-vue 2. Official key documents ButtonMenu: https://www.wangeditor.com/v5/development.html#buttonmenu Register menu to wangEditor: Customize new extension features | wangEditor insertKeys keys for custom functions: https://www.wangeditor.com/v5/toolbar-config.html#insertkeys Custom upload image and video function: menu configuration | wangEditor Source […]

react-wangeditor package

Table of Contents Introducing rich text Advantage: Disadvantages: Code Complete code Introduction to rich text I use WangEditor here because there are no very complex rich text functional requirements. However, WangEditor is a lightweight rich text, so I use wangeditor. The version used in this chapter is 4.7.15 WangEditor is a rich text editor based […]

Vue3: Secondary encapsulation of WangEditor rich text editor as hook

Author: Tang Moxi Original text: https://juejin.cn/post/7279346413914718263 The original intention was to perform a special treatment based on WangEditor[1] to make it easier to use and more flexible. This editor allows you to edit rich text content as easily as writing text. Whether you want to write a great blog post or design a gorgeous web […]

React wangEditor5 usage instructions

1. Support package installation yarn add @wangeditor/editor # Or npm install @wangeditor/editor –save yarn add @wangeditor/editor-for-react # Or npm install @wangeditor/editor-for-react –save 2. Use import ‘@wangeditor/editor/dist/css/style.css’ //Introduce css import {<!– –> useState, useEffect } from ‘react’ import {<!– –> Editor, Toolbar } from ‘@wangeditor/editor-for-react’ import {<!– –> IDomEditor, IEditorConfig, IToolbarConfig } from ‘@wangeditor/editor’ type InsertImgType […]

Image upload configuration items of WangEditor rich text editor in html, and how to display images directly without using backend echo

Use of WangEditor rich text editor to upload images and return display effects Go directly to the code (here I use my page to show the effect) <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Writing Strategy</title> <link href=”https://cdn.bootcdn.net/ajax/libs/normalize/8.0.1/normalize.min.css” rel=”stylesheet”> <!– <link href=”https://cdn.jsdelivr.net/npm/@wangeditor/editor@latest/dist/css/style.css” rel=”stylesheet”> –> <link href=”https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css” rel=”stylesheet”> <link […]

Nuxt3 embedded wangEditor5 rich text editor

Renderings Installation yarn add @wangeditor/editor yarn add @wangeditor/editor-for-vue@next npm install @wangeditor/editor npm install @wangeditor/editor-for-vue@next Use For image uploading, video uploading and other related functions, I have encapsulated the components here, you can pick them up if needed. <template> <div class=”editor” v-loading.fullscreen.lock=”fullLoading”> <component :is=”toolBarComponent” style=”border-bottom: 1px solid #ccc” :editor=”editorRef” :defaultConfig=”toolbarConfig” mode=”default” /> <component :is=”editorComponent” style=”width:848px;height: 500px; […]

WangEditor5-Analyze Word

WangEditor5-Analyze Word 1. Create a toolbar class 2. Toolbar method implementation 3. Page specific code 4. Effect drawing Word effect in wps The effect of importing into the editor wangEditor official website https://www.wangeditor.com/v5/toolbar-config.html Parsing is not all parsing, information such as font color will be lost yarn add @wangeditor/editor yarn add @wangeditor/editor-for-react # Used to […]