django-ckeditor

How to add wiris to django-ckeditor

可紊 提交于 2021-01-28 04:04:01
问题 I want to use CKEditor+WIRIS plugin in my Django-based project. I successfully installed django-ckeditor. But I dont know which WIRIS plugin should be used. In download page, there are some plugins for php, Java, ASP and... But there is not any plugin for Django or python. Can I use one of these plugins to add it to django-ckeditor? which one and how? 来源: https://stackoverflow.com/questions/28537060/how-to-add-wiris-to-django-ckeditor

How to set responsive images with CKEditor 5?

。_饼干妹妹 提交于 2020-03-05 02:16:07
问题 Using the Simple Upload Adapter, according to the CKEditor 5 documentation upon a successful image upload, the server should return either: This for a single image: { default: 'http://example.com/images/image–default-size.png' } Or this for multiple (i.e. for the srcset attribute) { default: 'http://example.com/images/image–default-size.png', '160': 'http://example.com/images/image–size-160.image.png', '500': 'http://example.com/images/image–size-500.image.png', '1000': 'http://example.com

django-ckeditor to Django admin

若如初见. 提交于 2019-12-23 05:59:29
问题 I've installed django-ckeditor on django 1.5 as instructed in the docs. I've changed TextField in my applications models.py to RichTextField as said in the docs. However I still see blank textarea in the Django admin instead of the ckeditor. This question was asked 3 years ago and none of the answers worked for me. The ckeditor.js loads just fine when I get the page. Any suggestions? my app name is newsfeed. models.py: from cms.models.pluginmodel import CMSPlugin from cms.models import Page

Django-CKEditor Image Upload

余生颓废 提交于 2019-12-21 17:42:28
问题 I've currently installed Django-CKEditor and have my own custom toolbar. I'm struggling to find how to enable image uploading. When clicking the Image button, I can only upload via URL. I know that, in the plugin, there are views to handle file browsing and uploading but I'm not sure how to activate or use these. There is sparse documentation on the plugin so I am reaching out for your help! https://github.com/shaunsephton/django-ckeditor 回答1: In the current version (5) you can use

How can I install plugin into CkEditor, Django

强颜欢笑 提交于 2019-12-12 21:04:08
问题 I am using django-ckeditor. And now I need to add one new plugin. This I have read that, I should download and extract it into "plugins" folder : Extract the contents of the file into the "plugins" folder of CKEditor. But I have not any "plugins" folder in my project. There is one, but it is located in Lib\site-packages\ckeditor\static\ckeditor\ckeditor\plugin . So, if I add it there - it will be unavailable when I will deploy it in production or on another computer... And what should I do?

How to display text with HTML-markup? (I use ckeditor)

天涯浪子 提交于 2019-12-11 06:50:58
问题 I heard about the filter |safe , but if I understood correctly, that's unsafe and creates a backdoor for injections. What are the alternatives to display full posts with formatted text? 回答1: I think when you not use the filter of |safe , then output should return as text only with html markup (not rendered as html output) . But, if you need to exclude some dangerous tags such as <script>location.reload()</script> , you need to handle it with custom templatetag filter.. I got good answer from:

Django-ckeditor file upload doesn't work

心不动则不痛 提交于 2019-12-11 03:46:52
问题 I use django-ckeditor module in my blog as WYSIWYG editor for create and edit articles in the administration. It work pretty well but I can't upload image to my server. When I click on the image button, the button "browse the server" and "upload image" doesn't appear as they supposed to (I saw it somewhere). I can only add externals images providing their urls. I use Django 1.8 with Python 3.4 The module django-ckeditor and ckeditor_uploader are correctly installed and added in the INSTALLED

Django-CKEditor won't render images

我与影子孤独终老i 提交于 2019-12-11 03:24:48
问题 I've installed Django-CKEditor and configurated it for development purposes. Now I can edit text and save it to db as text field. But with inserting images I have major problems... I can insert image and it seems to save properly to local host (to correct folder) but when rendering image to preview or text editor I get only broken image picture. Apparently I haven't configured settings.py correctly. Main items from settings.py: MEDIA_ROOT = '' MEDIA_URL = '/media/' STATIC_ROOT = '' STATIC_URL

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

ckeditor_uploader Dynamic Image Upload Path

半腔热情 提交于 2019-12-06 16:26:43
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 handles setting the path is set by the widget ( CKEditorUploadingWidget ) before the view creates a