Step 1: /Bin folder Make sure you paste the FCKeditor.dll into /bin and change this in web.config
Step 2: Web.configChange
<add tagPrefix="HTMLEditor" namespace="AjaxControlToolkit.HTMLEditor" assembly="AjaxControlToolkit"/>
to
<add tagPrefix="HTMLEditor" namespace="FredCK.FCKeditorV2" assembly="FredCK.FCKeditorV2"/>
Then add this (for image uploading)
<add key="FCKeditor:BasePath" value="~/editors/fckeditor/" /> This is where the editors files are located
<add key="FCKeditor:UserFilesPath" value="~/images/" />
under
<appSettings>
section of web.config.
Step 3: Find all files to replace editorSearch for "HTMLEditor:Editor" in entire solution. For 1.5, there are approximately 16 instances that will need to be updated, if you want to be consistent throughout the application.
Step 4: Change fileFollow these steps for each file:
- Add
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
to top of .ascx/.aspx file.
- Replace the "<HTMLEditor:Editor.." control with this:
<FCKeditorV2:FCKeditor ID="txtBlogPostBody" runat="server" AutoDetectLanguage="false" Height="350"></FCKeditorV2:FCKeditor>
Remember to change the ID to be the same as it was previously!- Save. This will update the designer file.
- Right-click, and select "View Code"
- Add
using FredCK.FCKeditorV2;
- At this point, you will begin to see error messages referencing "Comment" in your error list. Double-click on each entry, which will take you to (controlname).Comment. Replace "Comment" with "Value".
Step 5: Update image upload permissionsYou may experience an error message that upload is disabled, and a reference to this file:
\editors\fckeditor\editor\filemanager\connectors\aspx\config.ascx
If you receive this error message, it is referencing the change in how logged-in users are detected. On line 41, change
this.Page.User != null && this.Page.User.IsInRole("Admin");
to
NopContext.Current.User != null && !NopContext.Current.User.IsGuest;
OK, I think that's everything - let me know if something's missing or awry, and I'll edit this. Now back to implementing this, so my client can add images to blogs, categories, etc.