We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    TinyMCE 4 (not the add-on)
    Responsive Filemanager 9.8.1
    NewsPublisher 2.0.2

    I'm using the standalone version of TinyMCE 4 (ie, not the MODX add-on) and Responsive file manager on the front-end along with NewsPublisher. So far so good.

    When inserting video (.webm, .ogg, .mov, .mp4 etc.) via the video insert dialog (this is a NP form) the Tiny preview renders the video as expected, but when the NP form is saved the video code is stripped out leaving an empty <p></p> in its place. It only seems to happen with video because embedded images work fine.

    Has anyone else seen this before?

    This question has been answered by donshakespeare. See the first response.

      Todd
      • 42562
      • 1,145 Posts
      Are we talking about the html <video> tag?
      Either NP or Tiny is stripping it on submit.
      Disable Tiny, and test with NP alone to verify.
        TinymceWrapper: Complete back/frontend content solution.
        Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
        5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
        • 40088
        • 708 Posts
        Correct, the <video> tag.

        Even with Tiny disabled the video tag is being stripped.
          Todd
        • discuss.answer
          • 42562
          • 1,145 Posts
          http://bobsguides.com/newspublisher-tutorial.html
          Add the tag you want.
          &allowedtags = `<p><br><a><i><em><b><strong><pre><table><th><td><tr><img><span><div><h1><h2><h3><h4><h5><font><ul><ol><li><dl><dt><dd><object><blockquote><code>`.
            TinymceWrapper: Complete back/frontend content solution.
            Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
            5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
            • 42562
            • 1,145 Posts
            Need some more info here.

            You pasted a valid video tag in NP like
            <video width="320" height="240" controls>
              <source src="movie.mp4" type="video/mp4">
              <source src="movie.ogg" type="video/ogg">
              Your browser does not support the video tag.
            </video>
            and it got stripped to this?
            <video controls="controls" height="150" width="300"></video>
              TinymceWrapper: Complete back/frontend content solution.
              Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
              5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
              • 40088
              • 708 Posts
              Yes, that's what happened, but I figured it out. I missed <source> in the NP allowed_tags.

              Thanks @donshakespeare

              Oh, and thanks again for recommending Responsive Filemanager. Such a great plugin.
                Todd
                • 42562
                • 1,145 Posts
                You are most welcome.
                  TinymceWrapper: Complete back/frontend content solution.
                  Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
                  5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.