简体   繁体   English

现代 HTML 适用于 ASP.Net 的所见即所得编辑器 Web Forms 应用程序

[英]Modern HTML WYSWYG Editor for ASP.Net Web Forms application

I'm looking for some kind of HTML WYSWYG editor solution for an ASP.Net Webforms application.我正在为 ASP.Net Webforms 应用程序寻找某种 HTML 所见即所得编辑器解决方案。 We currently use AjaxToolkit, but it doesn't support pasting images, is not really accessible, etc. I came accross FreeTextBox, but it seems to not support image pasting either, and it's been a big headache to configure properly given that the documentation is not all that descriptive.我们目前使用 AjaxToolkit,但它不支持粘贴图像,无法真正访问等。我遇到了 FreeTextBox,但它似乎也不支持图像粘贴,并且鉴于文档是不是所有的描述。 I've gotten the image gallery to work finally, but it looks pretty terrible, and I'm not sure the images will actually show up in the email (they were broken in my testing environment using the Papercut SMTP emulator).我终于让图库开始工作了,但它看起来很糟糕,而且我不确定这些图像是否会实际显示在 email 中(它们在我使用 Papercut SMTP 模拟器的测试环境中被破坏)。 Just wondering if there are any other options I have with a Web Forms app, or am I limited to solutions that are as old as Web Forms?只是想知道 Web Forms 应用程序是否还有其他选择,或者我是否仅限于 Web Forms 一样古老的解决方案?

you can try CKEditor(it have editable tool panel and spell checker)你可以试试 CKEditor(它有可编辑的工具面板和拼写检查器)

https://ckeditor.com/cke4/builder https://ckeditor.com/cke4/builder

this free js library, easy integrate and if you want send result to.aspx.cs side should use call back by DevExpress control这个免费的 js 库,易于集成,如果你想将结果发送到.aspx.cs 端应该使用 DevExpress 控件的回调

I still use the ajaxtoolkit HTML editor.我仍然使用 ajaxtoolkit HTML 编辑器。 It is a bit dated, but I do find without any special settings, that I can paste in in images.它有点过时,但我确实发现没有任何特殊设置,我可以将其粘贴到图像中。

So, say I drop in a text box, use extender, and add HTML editor.所以,假设我放入一个文本框,使用扩展程序,并添加 HTML 编辑器。

So, say this:所以,这样说:

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <asp:TextBox ID="TextBox1" runat="server" Width="1309px" 
            TextMode="MultiLine" Rows="40" ></asp:TextBox>


        <ajaxToolkit:HtmlEditorExtender ID="TextBox1_HtmlEditorExtender" runat="server" 
            BehaviorID="TextBox1_HtmlEditorExtender" 
            EnableSanitization="False" 
            TargetControlID="TextBox1">
        </ajaxToolkit:HtmlEditorExtender>

I am able to put a picture in my paste buffer, and a simple ctrl-v does paste the picture:我可以在我的粘贴缓冲区中放一张图片,一个简单的 ctrl-v 就可以粘贴图片:

eg this:例如这个:

在此处输入图像描述

As noted, I think the tool bar etc. does look quite outdated, but my experiance with the toolkit is that ctrl-v to paste in a picture does work.如前所述,我认为工具栏等看起来确实过时了,但我对工具包的体验是 ctrl-v 粘贴图片确实有效。

As suggested, the other possible is ckedit, and it should work with asp.net web pages.正如建议的那样,另一种可能是 ckedit,它应该适用于 asp.net web 页。

Its not clear why using the ajaxtoolkit editor does not allow cut + paste of images - my experience does seem to work.不清楚为什么使用 ajaxtoolkit 编辑器不允许剪切 + 粘贴图像 - 我的经验似乎确实有效。 Perhaps you need sanitation=false?也许你需要 sanitation=false?

As noted, the other suggestion here was CKEditor, and that seems like a good choice also.如前所述,这里的另一个建议是 CKEditor,这似乎也是一个不错的选择。

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

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