We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37099
    • 338 Posts
    Is it possible to add TinyMCE in the front end with modx via a plugin or widget or template variable?


    Or should i follow the instructions on the TinyMCE site?

    Thanks
    Mike
      • 16278
      • 928 Posts
      Sounds like a job for a template variable! cool Screenshot attached of one called pkRichText, inserted in my form with
      [*pkRichContent*]. The Widget part of the definition needs to be set to "Rich Text", though the dimensions don’t seem to have any impact on the front-end display. (My default content is a placeholder that is filled when the form in question is redisplayed after an error)

      The default setting for TinyMCE will be a minimal formatting toolbar below the text box. This can be changed (e.g. to a moderately powerful toolbar with alignment, insert images etc.) via Manage Resources > Plugins > TinyMCE > Configuration, selecting what you want for the Web Theme parameter.
      laugh
      KP



        • 37099
        • 338 Posts
        OK, thanks smiley

        Still learning of the power of TVs....

        They seem a slightly more involved than chunks and snippets.