Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Giampaolo Cutroneo 20 posts 150 karma points
    Jun 04, 2022 @ 16:12
    Giampaolo Cutroneo

    TinyMCE: dinamically add text color to tinyMceConfig

    Hi, I added the setting to color the text to the tinymce. The default colors are taken from the config:

    <config key="textcolor_map">
              "f2e618", "Yellow",
              "5e0dac", "Violet",
              "ffffff", "White",
              "000000", "Black"

    On the site it's possible to configure colors as elements inside a container.

    Is there a way to pass the configured color values ​​to the config file, or have the tinymce read the settings from another file?


  • GregoryWilliams 9 posts 80 karma points
    Jul 04, 2022 @ 07:22

    Did you get any solution?

  • Giampaolo Cutroneo 20 posts 150 karma points
    Jul 04, 2022 @ 07:55
    Giampaolo Cutroneo

    Hi Gregory,

    I created a content app that updates the config. The associated controller updates the tinymce config and then the clientdependency at the same time to make the changes visibles on the backend.

Please Sign in or register to post replies

Write your reply to: