简体   繁体   English

在ASP.NET类库中使用ckeditor

[英]Using ckeditor in asp.net class library

I need to create a class library with title and body template. 我需要创建一个带有标题和正文模板的类库。 Both title and body are textboxes. 标题和正文都是文本框。 In the body I want to use CKEditor as text editor. 在主体中,我想使用CKEditor作为文本编辑器。 Further, the editor contains ImageBrowser.aspx and LinkBrowser.aspx for browsing images and files. 此外,编辑器包含用于浏览图像和文件的ImageBrowser.aspxLinkBrowser.aspx

So far, I have used CKEditor directly in aspx page. 到目前为止,我已经直接在aspx页面中使用了CKEditor。 But now I am going to use it in a class library so that I can have a dll file that I will use in my web application. 但是现在我将在类库中使用它,以便可以拥有将在我的Web应用程序中使用的dll文件。

What's the way out? 出路是什么? Seeking advices. 寻求建议。 Thank you. 谢谢。

有人已经为您做过-http://syrinxckeditor.codeplex.com/

I did a CMS a while ago which is free to use and all the other GPL stuff. 我前一阵子做了一个CMS,它是免费的,还有其他所有GPL东西。 I use CKEditor to provide the content editing across the solution. 我使用CKEditor在整个解决方案中提供内容编辑。 If you like download it and see how its done. 如果您喜欢下载它,看看它是如何完成的。

http://hci.me.uk/contentmanagement/ http://hci.me.uk/contentmanagement/

In the solution the following files are involved in the WYSIWYG content editing: 在解决方案中,所见即所得内容编辑中涉及以下文件:

  1. App_Code Folder: Content.cs App_Code文件夹:Content.cs
  2. App_Data Folder: content.xml App_Data文件夹:content.xml
  3. FCKEditor folder FCKEditor文件夹
  4. UserControls Folder: ContentManager.ascx, ContentManager.ascx.cs UserControls文件夹:ContentManager.ascx,ContentManager.ascx.cs

They present a ckeditor when user the logged in to edit various sections and then content is saved on the xml file. 当用户登录以编辑各个部分,然后将内容保存在xml文件中时,它们将显示一个ckeditor。 There is also folder to uploading stuff from the editor and managing the files. 还有一个文件夹,用于从编辑器上载内容和管理文件。

Hope this helps you 希望这对您有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM