Member
Member
lai   21-11-2023, 04:06
#1

Sorry if this has been asked before. Have really searched but couldn't find any info on it.

How can we change the font color in the Gallery Description or in ZenPage for that matter?

Have tried with the style=color red tag within a paragraph.
Well it works in the preview (can see font as red), but whenever trying to save it always results in:
"403 Forbidden Access to this resource on the server is denied!"

Tried using TinyMCE 4.x. All the editing options are there - just no font color changing option.
Editing in source code results in the same error.
Weirdly, my old installation with TinyMCE 1.3.1 has this option and works fine.

Any ideas how to do it correctly?
Does it have to do with modifying the custom.css? If so how? ??

Administrator
Administrator
acrylian   21-11-2023, 10:12
#2

Have tried with the style=color red tag within a paragraph.

You did add this correctly like this?

That should actually work with or without TinyMCE. But besides that indeed even the full configuration does not include the color option. We'll add it there with the next update. It was probably not added because usually the theme controls the general colors via CSS.

But you can create your own TinyMCE configuration file: https://www.zenphoto.org/news/how-to-create-custom-tinymce-configurations/

Member
Member
lai   21-11-2023, 12:27
#3

Yes, added the code exactly like that. Will result in the 403 error.
And it's the same no matter what theme I use.

Trying to look into the TinyMCE config file, but doubt it will work because doing it in TinyMCE's 'source code' option gives the same error.

Administrator
Administrator
acrylian   21-11-2023, 13:08
#4

but doubt it will work because doing it in TinyMCE's 'source code' option gives the same error.

Well, you have to do it in the source code view in any case. Otherwise TinyMCE treats it as text. I just tried it on our own site and had no problems with inline CSS. If you get errors on saving there is something else really wrong on your install. Review the debuglog.

And anyways, next version will have font color in the full config file variant.

Member
Member
lai   22-11-2023, 06:34
#5

Many thanks acrylian.
Realized the problem was with my hosting's Modsecurity. Disabled it and the error is gone. Color works now.

Looking forward to the next version.

Administrator
Administrator
acrylian   22-11-2023, 09:56
#6

Ah, yes, modsecurity and its config especifially is notorious for causing unwanted/unnecessary trouble. Glad it worked out!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.