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 29 posts 159 karma points
    Jun 04, 2022 @ 16:12
    Giampaolo Cutroneo
    0

    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"
              ]
    </config>
    

    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?

    Thanks!

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

    Did you get any solution?

  • Giampaolo Cutroneo 29 posts 159 karma points
    Jul 04, 2022 @ 07:55
    Giampaolo Cutroneo
    100

    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:

Draft