Thanks for the tip Clifton. I have now achieved what I wanted to do and I am quite pleased with the combination of Toolbook, Powerpac and CKEditor. I think I have eliminated all the bugs in this version
http://www.mediacours.com/simulation/pad10/index.html The fact that the button is a field and not a button is absolutely not a problem because the (fake) window is hidden immediately the field is clicked so the user can't see whether it's a button or not.
BTW if you received the version I sent in a zip it has numerous bugs in the CKEditor part and in the special character part too. I discovered these when I had finished with the Toolbook problems. I also got confused and thought that the vertical scroll bar was in the CKEditor interface but of course it's in the Toolbook field because I set allowVerticalScroll to true. I remembered doing something to show the scroll bar but I couldn't remember where or what. It came back to me in the middle of the night as is often the case.
I think I have now met most of the challenges but I still have a long way to go to assemble all the various parts of the program. Using CKEditor means that users should have the same tools as in the original TB and VB versions which save text as RTF files.