Ticket #2241 (closed Bug: fixed)

Opened 22 months ago

Last modified 21 months ago

Floating panels don't respect BasePath property

Reported by: aaron Owned by: martinkou
Priority: High Milestone: FCKeditor 2.6.1
Component: UI : Floating Panel Version: FCKeditor 2.6
Keywords: Confirmed Review+ Cc:

Description

My editor is located at  http://static.snelgeleerd.nl/editor/, but the editor itself is called from a different subdomain, namely  http://samenvattingen.snelgeleerd.nl/. I'm calling the editor via the following code:

<script type="text/javascript" src="http://static.snelgeleerd.nl/editor/fckeditor.js"></script>
<script type="text/javascript">
document.domain = 'snelgeleerd.nl';
window.onload = function()
{
	var oFCKeditor = new FCKeditor('body');
	oFCKeditor.BasePath = 'http://static.snelgeleerd.nl/editor/';
	oFCKeditor.ToolbarSet = 'Admin';
	oFCKeditor.ReplaceTextarea();
}
</script>

This works, except for the floating panels being called from  http://samenvattingen.snelgeleerd.nl/editor/editor/fckdialog.html instead of  http://static.snelgeleerd.nl/editor/editor/fckdialog.html, which results in a 404 error document.

My conclusion would be the floating panels don't respect the BasePath correctly, but it's might be something different. In any case, it's obviously a bug, right?

Attachments

2241.patch Download (1.2 KB) - added by martinkou 21 months ago.

Change History

  Changed 21 months ago by martinkou

  • keywords Confirmed added

Confirmed the problem, the editor instance in question can be found at the last link on the side navigation bar in the given URL:  http://samenvattingen.snelgeleerd.nl/inzenden/

  Changed 21 months ago by martinkou

This bug is related to #1614, but a quick fix can be made at the moment for this ticket without doing the required investigations in #1614.

Changed 21 months ago by martinkou

  Changed 21 months ago by martinkou

  • keywords Review? added

follow-up: ↓ 7   Changed 21 months ago by martinkou

btw, if you want to fix the FCKeditor on your site now instead of waiting for the 2.6.1 release, you can try editing the following two files in your FCKeditor distribution:

fckeditorcode_ie.js fckeditorcode_gecko.js (These files are just compacted versions of our original JavaScript source code)

Look for the string src=FCKConfig.BasePath+'fckdialog.html', and change the "BasePath" to "FullBasePath".

  Changed 21 months ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

  Changed 21 months ago by fredck

  • keywords Review+ added; Review? removed

in reply to: ↑ 4   Changed 21 months ago by aaron

Thanks Martin, that fixes the problem! :)

  Changed 21 months ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [2051].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.