close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Embedded YouTube video not working after edit

Thread began 8/11/2011 5:16 pm by nibo | Last modified 8/11/2011 8:55 pm by Jason Byrnes | 1693 views | 3 replies |

nibo

Embedded YouTube video not working after edit

I am able to go to code view and paste in the YouTube embed code, save and then it displays. However if I then simply open the page that displays the HTML Editor to edit that record, the embed code immediately no longer works.

Looking at the source code of the HTML Editor it's clear why - lots of &quot's have been added to the pasted embed code. i.e.

<iframe allowfullscreen="&quot;&quot;" frameborder="&quot;0&quot;"
height="&quot;319&quot;" src="%22http://www.youtube.com/embed
/gldbSNX63K4?rel=0%22" width="&quot;560&quot;"></iframe>



I've done a search on the Forum and no one else has mentioned this problem. Which leads me to believe that there is a setting or procedure I'm missing.

Any help very much appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

the initial value for the html editor instance probably has some formatting applied to it.

you can fix this by rebinding the initial value.

edit the HTMLEditor instance, click the lightning bolt next to initial value and reslsect the corresponding column from the recordset.

Sign in to reply to this post

nibo

Hi Jason,

Thanks for the very speedy response.

Yup, that fixed it. Which begs the question...how did that line of code get messed up in the first place?

I've also noticed another interesting issue, although this doesn't seem to be affecting the display of the video.

The code I paste in is:

<iframe width="560" height="319" src="http://www.youtube.com/embed/
gldbSNX63K4?rel=0" frameborder="0" allowfullscreen></iframe>



However it's saved to the database as:

<iframe allowfullscreen="" frameborder="0" height="319" src="http://www.youtube.com/embed/gldbSNX63K4?rel=0"
width="560"></iframe>



Why would HTML Editor change the order of the code?

Sign in to reply to this post

Jason ByrnesWebAssist

  how did that line of code get messed up in the first place?  



if the page was originally created with data assist, data assist adds code to the initial values of form elements on the update page to convert the quote character to the html entity &quote; by default, most database extensions have some sort of formatting that is applied by default that needs to be removed when converting a field to an html editor instance.

ass for the cod3 reordering, HTMLEditor is base on the CKEditor engine.

CKEditor will reformat code based on the document type that is selected to prevent none standards compliant mark up. sometimes this ends up rearranging attributes of html tags.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...