ckeditor

ckeditor_uploader Dynamic Image Upload Path

本秂侑毒 提交于 2019-12-08 07:12:56
问题 I have a Django application that requires users to upload multiple images per document. The application has django-ckeditor installed, but the uploaded images end up in the same folder set by the CKEDITOR_UPLOAD_PATH setting. I would like the path to be dynamic, based on the URL scheme. For example, images uploaded to the CKEditor instance on https://myapp/report/1/finding/5 should reside in /ckeditor_base_path/report/1/finding/5/my_img.png . Unfortunately, the URL for the view function that

How to show uploading progress in CKEditor?

这一生的挚爱 提交于 2019-12-08 06:38:07
问题 I'm adding a plugin that allow user to upload and display video to CKEditor. The file's size may be big so I'd like to display the upload progress. Currently I'm using the default FileBrowser API to show the upload button, but the document doesn't mention about showing the progress. How can I achieve this? Or do I need to write my own upload plugin? 回答1: You can trigger the event emitter to check if the upload is in progress a sample code for s3 upload using nodejs function s3uploads(filePath

How can I create uneditable fields on CK Editor?

落花浮王杯 提交于 2019-12-08 06:33:46
问题 In my app, admins can change form template and users should fill in the blanks in this form using CK Editor or other editors. But when I show form to user, they can remove some fields. I dont wanna this. How can I create "uneditable" fields on CK Editor or can you suggest another editors for that? Thanks in advance.. 回答1: Summary TL;DR You can use the "widget" plugin system, it is designed for this sort of usage where parts of a template are editable, but others are not. It is simply a plugin

How to change default image uploaded path change on CKFinder[CKEditor] using php

梦想与她 提交于 2019-12-08 05:00:59
问题 I have to use CKEditor where using CKFinder use to uploaded images how to change default uploaded path. How to change default browse path. I spent lot of time on this, any one help me. Thanks in advance. 回答1: I'm not sure I completely understand your question, but have you tried adding the following lines to your config.js file? config.filebrowserUploadUrl = "/some/path/on/server"; and config.filebrowserBrowseUrl = "/some/path/on/server"; Here is the documentation on the different variables

jQuery UI Resizable in CKEditor

喜你入骨 提交于 2019-12-08 04:41:15
问题 I am trying to get a within a CKEditor instance working with jQuery UI Resizable. I use the following code to setup jQuery UI Resizable: var ckinstance = CKEDITOR.instances.ckeditor-1; ckinstance.on("instanceReady", function() { $(ckinstance.document.$).find(".gallery").resizable(); }); This seems to half work. If I inspect the HTML within the CKEditor instance the div has all the jQuery UI Resizable tags for handles etc but the div doesn't seem to be able to resize. Does anyone know why the

CKEditor PHP integration

允我心安 提交于 2019-12-08 03:02:05
问题 I am using CKEditor with PHP. Using the sample PHP where the $code variable gets echoed printing the code that triggers the CKEditor to show. I do the same only in a real layout and the what happens is the Editor engulfs the surroding HTML inside it as if it was the initialValue for it. Any idea why I am getting this, please? Here is the code: // Include CKEditor class. @require_once("ckeditor/ckeditor.php"); // Create class instance. $CKEditor = new CKEditor(); // Do not print the code

CKEditor remove style preview from Styles dropdown

萝らか妹 提交于 2019-12-08 01:41:49
问题 I've been searching and searching for an answer to this problem and cannot found a solution. I have added some custom styles to the CKEditor that add a margin-left to the selected text. The problem is that this causes the style previews to move to the right in the styles list. So much so, that they go off the right side of the dropdown. I don't quite have enough rep to post a screenshot unfortunately. I would just like the styles in the list to have no preview at all if possible. I have tried

CKEDITOR Drag and drop plugin integration stops working after editor instance is destroyed and recreated

左心房为你撑大大i 提交于 2019-12-08 00:57:10
问题 I'm having quite a bit of trouble while trying to use CKEditor's drag and drop integration. At first, dragging and dropping into the editor works allright with dataTransfer and all. But whenever I have to destroy and recreate an instance of the editor, dragging and dropping content stops working as expected. I have modified the sample code directly from CKEditor's SDK page about DnD integration, where you can see the issue being reproduced. (I just reduced the example as to make it more

Use of classes for alignment ckeditor

此生再无相见时 提交于 2019-12-08 00:40:57
问题 I am using ckeditor and it is really great. The only one problem I have is that I am trying to use classes instead of style when aligning objects. More specifically, I want to use a class alignleft for align left images instead of using style="float:left" . For this purpose I modified the plugin ckeditor/plugins/image/dialogs/image.js In id:'cmbAlign' I changed the setup and the commid method so that it should add the class "alignleft" or "alignright" depending the situation but strangelly It

Mathjax + CKEditor 4 + CKEditor in ajax based popup

非 Y 不嫁゛ 提交于 2019-12-07 23:27:42
问题 I have configured CKEditor 4 and I have following things on my page. I have one CKEditor in page. Two options to set values. These two options themselves options two ajax based popups each. These ajax based popups contains CKEditor. Now I have following issues: I have integrated MathJax. Main page's CKEditor properly shows entered mathematical formulas. CKEditors in ajax based popups first time properly save mathematical formulas but when I reopen those ajax based popups and try to fill saved