Because the website needs to use FCKeditor to paging Long News and find it on the Internet, the solution is not clear and scattered, so you can change it yourself
First, modify the two JS files in FCKeditor \ editor \ JS \, fckeditorcode_gecko.js and fckeditorcode_ie.js.
1. Find <span style = "display: none"> & nbsp; </span> and change it to $ [Page] $
2. Remove E. style. pagebreakafter = 'alway)
The above modification is the content of the FCKeditor insert paging character, so that it can be replaced in the paging method.
The following is the paging method.
/// <Summary> /// document paging function /// </Summary> /// <Param name = "content"> document content </param> /// <param name = "currentpage"> current page number </param> // <Param name = "pageurl"> current page address </param> protected void articlepage (string content, int currentpage, string pageurl) {int pagecount = 0; // page content = content. replace ("<div> $ [Page] $/div>", "[-- page --]"); string [] tempcontent = system. text. regularexpressions. regEx. split (content, "\ U005b -- page --]"); // get the pagination character "\ u005b" is the escape pagecount = tempcontent. length; string outputcontent = ""; // the content to be output if (pagecount <= 1) {outputcontent = content; // The content of this article. pnlpage. visible = false;} else {string pagestr = ""; // pagestr + = "Total <span style = 'font-weight: bold '> "+ pagecount +" </span> page "; if (currentpage! = 1) {pagestr + = "<a class = 'prev' href =" + pageurl + "& page =" + (currentpage-1) + "> previous page </a>" ;}for (INT I = 1; I <= pagecount; I ++) {if (I = currentpage) pagestr + = ("<SPAN class = 'active'>" + I + "</span> "); else pagestr + = ("<a class = 'num' href =" + pageurl + "& page =" + I + "> [" + I + "] </a> ");} if (currentpage! = Pagecount) {pagestr + = "<a class = 'Next' href =" + pageurl + "& page =" + (currentpage + 1) + "> next page </a>";} This. lbl_page.text = pagestr; // page number outputcontent = tempcontent [currentpage-1]. tostring ();} This. literal1.text = outputcontent; // display the content of the article} // This paging method is obtained on the network.
This FCKeditor paging method is a bit rigid. I don't know if you have a better method. Please advise !!!