Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Customize FCKEditor on email queue - send email View modes: 
User avatar
Member
Member
joeh42 - 11/8/2011 12:59:50 PM
   
Customize FCKEditor on email queue - send email
I'm trying to customize the toolbar on the Administration > Email queue > Send e-mail page.

I've added this line to fckeditor.js.

FCKConfig.ToolbarSets["EmailQueue"] = [
['Source', '-', 'Preview'],
['Cut', 'Copy', 'Paste', 'PasteText', 'PasteWord', '-', 'Print'],
['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
['Bold', 'Italic', 'Underline', 'StrikeThrough', '-', 'Subscript', 'Superscript'],
['OrderedList', 'UnorderedList', '-', 'Outdent', 'Indent'/*, 'Blockquote'*/],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull'],
['InsertLink', 'Unlink', 'Anchor'],
['InsertImageOrMedia', 'QuicklyInsertImage', 'Table', 'Rule', 'Smiley', 'SpecialChar', 'PageBreak'],
['InsertBizForms', '-', 'InsertInlineControls', '-', 'InsertPolls', '-', 'InsertRating', '-', 'InsertYouTubeVideo'],
'',
'/',
['Style', 'FontFormat', 'FontName', 'FontSize'],
['TextColor', 'BGColor'],
//['AutoSave'],
['FitWindow', 'ShowBlocks'] // No comma for the last row.
];


I then went to CMSModules/EmailQueue/SendEmail.aspx and added a toolbar property to the CMSHtmlEditor control:

<cms:CMSHtmlEditor ID="htmlText" runat="server" Width="625" Height="400px" ToolbarSet="EmailQueue" />


I then deleted my cache from firefox and went back to the page. The toolbar looks the same as it did originally. How can I add the source button? What am I doing wrong?

Thanks!
Joe Hoppe

User avatar
Member
Member
kentico_edwardh - 11/9/2011 1:02:20 PM
   
RE:Customize FCKEditor on email queue - send email
Hello Joe,

I was able to add the default FCKEditor toolbar which does include a source icon to the Send Email window. Here are the steps I took

1.) Modify the file ~\CMSModules\EmailQueue\SendEmail.aspx line 74:
<cms:CMSHtmlEditor ID="htmlText" runat="server" Width="625" Height="400px" ToolbarSet="Default" />

2.) Modify the file ~\CMSModules\EmailQueue\SendEmail.aspx.cs line 42:
htmlText.ToolbarSet = "Default";

3.) Clear the system cache and restart the application from Site Manager --> Administration --> System

Please also see the link below which describes how to add a custom toolbar set to the FCK Editor:
http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Toolbar

User avatar
Member
Member
joeh42 - 11/10/2011 1:09:29 PM
   
RE:Customize FCKEditor on email queue - send email
I didn't see this line in the code behind. Changing it worked.

htmlText.ToolbarSet = "SimpleEdit"; 


Thank you Edward!!!