WYSIWYG Editor, mod_rewrite and sessions
I'm using a WYSIWYG Editor on my site (sceditor) and also mod_rewrite
rules. The problem is any page which has a URL that has been rewritten
using mod_rewrite and contains the WYSIWYG editor logs out the user
whenever they visit it.
If I remove the javascript that initialises the editor, then the user
stays logged in, but obviously the textarea isn't converted.
Javascript for Initialising Editor
function initEditor() {
$("textarea").sceditor({
plugins: "bbcode",
toolbar:
"bold,italic,underline,strike|subscript,superscript|left,center,right|font,size,color|bulletlist,orderedlist|quote,image,link,youtube",
style: "/minified/jquery.sceditor.default.min.css",
resizeEnabled: false,
autoExpand: true,
autoUpdate: true
});
}
$("textarea").ready(function() {
initEditor();
});
I have tried including [L,QSA] tags on my rewrites but that didn't help.
My sessions are fine as they work on every page without the editor.
Does anyone have any idea why this is happening? I have put the javascript
through jslint and it says there are no major problems with it.
No comments:
Post a Comment