current position:Home>vue-quill-editor rich text editor will clear spaces for content, filter empty strings, spaces; solution
vue-quill-editor rich text editor will clear spaces for content, filter empty strings, spaces; solution
2022-08-06 16:25:06【cplvfx】
vue-quill-editor rich text editor will clear spaces for content, filter empty strings, spaces; solution
Question:
After the content (string) written in the rich text editor is retrieved from the database, it will be displayed in a normal div, and the spaces will be cleared by default
Solution:
Add a style to the tag to display the content: style="white-space:pre-wrap;"
(while keeping the space, it will wrap)
Note: When vue-quill-editor edits the style, it is achieved by adding the class name. When the page obtains data, make sure that the page introduces theThe style file of vue-quill-editor, otherwise it will have no effect
Please see the details
copyright notice
author[cplvfx],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/218/202208061619554631.html
The sidebar is recommended
- Understand the location and root nginx
- Alibaba Cloud nginx configuration file does not take effect
- Men "powerless" don't blame electric cars
- java project recommendation - based on springboot+vue car rental system 296
- Shared charging treasure management system based on springboot+vue
- Reprint--Several recommended practices for JavaScript asynchronous code
- Web version face recognition, face login, face comparison, springboot+vue+mysql
- Web version face login, web face login, face recognition, based on Springboot+vue2.X version+mysql
- Nodejs knowledge that the front end needs to know (basic)
- AngularJS uses ng-class, ng-style to achieve dynamic css style
guess what you like
vue drop down menu
Nginx proxy_set_header parsing and stretches add_header instruction [go]
Vue study notes (middle)
Vue study notes
Vue study notes (below)
Escaping and escaping strings json, xml, html escaping and escaping tools StringEscapeUtils
Django website development 01.Web website and front-end HTML tags
Django website development 02. CSS Cascading Style Sheets (Cascading Style Sheets)
(Front-end) Application of "Memo" design pattern in project development
Javascript paging: simulate the method of returning data in the background
Random recommended
- How to use wireless serial communication module to realize long-distance communication between touch screen and PLC?
- Getting Started with Vue2 - Rookie Level 1
- HTTP and HTTPS protocols
- 2022 Autumn Recruitment Front-end Interview Questions (1) (with answers)
- From function computing to serverless architecture
- Before 2022 the autumn recruit face questions (with answers) (2)
- About git's fatal: unable to access 'https://gitee.com/': Could not resolve host: gitee.com; Unknown error
- The sinkhole of Nginx's current limit!!
- Write a progress bar in JavaScript
- Write input box validation in JavaScript
- CSS knowledge points
- Write a random color in JavaScript
- Construct HTTP
- Webstorm opens and browses md files with garbled characters?
- PHP+HTML+MySQL realizes login error
- The comments in the Dygraphs Annotations
- [React] Part VI Life Cycle
- [React] Part VII Dom's diffing algorithm
- To React the React in the setState after data didn't change
- [React] The problem of React project startup stuck in Starting the development server...
- [React] The eighth part of react scaffolding installation and react scaffolding configuration agent
- [React] Part 5 Higher-Order Functions and Currying of Functions
- form and CSS
- In the Vue named Vue 】 【 encountered when component name "index" should always be multi - solution of word
- A pit in Nginx forwarding, operation and maintenance actually let me take the blame
- Easily converts HTML to PDF BFO Publisher
- vue2 typescript style type error?
- The back-end json is transferred to the front-end, but the front-end does not display?
- The sinkhole of Nginx current limit
- nginx service upgrade
- Vue gets the width and height attributes of the file file
- html submit form does not jump to the page
- CSS Tricks You Need to Know: Images
- Huawei FreeBuds Pro 2 review: the strongest TWS is here, this is the ceiling of wireless headphones
- Docker deploys a single page application
- Nginx and CDN
- vue click.stop stops the click event from continuing to propagate (stops the event from bubbling up)
- js array to remove the specified element [function encapsulation] (including object array to remove the specified element)
- CSS Drawing [Summary]
- [Webpack Quick Start] How to manually configure a webpack packaging tool for the project?