Load another document without restarting Xopus

When you implement Xopus into your CMS you may want to open one document after the other in Xopus without having to restart Xopus every time you open a new document.

You can run Xopus in a frame of your CMS, and use JavaScript to tell Xopus (represented by the Editor object) to load other documents to edit. This will increase document load performance, and when users don't have to wait for Xopus loading every time they will have a far more pleasant editing experience.

In order to achieve this you can use the Editor.setURL function. This function will load a new HTML page into the content area of Xopus and unload the previous page. Another method is using XopusCanvas.loadDocument - this method will even reuse the existing HTML page, and will only load another XML document.