fckeditor

How to integrate CKEditor into Asp.net MVC

匆匆过客 提交于 2019-12-02 22:16:06
Saw this post at CodeProject for FCKEditor. Can someone explain what about the new version? It's pretty easy to do actually. First download the latest code from the website and extract it to a directory in your project (I choose /Scripts/ckeditor). Then in your view, use the same code as in the "complete sample" in this link and it should work. Basically, the important steps are: Make sure you include the ckeditor.js file in the head from your view or in your master page, however you want to do it. This needs to be the exact location within your project (I would use the find file dialog that

How can I enable live preview for FCKeditor in an ASP.Net site?

泪湿孤枕 提交于 2019-12-02 04:35:44
问题 Over in this question, Scott writes that it is possible to get the current HTML for what's written in the FCKeditor by using FCKeditorAPI.__Instances['instanceNameHere'].GetHTML(); Could someone provide step-by-step instructions on how to accomplish this in an ASP.NET page? All I currently have so far in the .aspx file is this: <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> <%@ Page Title="" Language="C#" ... %> <asp:Content ID="Content1"

How can I enable live preview for FCKeditor in an ASP.Net site?

 ̄綄美尐妖づ 提交于 2019-12-02 01:06:40
Over in this question, Scott writes that it is possible to get the current HTML for what's written in the FCKeditor by using FCKeditorAPI.__Instances['instanceNameHere'].GetHTML(); Could someone provide step-by-step instructions on how to accomplish this in an ASP.NET page? All I currently have so far in the .aspx file is this: <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> <%@ Page Title="" Language="C#" ... %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <h2>Create a new piece</h2> <form id="form1" runat=

How do I remove Word markup crap when inserting to a form?

淺唱寂寞╮ 提交于 2019-12-01 20:57:23
问题 I'm building a CMS in PHP and one dread I have is that the users will have to fill the data in from existing Word (and Excel, but nevermind that) documents. Now, I've seen what happens when they carelessly copy and paste from Word to a textarea: the database got filled with crap markup. Now, I could certainly strip all markup myself, but I'd have to start learning about it first. So I ask you: have you tested some functionality - plugins of the usual suspects (tinyMCE, FCKeditor, etc) that

How do I remove Word markup crap when inserting to a form?

别来无恙 提交于 2019-12-01 18:31:07
I'm building a CMS in PHP and one dread I have is that the users will have to fill the data in from existing Word (and Excel, but nevermind that) documents. Now, I've seen what happens when they carelessly copy and paste from Word to a textarea: the database got filled with crap markup. Now, I could certainly strip all markup myself, but I'd have to start learning about it first. So I ask you: have you tested some functionality - plugins of the usual suspects (tinyMCE, FCKeditor, etc) that helps here? Bonus for the least intrusive solution. Sadly most of the HTML editor controls I've used

使用FCKeditor编辑器上传文件时中文文件名乱码

隐身守侯 提交于 2019-12-01 12:56:26
修改:editor\filemanager\browser\default\frmupload.html 文件的编码改为UTF-8 实在不行:fckeditor/editor/filemanager/connectors/php/commands.php 178行左右: $sFileName =iconv("utf-8","gbk",$sFileName); 参考: http://www.west999.com/info/html/caozuoxitong/FreeBSD/20090513/131757.html https://www.cnblogs.com/phpfans/archive/2011/07/20/2111948.html 来源: https://www.cnblogs.com/fps2tao/p/11687255.html

Ckeditor how to apply keyboard shortcut to a particular style

我们两清 提交于 2019-12-01 11:37:08
问题 Is it possible to apply a keyboard shortcut to a particular style from Styles drom down in CkEditor? I searched their docs but I could not find a solution for my case. Here is screenshot. Here I want to be able to apply a keyboard shortcut to yellow marker from that Styles drop down. Any help will be appreciated. Thanks 回答1: Here you go. This example shows how to attach a style to CTRL+SHIFT+1 keystroke. You can use switch statement for different keystrokes and play with them any way you want

CKEditor freezes on jQuery UI Reorder

六眼飞鱼酱① 提交于 2019-12-01 04:34:34
I am attempting to reorder a dynamically created list of CKEditors using the jQuery UI framework, but I am having an issue with the editor freeing. It worked perfectly when I was just using a <textarea> , but now, after the dragging action completes, it doesn't let the user write any text. This is the Javascript code: $(function() { $("#list").sortable({ placeholder: 'ui-state-highlight' }); $("#list").disableSelection(); for (i=0;i<10;i++) { addEditor(); } }); function addEditor() { alert("Hello"); var editor_fields = document.editors.elements["editor[]"]; var editorAmount = 0; if (editor

CKEditor freezes on jQuery UI Reorder

做~自己de王妃 提交于 2019-12-01 02:37:17
问题 I am attempting to reorder a dynamically created list of CKEditors using the jQuery UI framework, but I am having an issue with the editor freeing. It worked perfectly when I was just using a <textarea> , but now, after the dragging action completes, it doesn't let the user write any text. This is the Javascript code: $(function() { $("#list").sortable({ placeholder: 'ui-state-highlight' }); $("#list").disableSelection(); for (i=0;i<10;i++) { addEditor(); } }); function addEditor() { alert(

ctf基本的文件上传与绕过学习

此生再无相见时 提交于 2019-11-30 21:46:20
绕过客户端校验前台脚本检测扩展名上传webs hell 原理: 当用户在客户端选择文件点击上传的时候,客户端还没有向服务器发送任何 消息,就对本地文件进行检测来判断是否是可以上传的类型,这种方式称为前台 脚本检测扩展名。 绕过前台脚本检测扩展名,就是将所要上传文件的扩展名更改为符合脚本检 测规则的扩展名,通过 BurpSuite 工具,截取数据包,并将数据包中文件扩展名 更改回原来的,达到绕过的目的 实验: 打开要上传的页面,上传要上传的木马文件lurb.php,点击上传。 页面显示错误 返回上传页面,点击浏览,选择要上传的木马文件lubr.jpg(把lubr.php重命名 lubr.jpg) 上传用burpsuite抓包,将.jpg改为.php,点击’forward’发送数据包,进行绕过。 绕过 Content-Type 检测文件类型上传 原理: 当浏览器在上传文件到服务器的时候,服务器对所上传文件的Content-Type类型进行检测,如果是白名单允许的,则可以正常上传,否则上传失败。绕过Content–Type文件类型检测,就是用BurpSuite 截取并修改数据包中文件的Content-Type类型,使其符合白名单的规则,达到上传的目的。 实验: 打开要上传文件的页面,上传木马lubr.php。报错 利用burpsuite抓包更改Content