[opencms-dev] Enriching the toolbar FCKeditor in opencms 7.5.1

raj_iv rajiiv123 at gmail.com
Thu Oct 7 07:44:27 CEST 2010


But i m not able to insert smileys. Any one tried that? :-)

raj_iv wrote:
> 
> Hi,
> I use following with  double quotes and Type=Flash and its working fine.
> Heres my code inserted at end:
> FCKConfig.FlashUpload = true ;//false;
> FCKConfig.FlashBrowserURL = FCKConfig.BasePath +
> "filemanager/browser/default/browser.html?Type=Flash&Connector=<%=
> cms.link(CmsEditor.PATH_EDITORS + "fckeditor/filebrowser/connector.jsp")
> %>" ;
> FCKConfig.FlashUploadURL = "<%= cms.link(CmsEditor.PATH_EDITORS +
> "fckeditor/filebrowser/connector.jsp?Type=Flash") %>";
> FCKConfig. FlashBrowserWindowWidth  = 700;
> FCKConfig. FlashBrowserWindowHeight = 500; 
> 
> vinod.d wrote:
>> 
>> 
>> Hi all,
>> I got it worked just add these lines at end.
>> line 106: FCKConfig.FlashUpload = true ;//false;
>> FCKConfig.FlashBrowserURL = FCKConfig.BasePath +
>> 'filemanager/browser/default/browser.html?Type=Flash&Connector=<%=
>> cms.link(CmsEditor.PATH_EDITORS + "fckeditor/filebrowser/connector.jsp")
>> %>' ;
>> FCKConfig.FlashUploadURL = "<%= cms.link(CmsEditor.PATH_EDITORS +
>> "fckeditor/filebrowser/connector.jsp") %>";
>> FCKConfig. FlashBrowserWindowWidth  = 700;
>> FCKConfig. FlashBrowserWindowHeight = 500;
>> 
>> thanks for the code found at 
>> http://blog.950buy.com/article/jsf-and-fckeditor-integration/
>> http://blog.950buy.com/article/jsf-and-fckeditor-integration/ 
>> 
>> thanks
>> vinod
>> 
>> vinod.d wrote:
>>> 
>>> Hi i have done the changes as specified in your post. I can say that
>>> works but when coming to add flash file or image in editor getting error
>>> alert msg nothing is uploading or adding to the contain area.
>>> can you please help on this. below are the screen shot what i am facing.
>>>  http://old.nabble.com/file/p29468544/screen1.jpg 
>>> 
>>> this is what when i try to add flash file prompt message appears
>>>  http://old.nabble.com/file/p29468544/screen3.jpg  
>>> after selecting ok or close the prompt im unable to upload file.
>>>  http://old.nabble.com/file/p29468544/screen2.jpg 
>>> 
>>> Deiverson Silveira-2 wrote:
>>>> 
>>>> Hi List,
>>>> 
>>>> 
>>>> 
>>>>  I'm sharing the necessary changes in the file
>>>> /system/workplace/editors/fckeditor/configwidget.js for the FCKEditor
>>>> 2.6.5
>>>> (What's in the OpenCms version 7.5.1) working with the toolbar richer
>>>> features:
>>>> 
>>>> 
>>>> Change the lines:
>>>> 
>>>> FCKConfig.AutoDetectLanguage = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.AutoDetectLanguage = true;
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.ProcessNumericEntities = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.ProcessNumericEntities = true;
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.IncludeLatinEntities = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.IncludeLatinEntities = true;
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.ToolbarStartExpanded    = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.ToolbarStartExpanded    = true;
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.ImageUpload = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.ImageUpload = true;
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.LinkUpload = false;
>>>> 
>>>> *to*
>>>> 
>>>> FCKConfig.LinkUpload = true;
>>>> 
>>>> 
>>>> 
>>>> And now the "gotcha", modify the line:
>>>> 
>>>> * *
>>>> 
>>>> FCKConfig.ToolbarSets["OpenCmsWidget"] = [
>>>> 
>>>>         <%=
>>>> option.getButtonBar(CmsFCKEditorWidget.BUTTON_TRANSLATION_MAP,
>>>> ",") %>
>>>> 
>>>> ];
>>>> 
>>>> 
>>>> 
>>>> *to:*
>>>> 
>>>> 
>>>> 
>>>> FCKConfig.ToolbarSets["OpenCmsWidget"] = [
>>>> 
>>>> ['Source'],
>>>> 
>>>> ['Style','FontFormat','FontName','FontSize','TextColor','BGColor','FitWindow','ShowBlocks','Undo','Redo','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
>>>> 
>>>> ['Find','Replace','-','SelectAll','RemoveFormat','Cut','Copy','Paste','PasteText','PasteWord'],
>>>> 
>>>> ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','DocProps','-'],
>>>> 
>>>> ['Save','NewPage','Preview','Link','Unlink','Anchor','Templates','-'],
>>>> 
>>>> ['Print','SpellCheck','Bold','Italic','Underline','-','Subscript','Superscript'],
>>>> 
>>>> ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
>>>> 
>>>> ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','-']];
>>>> 
>>>> 
>>>> 
>>>> Any suggestions for improvement are welcome,
>>>> 
>>>> 
>>>> Kind Regards,
>>>> 
>>>> 
>>>> 
>>>> Deiverson Silveira
>>>> 
>>>> 
>>>> _______________________________________________
>>>> This mail is sent to you from the opencms-dev mailing list
>>>> To change your list options, or to unsubscribe from the list, please
>>>> visit
>>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Enriching-the-toolbar-FCKeditor-in-opencms-7.5.1-tp25916362p29903125.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list