Loading ...
Sorry, an error occurred while loading the content.

Re: RTE and embedded HTML

Expand Messages
  • David P. Nesbitt
    Dav, Thanks. That is a great example. I was hoping there would be something that would work inside the editor, but at least there is a way to get HTML saved
    Message 1 of 3 , May 1, 2008
    • 0 Attachment
      Dav,

      Thanks. That is a great example. I was hoping there would be
      something that would work inside the editor, but at least there is a
      way to get HTML saved properly. I will follow that approach.

      Regards,
      Dave

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > David --
      >
      > You can use this command to place that HTML into the editor:
      >
      > myEditor.execCommand('inserthtml', 'STRING OF HTML HERE');
      >
      > That will put the string of HTML in the location of the cursor.
      >
      > But, you probably don't want to do that ;)
      >
      > The problem is that the movie/flash and other things like that won't
      play properly inside the editor.
      >
      > This is the example that the Yahoo! Shine team used to implement
      their media plugin:
      > http://blog.davglass.com/files/yui/editor41/
      >
      > You can see theirs here:
      > http://shine.yahoo.com/write
      >
      > Does that help?
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      > ----- Original Message ----
      > From: David P. Nesbitt <david_p_nesbitt@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Thursday, May 1, 2008 10:55:00 AM
      > Subject: [ydn-javascript] RTE and embedded HTML
      >
      > I have a question with respect to how RTE works with embedded HTML.
      >
      > When I enter an HTML embed such as below:
      >
      > <object width="425" height="355"><param name="movie"
      > value="http://www.youtube.com/v/FI4jqpnbiM0&hl=en"></param><param
      > name="wmode" value="transparent"></param><embed
      > src="http://www.youtube.com/v/FI4jqpnbiM0&hl=en"
      > type="application/x-shockwave-flash" wmode="transparent" width="425"
      > height="355"></embed></object>
      >
      > it gets treated as text. Is there a way to get it to be treated as
      > HTML (i.e. I would like to see the embedded video in the editor)?
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.