|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
font-size: 16px !important; /* 强制固定字体 */
|
|
|
line-height: 1.2 !important; /* 避免行高影响 */
|
|
|
}
|
|
|
- .emphasis-dot {
|
|
|
+ .rich-text-emphasis-dot {
|
|
|
border-bottom: none;
|
|
|
background-image: radial-gradient(
|
|
|
circle at center,
|
|
|
@@ -184,6 +184,8 @@ export default {
|
|
|
branding: false, // 品牌
|
|
|
statusbar: false, // 状态栏
|
|
|
entity_encoding: 'raw', // raw不编码任何字符;named: 使用命名实体(如 );numeric: 使用数字实体(如  )
|
|
|
+ target_list: false,
|
|
|
+ default_link_target: '_blank', // 或 '_self'
|
|
|
setup: (editor) => {
|
|
|
editor.on('GetContent', (e) => {
|
|
|
if (e.format === 'html') {
|
|
|
@@ -207,17 +209,17 @@ export default {
|
|
|
if (!editor.formatter.has('emphasisDot')) {
|
|
|
editor.formatter.register('emphasisDot', {
|
|
|
inline: 'span',
|
|
|
- // classes: 'emphasis-dot',
|
|
|
- styles: {
|
|
|
- 'border-bottom': 'none',
|
|
|
- 'background-image':
|
|
|
- 'radial-gradient(circle at center, currentColor 0.15em, transparent 0.16em)' /* 圆点大小相对于字体 */,
|
|
|
- 'background-size': '1em 0.3em' /* 间距相对于字体大小,高度相对字体 */,
|
|
|
- 'background-repeat': 'repeat-x',
|
|
|
- 'background-position': '0 100%',
|
|
|
- 'padding-bottom': '0.3em' /* 间距也相对于字体 */,
|
|
|
- display: 'inline',
|
|
|
- },
|
|
|
+ classes: 'rich-text-emphasis-dot',
|
|
|
+ // styles: {
|
|
|
+ // 'border-bottom': 'none',
|
|
|
+ // 'background-image':
|
|
|
+ // 'radial-gradient(circle at center, currentColor 0.15em, transparent 0.16em)' /* 圆点大小相对于字体 */,
|
|
|
+ // 'background-size': '1em 0.3em' /* 间距相对于字体大小,高度相对字体 */,
|
|
|
+ // 'background-repeat': 'repeat-x',
|
|
|
+ // 'background-position': '0 100%',
|
|
|
+ // 'padding-bottom': '0.3em' /* 间距也相对于字体 */,
|
|
|
+ // display: 'inline',
|
|
|
+ // },
|
|
|
wrapper: true,
|
|
|
remove_similar: true,
|
|
|
});
|