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

30121Re: [ydn-javascript] RTE and embedded HTML

Expand Messages
  • Dav Glass
    May 1, 2008
    • 0 Attachment
      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
    • Show all 3 messages in this topic