OpenWYSIWYG and Django
- Extract the archive to your media files folder- Edid wysiwyg.js and fix the paths to ediotor components:
// Images Directory imagesDir = "/site_media/icons/"; // CSS Directory cssDir = "/site_media/styles/"; // Popups Directory popupsDir = "/site_media/popups/";
- In HEAD section of your template add wysiwyg.js: - In a form add Textareas with id attributes: After textarea tag you need to call a function to create a editor for a textarea by given ID. If you want more editors on one page - make some textarea tags with different IDs and call the editor for each one.
- We have to also call in form or submit tag a updateTextArea function (onsubmit and onclick) to get the editor content in the post data (under textarea name request.POST key). For example: - Done



