当前位置:网站首页>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
边栏推荐
- 误删Path变量解决
- L2-001 emergency rescue (25 points)
- [Bluebridge cup 2020 preliminary] horizontal segmentation
- 牛客Novice月赛40
- Codeforces Round #771 (Div. 2)
- [Blue Bridge Cup 2017 preliminary] grid division
- AcWing 242. A simple integer problem (tree array + difference)
- TypeScript
- wangeditor富文本引用、表格使用问题
- 数据库高级学习笔记--SQL语句
猜你喜欢
机器学习--人口普查数据分析
UDS learning notes on fault codes (0x19 and 0x14 services)
MySQL与c语言连接(vs2019版)
QT creator custom build process
Vs2019 use wizard to generate an MFC Application
Face recognition_ recognition
double转int精度丢失问题
2019腾讯暑期实习生正式笔试
学习问题1:127.0.0.1拒绝了我们的访问
Learn winpwn (2) -- GS protection from scratch
随机推荐
第4阶段 Mysql数据库
QT creator specifies dependencies
Vs2019 use wizard to generate an MFC Application
[AGC009D]Uninity
Codeforces Round #771 (Div. 2)
Password free login of distributed nodes
Face recognition_ recognition
Pytorch基础
ES6 let 和 const 命令
Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
ES6 Promise 对象
ES6 promise object
Case analysis of data inconsistency caused by Pt OSC table change
Punctual atom stm32f103zet6 download serial port pin
[蓝桥杯2017初赛]包子凑数
使用lambda在循环中传参时,参数总为同一个值
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
QT creator create button
2020网鼎杯_朱雀组_Web_nmap
Machine learning -- census data analysis