Yes. This will allow you to capture the entire contents of the JavaScript and HTML code that needs to be output to show the DevEdit control. Add this function to your de/class.devedit.php file and call it:
class DevEdit {
...
function GetControl($Width, $Height, $ImagePath = '')
{
ob_start();
$this->ShowControl($Width, $Height, $ImagePath);
$output_result = ob_get_contents();
ob_end_clean();
return $output_result;
}
}
You would call it like this:
$myDevEditVal = $myDE->GetControl("100%", "100%", "/images");
Then when you want to show the control, simply echo this value out:
echo $myDevEditVal;

The article has been updated successfully.