I am allowing users to add values into my database using the Rich Text Editor plugin built by Bubble. I need to provide certain functions for formatting through the RTE, however, I do not want my users to change the colors of the text. It is not possible with the RTE to select with formatting options to make available (can only do the 3 choices basic/medium/full).
In trying to mitigate these issues I am wanting to run a find and replace function on the dynamic values to change any colors to fonts the user might have added to the font color I want it displayed in.
I don’t know how to make it so I can look for multiple possible RGB values, or how to make it find any unknown RGB values and replace with the one RGB value it should be displayed as.
I would like to be able to use a regex pattern to basically say find any rgb of any value combination without needing to hardcode the different rgb values they may have selected in the RTE.
Any regex pattern that could do this?