We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6692
    • 11 Posts
    Hi, as you could infer from the headline, i have a problem with my RT editor. I’ve built a site to create news from the frontpage. with a template variable, I integrated TinyMCE. This works fine I think (didnt test it much) except the fact that you cant post flash-videos, for example code like this:
    <object width="425" height="350">
    <param name="movie" value="http://embed.break.com/MjEyMDg4"></param>
    <embed src="http://embed.break.com/MjEyMDg4" type="application/x-shockwave-flash" width="425" height="350"></embed>
    </object>
    .

    I always try to post the video by switching to HTML mode, inserting the code, going back. Until that everything is fine. TinyMCE shows a yellow flash-rectangle where the video should be. everything fine.

    But When I submit the news, tinymce "cuts" the code and theres no video in the post. Used Browsers: Opera, Firefox. I also tried older version of TinyMCE or FCKeditor, but no success.

    EDIT: I used this tutorial: http://modxcms.com/blog-publish.html

    Help me please!!!  :’(

    thx  grin
      • 4018
      • 1,131 Posts
      Are you trying to post a Flash document from a domain other than your own? Because if you are, you can’t. Also, there doesn’t appear to be an extension of the file. "MjEyMDg4" doesn’t look like a valid file name for a Flash document. If you upload a Flash file to your server with the Media plugin then you can easily insert it to a page. Give that a shot! smiley
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 6692
        • 11 Posts
        Yes it is from another server... wink

        But why does it work if you use no RTE??? Can I somehow configure TinyMCE that it doesnt cut the code?
        I’m sure it worked this way at my old website based on Joomla...Also with TinyMCE...But I dont know why

        thanks for your help
          • 7923
          • 4,213 Posts


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 6692
            • 11 Posts
            thanks for your fast answers but the link couldnt solve the problem. The problem isnt, that the code isnt xhtml-valid.
            I take the embed code from any video-site on the web (myvideo.de, break.com whatever) and put it into the sourcecodeedit-view of tinyMCE. But TinyMCE somehow cuts the code and no video appears, instead of it  ...I think this is strange behaviour wink

            Hope you’ve got other ideas... laugh

            Thanks
              • 1511
              • 144 Posts
              Insert the flash video via Flash or Media button in TinyMCE (just add URL and size if needed)
              When you save the post, reopen it and check the video size.

              If it is shrinked to 0x0 pixels, then remove either Media or Flash plugin from TinyMCE. It seems there is a conflict and TinyMCE "cleans" the code the wrong way.
              It worked for me (TinyMCE 2.0.8 and MODx 0.9.5)
                • 33372
                • 1,611 Posts
                I know that this doesn’t directly answer your question, but personally I use either a chunk or a textarea TV (with no RTE) for inserting Flash files. I do this in order to insert them using JavaScript and not the standard object/embed format, which means that you won’t get those annoying "Click here to activate and use this control" dialogs in IE. See here for more info: http://blog.deconcept.com/swfobject/
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 6692
                  • 11 Posts
                  Now thats strange, I configured the plugin, changed "clean-up" to disabled and now, where the player should be, theres the following code:

                  <img src="http://***/assets/plugins/tinymce/jscripts/tiny_mce/themes/advanced/images/spacer.gif" title="http://embed.break.com/MjAzNDAy" alt="http://embed.break.com/MjAzNDAy" class="mceItemFlash" height="350" width="425">

                  I don’t understand anything... grin
                    • 33372
                    • 1,611 Posts
                    I’ve actually seen this happen with normal links as well, and with both TinyMCE and FCKEditor. I don’t understand why it happens, but it seems to be related to something not loading correctly because if you refresh the page it usually works normally again. Of course if you already saved the page, then you gotta re-do all your paths.

                    Anyone know why this happens occasionally?
                      "Things are not what they appear to be; nor are they otherwise." - Buddha

                      "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

                      Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                      • 31465
                      • 1 Posts
                      I’m having the same problem with flash movies. I have tried everything written here, but nothing worked.
                      Have a look at the following page: http://webone.gr/newDesign/modx/webone
                      The actual swf file is located at http://webone.gr/newDesign/modx/assets/flash/galleryFront.swf
                      Although, it is there, I cannot view it on the page.

                      Any other ideas on this?