Unfortunately the editor text does not reload if the editor is redrawn. After some work on the problem I have a partial solution when an end user is entering new data using CE.
- First set this property to something like $editor->"myeditor";
- Next set this property $editor->Text=$_POST['MyEditor'];
- Now set this property $editor->AutoConfigure=$_SESSION['myconfig'];
- Add a <select> tag with an id of something like "myconfiglist" with options such as "Change the menu", "All Menu Items", "Limited Menu", "Simple Menu", "My Special Menu" with values "", "Full", "Compact", "Simple", "MySpecial" respectively.
- For the <select> tag set the attribute onchange = "this.form.submit()" or add a submit button. Keep in mind that the page is posted so other values on the page may change if you aren't careful.
- At the top of the page add the following php code
<?php
If (!empty($_POST['myconfiglist']))
{
$_SESSION['myconfig']=$_POST['myconfiglist'];
}
else
{
$_SESSION['myconfig']="Full";
}
?>
Now the text is reloaded but I can allow the end user to customize the menu. The next task is to set $editor->Text = myrecordsetvalue and allow the end user to customize the menu. I will post the solution when I know it works.