ckeditor

Can't get CKEditor plugins to work in django

北城以北 提交于 2019-12-09 01:35:30
问题 I am trying to get the CKEditor plugin, codesnippet, to work in the django admin but am unable to. CKEditor works if I don't define any CKEDIT_CONFIGS in my settings.py. It also works if take out the "extraPlugins" line (and it successfully will adjust the height and width as defined in the CKEDITOR_CONFIGS section). I installed CKEditor using the instructions here: https://github.com/shaunsephton/django-ckeditor CKeditor is located in /static/ckeditor and codesnippet is in /static/ckeditor

using CKEditor with jQuery validation plugin not working

坚强是说给别人听的谎言 提交于 2019-12-08 23:34:28
问题 I'm using CKeditor and the jQuery validation plugin from basistance. My textarea (with the CKEditor on it) is being validated by jQuery, but that only works after the second click on my submit button. In short: the first time I submit the form when data is entered in the CKEditor, it says "field is empty". The second time it says it's ok and the form is being submitted. I read a solution for this: "you could work around this problem by calling CKEDITOR.editor::updateElement right before every

CKEditor and KCfinder image preview on GoDaddy

和自甴很熟 提交于 2019-12-08 20:45:50
问题 I am having a problem with preview of image through KCFinder on CKEditor on GoDaddy hosting. When I select the image from KCFinder the preview is loaded correctly on my local machine, but when I check on GoDaddy it is not showing correctly. Difference can be seen from below images. I have configured the file browser in CKEditor as shown in below snippet. config.filebrowserBrowseUrl = '../admin/kcfinder/browse.php?type=files'; config.filebrowserImageBrowseUrl = '../admin/kcfinder/browse.php

富文本编辑器技术文章汇总

ぃ、小莉子 提交于 2019-12-08 17:46:30
下面为我平时学习所看的高质量文章的汇总,以便后面的查阅及总结 富文本编辑器 CKeditor 配置使用 CKEditor5基本使用 ckeditor5 - How to do CKEditor 5 Image Uploading? - Stack Overflow Events - Simditor Summernote - Super Simple WYSIWYG editor Braft Editor | 基于DraftJS的强扩展性React富文本编辑器 CKEditor教程 富文本编辑器CKEditor配置及使用 CKEditor配置及使用 ckeditor富文本编辑器的使用和图片上传,复制粘贴图片上传 CKEditor的使用,并实现图片上传 ckeditor5富文本编辑器填坑记录 来源: https://www.cnblogs.com/XmanLin/p/12006374.html

How to configure CKEditor so it keeps data attributes instead of removing them?

≯℡__Kan透↙ 提交于 2019-12-08 17:33:48
问题 I use CKeditor for editing rich HTML pages, but some javascript functionality relies on special attributes of the <a> tags that triggers them. Those are rare cases, just a few records on a database of 5000+ records need to trigger this functionality, and this particular js module needs special attributes as a way of parametrization: <a href="#" data-from="ROM" data-to="NYC" data-promo="8373794">Buy your tickets</a> CKeditor allows me to add those attributes (by editing the source code of the

How to customize fonts in CKEditor?

浪子不回头ぞ 提交于 2019-12-08 16:56:57
问题 Does anyone know how to customize (add or remove) fonts in the CKEditor 3.x series? I looked all over and I can't figure out how. Supposedly there is a /plugin/fonts folder but it does not exist in 3.5+ of CKEditor. 回答1: The fonts in the font menu are configured using CKEDITOR.config.font_names: <static> {String} CKEDITOR.config.font_names The list of fonts names to be displayed in the Font combo in the toolbar. [...] So all you need to do is set font_names in your configuration to the font

CKEditor 4 - how to add font family and font size controls to the toolbar

允我心安 提交于 2019-12-08 15:47:08
问题 I have a config.toolbarGroups setting in config.js but I don't know what name to use for the groups to add font family/font size controls. (It seems the documentation is lacking in this regard). I've found some suggestion that I should use CKBuilder to create a package that already includes it, but I can't redeploy the entire ckeditor just to add a couple of buttons. Edit: My CKEditor is version 4 Any advise? Thanks! 回答1: There are two (mutually exclusive) ways to configure the toolbar. Check

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

CKEditor image dialog forms not clickable when in a modal dialog

泄露秘密 提交于 2019-12-08 13:44:36
问题 I am using bootstrap modal popup to open ckeditor. It's working but when I to click the image icon in that dialog opens, but not clickable. 回答1: Using this code. <script> CKEDITOR.replace('help_ldesc'); //CKEDITOR.replace('help_ldesc1'); $.fn.modal.Constructor.prototype.enforceFocus = function() { var $modalElement = this.$element; $(document).on('focusin.modal',function(e) { var $parent = $(e.target.parentNode); if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length && $(e

checkDirty always returning true

对着背影说爱祢 提交于 2019-12-08 13:42:47
问题 Whenever I call checkDirty() I am always getting true. Run the example below and just click the destroy button. jsfiddle $(document).ready(function() { CKEDITOR.config.autoUpdateElement = false; CKEDITOR.on('contentDom', function (event) { event.editor.resetDirty(); }); CKEDITOR.on('instanceReady', function (event) { event.editor.on('contentDomUnload', function (destroyevent) { alert('isdirty: ' + destroyevent.editor.checkDirty()); }); }); $("#item_ckeditor").ckeditor(); $("#item_docompare")