Dear forum users,
I have a very important question:
How do i get the fckEditor in a php function?
I have do it, but it doesn't work, i place the code right under this line of text:
<?php
function edit_large()
{
require_once("editor/fckeditor.php");
global $oFCKeditor;
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->Width = '40%';
$oFCKeditor->BasePath = 'editor/';
$oFCKeditor->Value = 'Default text in editor';
$oFCKeditor->Create();
return $oFCKeditor;
}
?>
I have already set it in my template system:
<?php
$tpl->assign("content", "<br /> Dit was het dan ;)" . edit_large());
?>
But, i see the editor but not at the right place, here under a screen shot:
if there is somebody who know how to do this, please feel free to answer!
Alexander de Jong
Re: How to get the fckEditor in a function [PHP 5.0/4.0]
I'm sorry for this bump, but you can delete this topic. Because it is now succesfully done