[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. |
| 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 |
| Comment by Tullio Bettinazzi [ 18/Jan/11 ] |
|
In order to reproduce on a 4.4.1. The file fckconfig-pers.js contains only lines I indicated in the previous comment. Then start the demo. |
| 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"; |