[Support Request]: how to change the TinyMCE toolbar #2450

Closed
opened 2026-02-05 04:10:34 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @kay54068 on GitHub (Oct 21, 2021).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I want to add the 'font_formats' and 'fontsize_formats' in the toolbar then i try update the resources/js/components/wysiwyg-editor.js but is not invalid.

I need to run something when change the wysiwyg-editor.js ?

ref:
https://www.tiny.cloud/docs-4x/configure/content-formatting/#font_formats

Exact BookStack Version

v21.08.6

Log Content

No response

PHP Version

No response

Hosting Environment

linuxserver docker:

https://github.com/linuxserver/docker-bookstack

Originally created by @kay54068 on GitHub (Oct 21, 2021). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I want to add the 'font_formats' and 'fontsize_formats' in the toolbar then i try update the resources/js/components/wysiwyg-editor.js but is not invalid. I need to run something when change the wysiwyg-editor.js ? ref: https://www.tiny.cloud/docs-4x/configure/content-formatting/#font_formats ### Exact BookStack Version v21.08.6 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment linuxserver docker: https://github.com/linuxserver/docker-bookstack
OVERLORD added the 🐕 Support label 2026-02-05 04:10:34 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 21, 2021):

Hi @kay54068,
Files stored within the resources/js folder are transpiled and bundled out to the public/dist folder. Details of this process can be found in the "Development & Testing" part of the readme here: https://github.com/BookStackApp/BookStack/blob/master/readme.md#%EF%B8%8F-development--testing

I have exposed some hooks in the production code that can be used to customize the tinymce config without altering any core files. Details of this can be seen in my comment here:
https://github.com/BookStackApp/BookStack/issues/1203#issuecomment-621342313

Keep in mind, We'll be looking to move away from TinyMCE over the next few months. Any existing non-supported functionality, or any customizations, will not be kept in mind for compatibility when a new editor is implemented.

@ssddanbrown commented on GitHub (Oct 21, 2021): Hi @kay54068, Files stored within the `resources/js` folder are transpiled and bundled out to the `public/dist` folder. Details of this process can be found in the "Development & Testing" part of the readme here: https://github.com/BookStackApp/BookStack/blob/master/readme.md#%EF%B8%8F-development--testing I have exposed some hooks in the production code that can be used to customize the tinymce config without altering any core files. Details of this can be seen in my comment here: https://github.com/BookStackApp/BookStack/issues/1203#issuecomment-621342313 Keep in mind, We'll be looking to move away from TinyMCE over the next few months. Any existing non-supported functionality, or any customizations, will not be kept in mind for compatibility when a new editor is implemented.
Author
Owner

@kay54068 commented on GitHub (Oct 25, 2021):

Thank your replay. I try the TinyMCE hook can change toolbar for me. so I close this issue.

@kay54068 commented on GitHub (Oct 25, 2021): Thank your replay. I try the TinyMCE hook can change toolbar for me. so I close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2450