Ckeditor and ckfinder configuration in Asp.net (pagination, Custom button)

Source: Internet
Author: User

For detailed configuration, see reademe.html In the compressed package.

The compressed package is also a complete demo. For details, refer

:

The configuration of ckeditorand ckfinderin asp.net(custom click here, page shard .rar

 

Note: When the V2 and office2003 skins are used in IE8, if you drag the editor to change the size, a JS error will be reported (the Editor Version 3.4.1 on the official website is the same). Kama skin will not, therefore, we recommend that you use the default Kama skin, such as retaining this skin when streamlining the editor.

Update 1:

You need to use the text paging function, but find the plug-in you have added. The inserted tag is inserted into the P tag when you press Enter. IfArticleThere will be unclosed tags on pages, which may cause page layout problems. The fact is that ckeditor has a function that only inserts page tags (not inserted into the P tag)

I will directly use the built-in page label insertion function. Now I want to write a regular expression matching the inserted tag.CodeAs follows:

String Pattern =

@ "& Lt; Div \ s + style = & quot; page-break-after: \ s + always[;]?& Quot; & gt; \ s + & lt; span \ s + style = & quot; display: \ s + none[;]?& Quot; & gt; & amp; nbsp; & lt;/span & gt; & lt;/Div & gt ;";

// [;]? Style = "Page-break-after: Always;" is the most rigorous code inserted in chrome and ff. (Note that this Semicolon is not included in IE)

String [] contentarr = system. Text. regularexpressions. RegEx. Split (Httputility. htmlencode(This.txt newsconten. Text), pattern );

It is tested that there is no problem in chrome 7, FF, ie (8 ).

 

Update 2: Add editor Custom button

For details, see reademe.html and code of the downloaded file.

Related Article

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.