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

Re: Pass PHP through Rich Text Editor

Expand Messages
  • Garrett
    Thanks for another quick response Dav. I ended up deleting my original post last night because I figured out I needed to use PHP s eval() function, along with
    Message 1 of 2 , Jun 29, 2008
    • 0 Attachment
      Thanks for another quick response Dav.

      I ended up deleting my original post last night because I figured out
      I needed to use PHP's eval() function, along with output buffering to
      enable the code I typed inside editor to be loaded on the page.

      The only thing I've run into, is that whenever I pull the data from
      the DB, if I have code that says:
      echo "<br>";

      It will show up as:
      echo "
      ";

      This only happens on the editor page, and I feel it has something to
      do with the javascript in Editor and how it parses the YUI Editor's
      content's to be formatted properly.

      So in short, I ended up solving my own problem last night, but I'm
      working out the kinks today! And I'll look into the Connection
      Manager code and see if it can do anything to help out with what I'm
      trying to do.

      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      > Garrett --
      >
      > I'm not sure "exactly" what you want, but it sounds like you want to
      execute some PHP and have the output placed into the Editor..
      >
      > This example shows how to get some data from a Connection Manager
      request and place it inside the Editor..
      > http://developer.yahoo.com/yui/examples/editor/post_editor.html
      >
      > 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: Garrett <g_acree@...>
      > To: ydn-javascript@yahoogroups.com
      > Sent: Saturday, June 28, 2008 11:15:22 PM
      > Subject: [ydn-javascript] Pass PHP through Rich Text Editor
      >
      > Hello everybody.
      >
      > I've been using the YUI RichText Editor for a few days now, and it's
      > already solved a nice handful of problems I was expecting to run into.
      >
      > My question now, is about the possibility to pass PHP code as a
      > variable, when typed in the Editor program.
      >
      > I would like to be able to add live demos of code to my pages, both as
      > a resource for others, and a utility for myself in web design.
      >
      > This could be more of a PHP based problem for me to tackle, but if
      > there's a module ready to handle this, I'd love to know.
      >
      > Thanks for reading!
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.