Movie and Embedded Flash on WYSIWYG Editor
Add an extension function to embed a movie or flash object in the Html editing with the WYSIWYG editor.
You can make applications using rich content by using this editor extension.
The embedded Object is shown like below in the content editor area of the WYSIWYG content editor.
In the Content Editor area, the iframe or object tag for flush plugin is replaced into a image. And when you submit the Html data to the server side program, the WYSIWYG content editor automatically convert the image into the Html Code. Those operations are done in the source code listed in this page.
In order to create a new embedded Object, click the icon. Then following dialog appears.
Copy the embedded code and paste it into the text area. And push the "Submit Query" button. Then a new embedded Object is created in the content editor area of the WYSIWYG Content editor.
In order to edit the embedded Html Object, select the Object in the content editor area and click the icon. Then the dialog to edit the embedded code appears. Edit the code and push the "Submit Query" button.
The location of Movie and Embedded Flash extension is in the "ALINOUS_HOME/samples/nicedit/ext/" folder.
The file named "nicobjects.js" is the source code of this extension.
This extension's code to register this plugin is below.
This part create the plugin instance of this extension and register it to the WYSIWYG content editor's main part. The entry point of this WYSIWTYG plugin is the button object.
And at the end of the source code, there is the "editorHtmlEncoder" Object. This Object is to encode or decode the iframe and object tag into the alternative image shown in the WYSIWYG content edtitor.