This is a migrated thread and some comments may be shown as answers.

CssEditor.css caching issue

1 Answer 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Martin Lundgren
Top achievements
Rank 1
Martin Lundgren asked on 05 Oct 2009, 09:09 AM
Hey,
I read the article about how to define custom CSS to the editor. This works great - but just ones! When trying to update the file with new styles nothing happens. SharePoint sill serves me with the old file. What do I do to update it?
Thanks!
Martin

1 Answer, 1 is accepted

Sort by
0
Martin Lundgren
Top achievements
Rank 1
answered on 05 Oct 2009, 12:59 PM
We still do not know why the files don't get updated. Some how it only loads the file ones, then never again - and that goes for all files on disk in this case. So what we had to do was to first load a file form the database and from there load files from the disk. Very strange ...

Our solution (a.k.a. work around):

Instead of using the CssEditor.css file as described at Waiting Impatiently and in the Help section. We added a CssFiles node in the ToolsFile.xml (located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources\) with a reference to a file in the Style Library.
<cssFiles> 
    <item name="/style library/css/radeditor.css" /> 
</cssFiles> 

This file then refers to a file on disk.
/* Load the site's main.css from disk */ 
@import url("/_layouts/themes/css/main.css"); 
 
/* Custom styles */ 
body { 
    backgroundtransparent none

Hope this might help someone ...
If you know or find the solution to this problem, please post it here! Thanks!
Martin
Tags
Editor
Asked by
Martin Lundgren
Top achievements
Rank 1
Answers by
Martin Lundgren
Top achievements
Rank 1
Share this question
or