We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42560
    • 49 Posts
    Hello, im trying to use new tags in the tinymce editor(in the content part), like:

      <figure>
         <img src="url/myimage.jpg">
         <figcaption>this is the caption blah</figcaption>
      </figure>
    


    But when i save and refresh in the modx editor, the code is gone, but not in my site.

    i mean, the change is visible in my site but the code is not showing in the tinymce editor.

    i cleared cache, deleted cookies and nothing. i guess this tags are not allowed in the editor...

    Where can i add new tags in the editor?
      • 17301
      • 932 Posts
      It depends on what richtext editor you're using. If you're using redactor (recommended) from modmore then you can just go into system settings and specifify allowed tags or denied tags. Though I think by default redactor accepts valid html5 tags.
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 17301
        • 932 Posts
        Though I should add it's not recommended that you include html in your rich text editor as it should only be used for basic content editing.
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 42560
          • 49 Posts
          Quote from: lkfranklin at May 29, 2018, 03:00 PM
          It depends on what richtext editor you're using. If you're using redactor (recommended) from modmore then you can just go into system settings and specifify allowed tags or denied tags. Though I think by default redactor accepts valid html5 tags.

          Hi, i'm using tinymce 4.3.3 as my default editor smiley
            • 42560
            • 49 Posts
            Quote from: lkfranklin at May 29, 2018, 03:01 PM
            Though I should add it's not recommended that you include html in your rich text editor as it should only be used for basic content editing.

            hi, i need <figure> and <figcaption> tags in my tinymce editor. Those new tags are not being displayed in the editor, but those new tags are being displayed in the html code in my site, thats odd...

              • 17301
              • 932 Posts
              I haven't used it for a while but check system settings for options to allow tags, if not you'll have to dig around the code base for where to insert allowed tags.

              Yeah it'll usually save the tags the first time but as soon as you go and view the html and switch back to the editor it'll probably strip it out.
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 42560
                • 49 Posts
                Quote from: lkfranklin at May 29, 2018, 03:26 PM
                I haven't used it for a while but check system settings for options to allow tags, if not you'll have to dig around the code base for where to insert allowed tags.

                Yeah it'll usually save the tags the first time but as soon as you go and view the html and switch back to the editor it'll probably strip it out.

                yep, correct, it strip out after refreshing the modx editor page... i found this thread in how to solve it, but its not working
                https://forums.modx.com/thread/70203/tip-enabling-html5-elements-in-tinymce