Tintifax Posted January 17, 2024 Posted January 17, 2024 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
cb2004 Posted February 16, 2024 Posted February 16, 2024 @Tintifax I recently had the same requirement: { "color_map": [ "595885", "Purple", "6a905e", "Green" ], "custom_colors": false } 2
Tintifax Posted February 19, 2024 Author Posted February 19, 2024 It works like a charm! Thank you @cb2004!!!
Stefanowitsch Posted February 19, 2024 Posted February 19, 2024 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?
cb2004 Posted February 19, 2024 Posted February 19, 2024 @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
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