当前位置:网站首页>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
边栏推荐
- [蓝桥杯2017初赛]方格分割
- 【flink】flink学习
- Use dapr to shorten software development cycle and improve production efficiency
- 01 project demand analysis (ordering system)
- L2-001 紧急救援 (25 分)
- QT creator specifies dependencies
- 4. Install and deploy spark (spark on Yan mode)
- [Presto] Presto parameter configuration optimization
- When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
- vs2019 使用向导生成一个MFC应用程序
猜你喜欢
Introduction and use of automatic machine learning framework (flaml, H2O)
【CDH】CDH5.16 配置 yarn 任务集中分配设置不生效问题
Vs2019 use wizard to generate an MFC Application
机器学习--人口普查数据分析
快来走进JVM吧
error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_s instead
MySQL与c语言连接(vs2019版)
QT creator design user interface
{one week summary} take you into the ocean of JS knowledge
Face recognition_ recognition
随机推荐
Did you forget to register or load this tag
[Bluebridge cup 2021 preliminary] weight weighing
MTCNN人脸检测
Vs2019 use wizard to generate an MFC Application
天梯赛练习集题解LV1(all)
DICOM: Overview
AcWing 179.阶乘分解 题解
Codeforces Round #753 (Div. 3)
数数字游戏
QT creator uses Valgrind code analysis tool
[AGC009D]Uninity
保姆级出题教程
Request object and response object analysis
Knowledge Q & A based on Apache Jena
【CDH】CDH/CDP 环境修改 cloudera manager默认端口7180
Double to int precision loss
Solve the problem of installing failed building wheel for pilot
分布式节点免密登录
Niuke novice monthly race 40
Why can't STM32 download the program