当前位置:网站首页>Wangeditor rich text reference and table usage
Wangeditor rich text reference and table usage
2022-07-06 11:33:00 【iatkotworld】
wangeditor Rich text component problem
Introduction to the problem :
This article records wangeditor A problem encountered in development , Before using wangeditor I didn't do much research because of time tension , Subsequent project tests , Measure and find the tables and references added in the editor , The display style is different from that in the editor , Here are the solutions .
Details :
Show the effect in the editor :
The editor displays the effect in the console :
You can see that the reference function is styled , The label is called "blockquote".
Print out the contents of the current editor :
You can see that only the label name has no label style , So after data submission , When displaying on the details page , In the page, only the tag name has no corresponding style , The corresponding display effect cannot be displayed correctly .
Solution :
css modify
Directly add the corresponding label style in the display page , The same is true for tables .
.dialogCont /deep/ blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.dialogCont /deep/ blockquote p {
padding: 10px 0;
}
explain :
After adding styles to the display page , Although successfully displayed , But I'm not sure whether this method is reasonable , So I checked on the Internet again , Then I found this page , You can refer to .
Page link :https://www.kancloud.cn/wangfupeng/wangeditor3/335775
边栏推荐
- QT creator shape
- L2-007 家庭房产 (25 分)
- [CDH] cdh5.16 configuring the setting of yarn task centralized allocation does not take effect
- Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
- AcWing 1294.樱花 题解
- 【kerberos】深入理解kerberos票据生命周期
- When using lambda to pass parameters in a loop, the parameters are always the same value
- DICOM: Overview
- {一周总结}带你走进js知识的海洋
- nodejs 详解
猜你喜欢

MTCNN人脸检测

MySQL与c语言连接(vs2019版)

【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题

vs2019 第一个MFC应用程序

About string immutability

Classes in C #

QT creator runs the Valgrind tool on external applications

Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'

Integration test practice (1) theoretical basis

2019腾讯暑期实习生正式笔试
随机推荐
Vs2019 use wizard to generate an MFC Application
Aborted connection 1055898 to db:
Machine learning notes week02 convolutional neural network
Base de données Advanced Learning Notes - - SQL statements
使用lambda在循环中传参时,参数总为同一个值
Solve the problem of installing failed building wheel for pilot
软件测试与质量学习笔记3--白盒测试
[BSidesCF_2020]Had_a_bad_day
express框架详解
【flink】flink学习
QT creator create button
Word排版(小计)
How to build a new project for keil5mdk (with super detailed drawings)
QT creator design user interface
MySQL and C language connection (vs2019 version)
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
Pytoch Foundation
Error reporting solution - io UnsupportedOperation: can‘t do nonzero end-relative seeks
數據庫高級學習筆記--SQL語句
Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.