We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining a toolbar like
const complexEditor = [ ["bold", "underline", "italic", "strike", "subscript", "superscript"], ["font", "fontSize", "formatBlock", "lineHeight"], ["removeFormat"], ["fontColor", "hiliteColor"], ["outdent", "indent"], ["align", "horizontalRule", "list", "table"], ["link", "image", "video" ], ["undo", "redo"], [':i-More Misc-default.more_vertical', "showBlocks", "codeView", "preview", "fullScreen"], // (widthof view port (!): 1295) ['%1295', [ [':t-More Text-default.more_text', "bold", "underline", "italic", "strike", "subscript", "superscript", "fontColor", "hiliteColor"], [':p-More Paragraph-default.more_paragraph', "font", "fontSize", "formatBlock", "lineHeight"], ["removeFormat"], ["outdent", "indent"], ["align", "horizontalRule", "list", "table"], ["link", "image", "video" ], [':i-More Misc-default.more_vertical', "showBlocks", "codeView", "preview", "fullScreen", "undo", "redo"], ]], ];
and assigning that to two different instances of the editor will only work on the first instance. Second instance has the default toolbar:
<SunEditor lang={loc} setOptions={{ height: 280, buttonList: complexEditor, videoFileInput: false, imageFileInput: false, }} setContents={this.state.values.collectiontext} placeholder={<ModLocales translate={"Type any content here ..."}/>} onChange={this.onPageEditorChange} /> <SunEditor lang={loc} setOptions={{ height: 280, buttonList: complexEditor, videoFileInput: false, imageFileInput: false, }} setContents={this.state.values.collectionfooter} placeholder={<ModLocales translate={"Type any content here ..."}/>} onChange={this.onFooterEditorChange} />
Screenshot:
The text was updated successfully, but these errors were encountered:
Hi, This issue will be fixed in the next version. In the current version, create a separate object for the button list.
const complexEditor = [...] const complexEditor2 = [...]
Sorry, something went wrong.
fix: #533 define responsive toolbar
e4071b0
fix: #533 Independent buttonList by instance
cd1a076
The 2.34.1 version has been updated. If this issue has not been resolved, please reopen this issue. Thank you.
Works now, many thanks!
No branches or pull requests
Defining a toolbar like
and assigning that to two different instances of the editor will only work on the first instance. Second instance has the default toolbar:
Screenshot:
The text was updated successfully, but these errors were encountered: