October 31st, 2008 by 90130
Within TextArea fields, Browsers auto render & display certain "HTML Entities" and "HTML Entity Codes" as characters. Browsers also auto change any "HTML Entity Codes" entered into a TextArea field into the resultant display characters before uploading. There's no way to change this, making it difficult to edit html in a TextArea field.
Therefore, when editing Django templates in the CMS, we have to render the HTML Entity Code equivalents within the TextArea tags at the code level, which are then displayed as the raw characters when shown in a TextArea. We accomplish this by using the "escape" filter, which is a standard filter in the Django template toolbox.
You make your edits in the TextArea using standard HTML, and then upon submitting the content, that which is displayed in the TextArea itself at the display level, and not the content that appears within the TextArea tags at the code level, is sent to the server for storage.
Open Source Stack:
^ Back to Top Privacy Policy Copyright © 2008 BodhiCMS Powered by BodhiCMS | Users Login