当屏幕宽度改变时,Jodit 所见即所得按钮列表改变
Jodit WYSIWYG Buttons list changes when screen width changes
我在我的项目中使用 Jodit WYSIWYG editor v.3。
It is OK when option "buttons" changes - the list of buttons changes too.但它仅适用于最大屏幕尺寸 - 当客户端屏幕尺寸发生变化时 - 按钮列表也会发生变化......
如何在 Jodit WYSIWYG 编辑器 v.3 中针对任何屏幕宽度修复我的“buttons
”选项?
这是我的 Jodit 选项代码:
var editor = new Jodit("#text-editor", {
"toolbarSticky": false,
"toolbarStickyOffset": 10,
"showCharsCounter": false,
"showWordsCounter": false,
"showXPathInStatusbar": false,
"buttons": "source,|,bold,strikethrough,underline,italic,|,ul,ol,outdent,indent,font,fontsize,brush,paragraph,|,image,video,table,link,|,align,undo,redo,hr,|,symbol,",
});
请查看文档根据屏幕尺寸添加按钮
版本 - 2.5.49
笔记。这不是设备的宽度,是编辑器的宽度
1]buttons The list of buttons that appear in the editor's toolbar on
large places (≥ options.sizeLG). 2]buttonsMD The list of buttons that
appear in the editor's toolbar on medium places (≥ options.sizeMD).
3]buttonsSM The list of buttons that appear in the editor's toolbar on
small places (≥ options.sizeSM). 4]buttonsXS The list of buttons that
appear in the editor's toolbar on extra small places (<
options.sizeSM).
我在我的项目中使用 Jodit WYSIWYG editor v.3。
It is OK when option "buttons" changes - the list of buttons changes too.但它仅适用于最大屏幕尺寸 - 当客户端屏幕尺寸发生变化时 - 按钮列表也会发生变化......
如何在 Jodit WYSIWYG 编辑器 v.3 中针对任何屏幕宽度修复我的“buttons
”选项?
这是我的 Jodit 选项代码:
var editor = new Jodit("#text-editor", {
"toolbarSticky": false,
"toolbarStickyOffset": 10,
"showCharsCounter": false,
"showWordsCounter": false,
"showXPathInStatusbar": false,
"buttons": "source,|,bold,strikethrough,underline,italic,|,ul,ol,outdent,indent,font,fontsize,brush,paragraph,|,image,video,table,link,|,align,undo,redo,hr,|,symbol,",
});
请查看文档根据屏幕尺寸添加按钮
版本 - 2.5.49 笔记。这不是设备的宽度,是编辑器的宽度
1]buttons The list of buttons that appear in the editor's toolbar on large places (≥ options.sizeLG). 2]buttonsMD The list of buttons that appear in the editor's toolbar on medium places (≥ options.sizeMD). 3]buttonsSM The list of buttons that appear in the editor's toolbar on small places (≥ options.sizeSM). 4]buttonsXS The list of buttons that appear in the editor's toolbar on extra small places (< options.sizeSM).