Tintifax Posted January 17 Share Posted January 17 Hi everyone! Is it possible to limit the available colors using 'forecolor' in the TinyMCE toolbar? thank you in advance for your help. Greetings! 1 Link to comment Share on other sites More sharing options...
cb2004 Posted February 16 Share Posted February 16 @Tintifax I recently had the same requirement: { "color_map": [ "595885", "Purple", "6a905e", "Green" ], "custom_colors": false } 2 Link to comment Share on other sites More sharing options...
Tintifax Posted February 19 Author Share Posted February 19 It works like a charm! Thank you @cb2004!!! Link to comment Share on other sites More sharing options...
Stefanowitsch Posted February 19 Share Posted February 19 On 2/16/2024 at 2:42 PM, cb2004 said: @Tintifax I recently had the same requirement: { "color_map": [ "595885", "Purple", "6a905e", "Green" ], "custom_colors": false } I think thats also what I've been looking fore. Where do I have to put this config object? Link to comment Share on other sites More sharing options...
cb2004 Posted February 19 Share Posted February 19 @Stefanowitsch in the 'Input' tab of the field settings, there is a 'Custom settings JSON' area. You can put it in the 'JSON text' field, or if you need to reuse it, create a file on your server add the above to the file and point to it using the 'JSON file' option. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now