-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
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
toolbar customization #31
Comments
Yes, you are right. I will see if I can take care of this before the Beta. |
I added a section to the README discussing it: Customizing Toolbar ContentsYou can customize toolbars by eliminating them and/or subsetting their contents. Here is an example that eliminates the CorrectionToolbar (that holds the Undo and Redo buttons) and only includes Bold, Italic, and Underline as formats in the FormatToolbar. As discussed below the default for allowLocalImages is false for several reasons. If you use customized ToolbarContents, then you need to specify allowLocalImages directly in ImageContents to override the default.
You would typically be doing this kind of customization in your SceneDelegate, which is where you can find a commented-out example of how to do it in the demos. |
FYI, in doing the work to sync menu item enable/disable properly using ToolbarContents, I needed to change the suggested way to customize ToolbarContents just a bit. Specifically, it needs to be done earlier in the lifecycle because the menu is set up early. So, I updated the README and the demos accordingly: Customizing Toolbar ContentsYou can customize toolbars by eliminating them and/or subsetting their contents. You do this by creating a new instance of
|
you should be able to customize the toolbar by being able to remove any of the toolbars (ex. if you want to remove the InsertToolbar )
and if you want to remove some of the features in a toolbar (ex.remove the underline in the FormatToolbar)
The text was updated successfully, but these errors were encountered: