Hello everyone,
I'm trying to import a html file into an editor. I'm using CKEDITOR at CKEDITOR.COM. Think that I almost have it. Below will display the html file with no problem.
<?
$file = $_SERVER['DOCUMENT_ROOT'] . "/indexnew.html"; //Path to your *.txt file
$contents = file($file);
$string = implode($contents);
echo $string;
?>
EDITOR1 is the name I use for the editor.
However, how do I get it in the <text> </text> block so that it can be displayed. Something like;
<Form>
<textarea name="editor1">$string</text> what is the correct syntax for this?
I'm trying to import a html file into an editor. I'm using CKEDITOR at CKEDITOR.COM. Think that I almost have it. Below will display the html file with no problem.
<?
$file = $_SERVER['DOCUMENT_ROOT'] . "/indexnew.html"; //Path to your *.txt file
$contents = file($file);
$string = implode($contents);
echo $string;
?>
EDITOR1 is the name I use for the editor.
However, how do I get it in the <text> </text> block so that it can be displayed. Something like;
<Form>
<textarea name="editor1">$string</text> what is the correct syntax for this?