ckfinder

CKFinder how to get dimension URL and Dimension (width/height) when choosing an image (files:choose)?

て烟熏妆下的殇ゞ 提交于 2019-12-14 03:49:03
问题 I am using CkFinder 3, after uploading successfully an image I need to be able to detect after an User click the "Chose" button: file name / id url width and height for original image At the moment I am using the files:choose but I cannot find this information on the cb event. Any idea how to solve it? A sample of code would be appreciate thanks. CKFinder.modal( { connectorPath: 'https://api.mysite.com/lib/ckfinder/core/connector/php/connector.php', resizeImages: false, startupFolderExpanded:

How do I pass custom values to CKFinder3 when instantiating a CKEditor4 instance?

拈花ヽ惹草 提交于 2019-12-14 03:18:23
问题 I'm having some trouble using pass to pass variables to my CKFinder3 (ASP) connector when using CKEditor4. I create my editor instance with: CKFinder.setupCKEditor( myEditor, { pass: 'testVar', testVar: 'nooice', ... }); but the variable just doesn't seem to make it over to CKFinder. If I add this code to the CKFinder config directly it does work though: config.pass = 'testVar'; config.testVar = 'nooice'; That's great, but the values I want to pass will be dynamic, so I need to pass them in

CkFinder “Edit” mode how to set Save Changes preferences (Overwrite File)

拟墨画扇 提交于 2019-12-11 21:15:39
问题 We are evaluating CkFinder 3.2.0, we have an issue with setting some configurations/preferences. After uploading an image, user can select it and making some modification using "Edit" feature. At the moment of saving the modified image, a dialog appears giving the option to Overwrite File or not, if user select NO, a "Save As" text box appear. We need to: Disable Overwrite File option at all. When an "Edit" on an image happens we want just to create a new file (no overwrite option), with a

May posting of images through a rich text editor be vulnerable to XSS attacks?

情到浓时终转凉″ 提交于 2019-12-11 07:59:43
问题 I'm using a rich text editor - CKEditor to allow users to input formatted text that renders HTML/CSS. To prevent XSS attacks by untrusted users, I'm using the Jsoup Java library which filters/whiltelists necessary tags and/or attributes of the user input something like, for example, an anchor tag like, <a href='http://example.com/' onclick='executeMaliciousTask();'>Click Here</a> is turned into <a href="http://example.com/" rel="nofollow">Click Here</a> The link generated by Jsoup seems to be

CKEditor ignoring BASEPATH in Laravel

纵饮孤独 提交于 2019-12-08 15:24:49
问题 Installed CKEditor and CKFinder in a Laravel project, both in the Public/js folder In my main page, I load a site specific .js file which contains var CKEDITOR_BASEPATH = '/js/ckeditor/'; Also tried: var CKEDITOR_BASEPATH = 'http://localhost:8888/js/ckeditor/'; Then I load my ckeditor.js file From my /Resources/Views/admin/newpage.blade.php view, I load up a text box and call CKEditor.replace(). Does it perfectly. I can add a new page, even edit them. Problem occurs when I try to use the

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

為{幸葍}努か 提交于 2019-12-07 15:24:38
问题 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

How to integrate CKFinder with Laravel?

大憨熊 提交于 2019-12-07 11:12:47
问题 I'm trying to integrate CKFinder with Laravel, and I'm about 95% there. I can get everything to work, except for the CheckAuthentication function - I have to make it return true regardless for the upload to work. What I've tried doing is bootstrapping Laravel in the config.php file and then checking if a user is logged in, like below: public/packages/ckfinder/config.php <?php /* * ### CKFinder : Configuration File - Basic Instructions * * In a generic usage case, the following tasks must be

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

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 页面