提交
This commit is contained in:
@@ -2148,7 +2148,32 @@ export default {
|
|||||||
ed.insertContent('–');
|
ed.insertContent('–');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
ed.ui.registry.addMenuButton('MoreSymbols', {
|
||||||
|
text: '···', // 按钮显示的三个点
|
||||||
|
tooltip: 'More Special Characters',
|
||||||
|
onAction: () => {}, // 菜单主按钮点击通常不执行操作,由子菜单执行
|
||||||
|
fetch: (callback) => {
|
||||||
|
const items = [
|
||||||
|
{
|
||||||
|
type: 'menuitem',
|
||||||
|
text: 'en-dash (短划线)',//短划线
|
||||||
|
onAction: () => ed.insertContent('–')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'menuitem',
|
||||||
|
text: 'minus sign (减号)',//减号
|
||||||
|
onAction: () => ed.insertContent('−')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'menuitem',
|
||||||
|
text: 'hyphen (连接符)',
|
||||||
|
onAction: () => ed.insertContent('-')
|
||||||
|
},
|
||||||
|
|
||||||
|
];
|
||||||
|
callback(items);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
ed.ui.registry.addButton('removeBlue', {
|
ed.ui.registry.addButton('removeBlue', {
|
||||||
text: 'Blue', // 按钮文本
|
text: 'Blue', // 按钮文本
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
:value="value"
|
:value="value"
|
||||||
:typesettingType="typesettingType"
|
:typesettingType="typesettingType"
|
||||||
class="paste-area text-container"
|
class="paste-area text-container"
|
||||||
:toolbar="!isAutomaticUpdate?['bold italic |customBlue removeBlue|LateX| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']:['bold italic |customBlue removeBlue| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']"
|
:toolbar="!isAutomaticUpdate?['bold italic |customBlue removeBlue|LateX| myuppercase myuppercasea Line MoreSymbols|subscript superscript|clearButton|searchreplace']:['bold italic |customBlue removeBlue| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']"
|
||||||
style="
|
style="
|
||||||
/* white-space: pre-line; */
|
/* white-space: pre-line; */
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
|
|||||||
Reference in New Issue
Block a user