homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

rich text editor issue

Msg#: 4416041 posted 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.



WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Msg#: 4416041 posted 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