[MAGNOLIA-3514] FCKEditor goes in error browsing the server - only when all buttons are shown. Created: 17/Jan/11  Updated: 19/Jan/11  Resolved: 18/Jan/11

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.3.8, 4.4.1
Fix Version/s: 4.4.2

Type: Bug Priority: Major
Reporter: Tullio Bettinazzi Assignee: Federico Grilli
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP, Eclipse


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

I've a dialog including fckeditor component.
Using fckeditor in order to create an hyperlink the connection dialog is shown, clicking the "find on server" button the error "The server didn't reply with a proper xml" is showm.
I configured fckeditor with a complete toolbar configuration, using the basic one the problem doesn't reproduce.
I downloaded a fresh 4.4.1 release, installed it and tried with demo data and the problem repsoduces.



 Comments   
Comment by Federico Grilli [ 18/Jan/11 ]

Hi Tullio, I know we already discussed this problem on the user list but could you give us more details about your configuration and the steps to reproduce the issue on a 4.4.1 Magnolia installation? Further, for the sake of completeness, is that the CE or EE? Thanks.

Comment by Tullio Bettinazzi [ 18/Jan/11 ]

Here my configuration
FCKConfig.ToolbarSets["Axioma"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
Instruction to reproduce will follow.
I'm using CE.
Tks
Tullio

Comment by Tullio Bettinazzi [ 18/Jan/11 ]

In order to reproduce on a 4.4.1.
Go to Configuration --> Modules --> Standard Templating Kit --> dialogs --> generic --> controls ---> text and set
. jsConfigFile to /docroot/fckconfig-pers.js and
. jsInitFile to /docroot/fckinit-pers.js

The file fckconfig-pers.js contains only lines I indicated in the previous comment.
The file /docroot/fckinit-pers.js contains only a line : fckInstance.ToolbarSet = 'Axioma';

Then start the demo.
Go to http://localhost:8080/magnoliaAuthor/demo-features/content-templates/news.html.
Click Edit in the first paragraph named "Text and Image paragraph" : the dialog should appear in the a separate window.
The text item shows an editor with all buttons I indicated.
Try to create an hyperlink You'll get a popup window named "Collegamento" in italian (Connection in english, I believe).
Click the button "Cerca sul server" ("Find on server" ??) and You'll get the error.
Tullio

Comment by Federico Grilli [ 18/Jan/11 ]

OK, I was able to reproduce your issue. The problem lies in an incomplete custom fck configuration file. Try with the following custom config file which basically is magnoliaStandard.js save for the magnolia toolbar definition which is replaced with yours. We will try to make our documentation regarding custom fck configuration more clear. Thanks.

//get the special configuration for this editor instance
//this is the only way to configure the toolbar set
//remember the editor is running in an iframe

var MgnlFCKConfig = window.parent.MgnlFCKConfigs[FCK.Name];

//set the css to use in the editor
FCKConfig.EditorAreaCSS = MgnlFCKConfig.contextPath + MgnlFCKConfig.css;

//our skin
FCKConfig.SkinPath = MgnlFCKConfig.contextPath + "/.resources/fckeditor/custom/skin/";

//i18n
FCKConfig.AutoDetectLanguage = false;
FCKConfig.DefaultLanguage = MgnlFCKConfig.language;

//line breaks
FCKConfig.EnterMode = MgnlFCKConfig.enterMode;			// p | div | br
FCKConfig.ShiftEnterMode = MgnlFCKConfig.shiftEnterMode;

FCKConfig.ToolbarSets["Axioma"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;


FCKConfig.LinkDlgHideTarget = false;
FCKConfig.LinkDlgHideAdvanced = true;

FCKConfig.ImageDlgHideLink = false;
FCKConfig.ImageDlgHideAdvanced = true;

FCKConfig.FlashDlgHideAdvanced = false;

FCKConfig.LinkBrowser = true;
FCKConfig.LinkBrowserURL = MgnlFCKConfig.contextPath + "/.magnolia/pages/repositoryBrowser.html?contextPath=" + MgnlFCKConfig.contextPath;

FCKConfig.ImageBrowser = true;
FCKConfig.ImageBrowserURL = MgnlFCKConfig.contextPath + "/.magnolia/pages/repositoryBrowser.html?contextPath=" + MgnlFCKConfig.contextPath;

FCKConfig.FlashBrowser = false;

//configure upload
//pass parameters
var params = "repository=" + MgnlFCKConfig.repository;
params += "&path=" + MgnlFCKConfig.path;
params += "&nodeCollection=" + MgnlFCKConfig.nodeCollection;
params += "&node=" + MgnlFCKConfig.node;
params += "&name=" + FCK.Name;

//set new urls
FCKConfig.LinkUpload = true;
FCKConfig.LinkUploadURL = MgnlFCKConfig.contextPath + "/.magnolia/fckeditor/upload?" + params + "&type=file";

FCKConfig.ImageUpload = true;

FCKConfig.ImageUploadURL = MgnlFCKConfig.contextPath + "/.magnolia/fckeditor/upload?" + params + "&type=image";

FCKConfig.FlashUpload = true;
FCKConfig.FlashUploadURL = MgnlFCKConfig.contextPath + "/.magnolia/fckeditor/upload?" + params + "&type=flash";
Generated at Mon Feb 12 03:47:12 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.