Blogengine improvement using FCKeditor

Source: Internet
Author: User
Tags blogengine
I feel that the tiny_mce used by blogengine is not as good as FCKeditor, and I plan to replace it with FCKeditor.
Mu Zi blog.

To download FCKeditor, go to http://www.fckeditor.net/download. the previous steps are FCKeditor 2.6.3 and FCKeditor. net2.6.3.
After downloading the file, run the command "fredck. copy fckeditorv2.dll to blogengine. copy the FCKeditor folder to the blogengine directory. web directory. We recommend that you delete all files starting with the underscore "_" in the FCKeditor directory:

This is the FCKeditor directory after I delete unnecessary files. Next, configure the fckconfig. js file under the FCKeditor directory:
Find fckconfig. defaultlanguage and use fckconfig. defaultlanguage = 'zh-cn ';
Find VaR _ filebrowserlanguage and use VaR _ filebrowserlanguage = 'aspx ';
Find VaR _ quickuploadlanguage and use VaR _ quickuploadlanguage = 'aspx'

Open the blogengine. Web/admin/htmleditor. ascx file and add

<% @ Register assembly = " Fredck. fckeditorv2 " Namespace = " Fredck. fckeditorv2 " Tagprefix = " Fckeditorv2 " %>

For other changes, see the modified files:

<% @ Control Language = " C # " Autoeventwireup = " True " Codefile = " Htmleditor. ascx. CS " Inherits = " Admin_htmleditor " %>
<% @ Register SRC = " Tinymce. ascx " Tagname = " Tinymce " Tagprefix = " Uc1 " %>
<% @ Register assembly = " Fredck. fckeditorv2 " Namespace = " Fredck. fckeditorv2 " Tagprefix = " Fckeditorv2 " %>
<% -- < Uc1: tinymce ID = " Tinymce1 " Runat = " Server " /> -- %>
< Fckeditorv2: FCKeditor ID = " Tinymce1 " Runat = " Server " Height = " 400px " Width = " 660px " />

Modify the blogengine. Web/admin/htmleditor. ascx. CS file:

Public String Text
... {
Get
... {
//Return tinymce1.text;
ReturnTinymce1.value;
}
Set
... {
//Tinymce1.text = value;
Tinymce1.value=Value;
}
}

Public Short Tabindex
... {
// Get {return tinymce1.tabindex ;}
// Set {tinymce1.tabindex = value ;}
Get ... {Return 0;}
Set ... {}
}

 

Then, automatically save Js in blogengine. Web/admin/pages/add_entry.aspx.CodeComment out the modification.

This article describes how to change the blogengine editor in fantasy. net.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.