ckeditor

ckeditor strips <span> and style attributes

血红的双手。 提交于 2019-12-06 02:57:59
问题 I have a Drupal 7 site using ckeditor 4.2. I've created a basic page node and put a span inside an h2 heading in the body. I hard coded it in the html view. It looks fine but if I go back to edit the page, my has gotten stipped out of the html and also any style="" I've put into the html also. I've looked at the ckeditor config and text-formats. I've set the only formats allowed to be text and full html so I'm not using filtered at all. What gives? I've used the editor many times before but

CKFinder “Edit” features does not work when working on different domains

限于喜欢 提交于 2019-12-06 02:34:48
We are evaluating CKFinder, at the moment we have this situation: app .domain.com hosts our JS application included ckfinder.js api .domain.com hosts the connector.php Please note they are on different domains. We are able to view files and folders with no problems. The issue is related the EDIT feature . When user select an Image and click "Edit" Button, CKFinder goes in editing mode but with receive an error and the image cannot be edited: response (status cancelled) URL:about:/blank?camanProxyUrl=https%3A%2F%2Fapp.domain.com%2Flib%2Fckfinder%2Fcore%2Fconnector%2Fphp%2Fconnector.php

How to fill a rich text editor field for a Codeception Acceptance test

点点圈 提交于 2019-12-06 02:24:42
问题 I'm trying to fill a rich text editor field (TinyMCE) within my acceptance test in Codeception. Using the fillField() function doesn't work as this 'field' isn't really an input field. It's an iframe , styled to look like a fancy textarea. How can I set some text into the body of the TinyMCE box? I think I'm looking for the addition of a $I->setContent(xpathOrCSS) function. Or does something else already exist to do this? 回答1: It is best to do this by adding re-usable actions to your Actor

CKEditor与 CKFinder 整合并实现文件上传功能

别等时光非礼了梦想. 提交于 2019-12-06 02:15:12
事先说明:此整合的是java版本的, 用到的有:jsp + ckeditor + ckfinder 在项目中我们使用了FckEditor,但最新又出来了个ckEditor,到官方网站看看才知道FckEditor在2.6版本之后就改名为ckEditor了。 FckEditor里有java版本的配置,可以支持php、asp.net、java版本,现在一下子变为ckEditor了。配置简单的编辑器很简单,我们下载ckEditor就可以使用,我想大多数人都希望能用到编辑器里的浏览/插入图片功能吧。 一.需要的资源: 用到的网站,文件自己下载: a) ckeditor_3.6.2 (解压) b) ckeditor-java-3.6.2 (解压) c) ckfinder_java_2.3.1 (解压) 二. 执行步骤: 1. MyEclipse新建 Web Project : itcastCKEditor 2.解压ckfinder_java_2.3.1,导入相应的jar包,目录在ckfinder_java_2.3.1\ckfinder\CKFinderJava\WEB-INF\lib下。 以及: ckeditor-java-3.6.2\WEB-INF\lib下的包,共9个包 3. 查找ckfinder_java_2.3.1\ckfinder\_sources\CKFinder for Java

在JSP里使用CKEditor4.4和CKFinder2.4

旧街凉风 提交于 2019-12-06 02:14:56
最近在做一个新闻发布平台,放弃了很早的FCKEditor,使用CKEditor和CKFinder,尽管免费的CKFinder是Demo版本,但是功能完整,而且用户都是比较集中精神发新闻的人,不会在意这个。按照官网的document一步一步配置,虽然并不难,但是有些东西特别分散,还是全英文的,所以我就整理了一下安装过程和配置,以及需要注意的一些问题。希望对大家有所帮助。 1. 下载CKEditor相关的安装文件 CKEditor: 在 http://ckeditor.com/download 页面左侧,可以下载到各种版本的CKEditor,包括完整版full、标准版standard、基础版basic等。在页面右侧上方,还有可定制的下载,可以选择Toolbar类型、插件、语言等。这里我们选择4.1版本的Full版本,下载后得到CKEditor_4.1_full.zip 。 CKEditor for java: 在 http://ckeditor.com/download 页面右侧下部,可以下载到用于服务器端的工具,记得选择for java版本。这里选择3.6.4版本。但是下载下来却是 ckeditor-java-core-3.5.3.jar。不知道为什么。 CKFinder: 在 http://cksource.com/ckfinder/trial 页面

php 中Ckeditor 和Ckfinder的配置

淺唱寂寞╮ 提交于 2019-12-06 02:14:44
CKeditor文件 下载 : http://ckeditor.com/download CKfinder文件下载:: http://ckfinder.com/download 页面引用CKeditor,关键代码如下 <script type="text/ javascript " src="ckeditor/ckeditor.js"></script> <textarea cols="80" name=" content " rows="10"></textarea> 至此,默认版CKeditor就已经安装部署好了,此时你可以通过修改/ admin /ckeditor/ckeditor.js来配置编辑器,如字体、背景色、 语言 、界面高宽、编辑器按钮分布等,详细参数见官方文档: http://docs.cksource.com/ckedito ... #.autoUpdateElement 把需要设置的内容加入此函数中间即可。 CKEDITOR.editorConfig = function ( config ) { }; 第二:安装配置CKfinder Ckfinder默认配置是不能 上传 文件到服务器的,所以要对ckfinder文件下的config. php 做修改,将其文件里的CheckAuthentication() 返回值return false 改为return

ckeditor粘贴上传图片

六眼飞鱼酱① 提交于 2019-12-06 02:14:03
由于工作需要必须将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 New Instance always unloaded

岁酱吖の 提交于 2019-12-06 02:05:12
I'm using CKEditor in my Angular app and have a view that reloads my CKEditor instance every time users access a new model. I'm using the following JS to initialize the editor: var initEditor = function() { $('.js-editor-wrap').html("<textarea id='editor'></textarea>"); var editor = CKEDITOR.replace('editor', {}); editor.on('loaded', function() { console.log('editor loaded'); }); editor.on('instanceReady', function() { console.log('instance ready') }); } And the following to destroy the editor: var destroyEditor = function() { if (CKEDITOR.instances['editor']) { CKEDITOR.instances['editor']

ckeditor 4.5 fileUploadRequest event not firing

冷暖自知 提交于 2019-12-06 01:38:11
I have a textarea with html id "id_textarea". editor = CKEDITOR.inline( 'id_textarea', { filebrowserBrowseUrl : 'browse_url', filebrowserUploadUrl : 'upload_url' }); editor.on( 'fileUploadRequest', function( evt ) { console.log("This is not printing"); }); Whenever I try to upload a file, it doesn't print anything to console. Am I doing something wrong? By the way, my requirement is to add csrf headers before sending a request for which I need to catch some event like fileUploadRequest. f1ames I assume that you are trying to upload files via the Upload tab in the Image Properties dialog. It is

How to remove images uploaded with django-ckeditor?

冷暖自知 提交于 2019-12-06 00:59:47
问题 I have uploaded some images within the CKEditor in the Django admin interface. I can browse and select images by clicking the "Image" button in the editor, and then click "Browse Server" in the window that pops up. Here is a screenshot of the pop-up: My question is: How can I delete images on the server? 回答1: I'm afraid this is not possible with ckeditor (at least I see no such functionality out-of-the-box). You can use a django file manager https://www.djangopackages.com/grids/g/file