Re: Pass PHP through Rich Text Editor
- 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:
It will show up as:
This only happens on the editor page, and I feel it has something to
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.
> 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..
> Does that help?
> Dav Glass
> + 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@...>
> Sent: Saturday, June 28, 2008 11:15:22 PM
> 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