Author: pyaschenko
Date: 2008-10-16 09:46:30 -0400 (Thu, 16 Oct 2008)
New Revision: 10773
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js
Log:
editor resource loader changes
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js
===================================================================
---
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-16
11:14:31 UTC (rev 10772)
+++
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/editor.js 2008-10-16
13:46:30 UTC (rev 10773)
@@ -1,5 +1,6 @@
if (!window.Richfaces) window.Richfaces = {};
Richfaces.Editor = {};
+Richfaces.Editor.REGEXP_CSS =
/(\/tiny_mce\/(?:themes|plugins)\/[\w\.\\\/]*[\w\.]+\.)(c|C)[sS]{2}$/;
Richfaces.Editor.preInit = {extSuffix:".jsf"};
/*Richfaces.Editor.getResourceURL = function (baseURL, type) {
return Richfaces.Editor.ResourceHTML.replace("$1", baseURL);
Modified:
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js
===================================================================
---
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js 2008-10-16
11:14:31 UTC (rev 10772)
+++
trunk/sandbox/ui/editor/src/main/resources/org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src.js 2008-10-16
13:46:30 UTC (rev 10773)
@@ -18,10 +18,13 @@
t.isGecko = !t.isWebKit && /Gecko/.test(ua);
t.isMac = ua.indexOf('Mac') != -1;
+ // RF: added by PY
if (Richfaces.Editor && Richfaces.Editor.preInit)
{
t.extSuffix = Richfaces.Editor.preInit.extSuffix;
}
+ // RF: end
+
// TinyMCE .NET webcontrol might be setting the values for TinyMCE
if (w.tinyMCEPreInit) {
t.suffix = tinyMCEPreInit.suffix;
@@ -412,7 +415,11 @@
_addVer : function(u) {
var v;
+ // RF: added by PY
+ u = u.replace(Richfaces.Editor.REGEXP_CSS, function($1,$2,$3){alert($2);return
$2+($3=='c' ? "xcss":"XCSS");});
if (this.extSuffix) u += this.extSuffix;
+ // RF: end
+
if (!this.query)
return u;
Show replies by date