ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Video embed tag disappears on save?

May 07, 2009 12:27pm

Subscribe [5]
  • #1 / May 07, 2009 12:27pm

    Devhead

    22 posts

    Hi all,

    I’m trying to use some code to embed a .wmv file in my site.  The code works fine on the existing site for both firefox and ie (3+ and 6, respectively).

    However, when I try to paste the code into the html window in a weblog entry body field, it looks fine but it simply disappears when the html window is closed (‘by hitting it’s ‘update’ button).

    Can I not use the embed tag in EE?  Is there some setting I’ve failed to adjust?  I have changed the setting so that urls aren’t automatically turned into links…

    Any guidance appreciated.
    DH

  • #2 / May 08, 2009 5:16am

    shahW

    12 posts

    Devhead,

    you might want to change the text formatting from Formatting:*XHTML* (default) to Formatting: *none*. This drop-down list can be found on the bottom right of the textarea

  • #3 / May 08, 2009 5:35am

    silenz

    1651 posts

    Also:

    CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences ›  Weblog Posting Preferences ›  Default HTML formatting in weblog entries

    If this is set to “Allow only safe HTML” this may cause the issue.

  • #4 / May 08, 2009 9:21am

    Devhead

    22 posts

    Thanks for the replies.

    Devhead,

    you might want to change the text formatting from Formatting:*XHTML* (default) to Formatting: *none*. This drop-down list can be found on the bottom right of the textarea

    The field type on the field in question is actually wysiwyg.  I don’t think it allows for a choice of text formatting.

    I have tried switching the field type to textarea, but then I lose all of the formatting buttons including the one that lets me add/edit html.  I did try the textarea with formatting set to none and it’s still the same:  works in ie, not in ff.

    Also:

    CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences ›  Weblog Posting Preferences ›  Default HTML formatting in weblog entries

    If this is set to “Allow only safe HTML” this may cause the issue.

    It’s currently set to allow all html.

    Thanks,
    DH

  • #5 / May 22, 2009 6:08pm

    Fuel

    44 posts

    Devhead…

    I struggled with this ALOT today. If you are using the TinyMCE wysiwyg extension, I have finally made a working solution.

    In the config panel for the extension, at the bottom just add::

    +‘embed[width|height|name|flashvars|src|bgcolor|align|play|loop|quality|allowscriptaccess|type|pluginspage]’

    and this will add the embed tag functionality in the newest version of TinyMCE. I’m going to float this out on the TinyMCE forums, but remembered seeing you asking the question here first and it sounded exactly like my problem. Good Luck!

  • #6 / May 22, 2009 6:54pm

    Devhead

    22 posts

    Devhead…

    I struggled with this ALOT today. If you are using the TinyMCE wysiwyg extension, I have finally made a working solution.

    In the config panel for the extension, at the bottom just add::

    +‘embed[width|height|name|flashvars|src|bgcolor|align|play|loop|quality|allowscriptaccess|type|pluginspage]’

    and this will add the embed tag functionality in the newest version of TinyMCE. I’m going to float this out on the TinyMCE forums, but remembered seeing you asking the question here first and it sounded exactly like my problem. Good Luck!

    Fuel,

    Hey, thanks a lot for remembering me!  I’ll give it a try.  We are using the tinymce wysiwyg extension.

    Thanks again,
    DH

  • #7 / Mar 10, 2010 8:17am

    Neil Evans

    1403 posts

    Just bringing this backup as this is a problem i just experienced…
    The last line of the cofig file in settings looks something like:

    +'var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'
        +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'

    like said above it needs changing to:

    +'var[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'
        +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style,'
    +'embed[width|height|name|flashvars|src|bgcolor|align|play|loop|quality|allowscriptaccess|type|pluginspage]'

    NOTE - i have added a comma after style and before the single quote mark.
    NOTE - hat if you cut and paste from the forum post above it might actually copy curly quotes and not normal quotes which also caused this to stop working for me.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases