homepage Welcome to WebmasterWorld Guest from 54.227.40.166
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
rich text editor issue
ads112001




msg:4416043
 7:36 pm on Feb 9, 2012 (gmt 0)

Our developer created a cms for us and has since left the company. When we use his cms in firefox, everytime we edit a "block" the rich text editor adds
<style type="text/css"> body { background: #FFF; } </style> to the end of the block. If we forget to delete this, the page bg turns white. Any thoughts or workarounds? the js (richtext_compressed.js) is compressed so i can't do much in there.

 

Fotiman




msg:4416052
 8:17 pm on Feb 9, 2012 (gmt 0)

I would start by trying to find the uncompressed version of the file (probably called richtext.js). If you find it, I would look at correcting it within that file, then regenerating your richtext_compressed.js file (using something like YUI Compressor [developer.yahoo.com]).

If you can't find it, then there are still formatting tools you can use to format richtext_compressed.js to be more developer friendly. For example, [jsbeautifier.org...] Note, if the compressed version replaced variables to be shorter, then it might still be difficult to understand exactly what is going on (trying to understand what a variable named "A" is supposed to represent may not be entirely obvious). But I'd search for "style" or "body" to try and find that bit of code within the script, and focus on only the section(s) that matched. When you're done, don't forget to compress it again with YUI Compressor.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved