ckeditor

解决CKEditor 4 富文本编辑器在图片组件无法显示[上传]选项卡的相关问题

只谈情不闲聊 提交于 2019-12-06 00:55:58
关于解决CKEditor 4 富文本编辑器在图片组件无法显示[上传]选项卡的相关问题。 本文可能会对以下现象得以解决: 图片上传组件,没有 [上传] 选项卡。 资源无法加载 [imgupload] ( Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "imgupload" was not found at ) 预览框默认的英文介绍,无法清空。 解决图片上传组件没有[上传]选项卡 遇到图片上传组件无法显示 上传选项卡,通过网络搜寻,遇到很多解决方案。其中一种便是通过编辑 image.js 源文件修改hidden的值为 false 或者 0 将其开放开来。 这个方案是存在问题的,本着去解决问题方向,去尝试了下。上传选项框成功展现出来了,与此同时出现了其他的问题。 即是: 上传选项卡内,所渲染的form表单,并不存在action(目标地址)。 选择图片文件后,点击上传至服务器,并无任何响应事件。 奇怪的是,当配置了 filebrowserImageUploadUrl 和 filebrowserImageBrowseUrl 的配置项,依然是失效状态。 同时通过查看 image.js 代码内容,也没有引用 filebrowserImageUploadUrl 配置项的地方

tidying html with ckeditor

笑着哭i 提交于 2019-12-06 00:34:58
Hi I've got a small problem with ckeditor, basically I need to make the editor run it's html cleanup command. Is there any way of doing this. At present it doesn't seem to run after I type some stuff into the source and then press save I would like it to tidy the html like it does in the 'normal' editor view Any ideas? Thanks Richard here is some example code <SCRIPT type=text/javascript src="http://www.johnpricephotography.co.uk/crawler.js"> /* Text and/or Image Crawler Script v1.5 (c)2009-2011 John Davenport Scheuer as first seen in http://www.dynamicdrive.com/forums/ username: jscheuer1 -

Disable ckeditor context menu in version 4.4.6

江枫思渺然 提交于 2019-12-05 23:12:24
I am using ckeditor in a Rails4 project. I have tried both the ckeditor gem and the ckeditor_rails gem to provide the ckeditor libraries. There are multiple posts here by people wanting to remove the ckeditor context menu so that the native browser context menu can be displayed. This is usually to enable the browser spellchecker to be used rather than the ckeditor paid / advertised spellchecker. how-to-remove-contextmenu-in-ckeditor-4-3 ckeditor-3-6-3-enable-browser-spellcheck-and-disable-context-menu how-to-disable-ckeditor-context-menu/20229730#20229730 The third link has the most replies

CKEditor key event not updating text properly

拜拜、爱过 提交于 2019-12-05 22:48:11
I have the following code to automatically update the content inside a div when the user types it inside a CKEditor textarea: CKEDITOR.instances.editor.on("key", function(e) { var preview = document.getElementById('some-div'); preview.innerHTML = CKEDITOR.instances.editor.getData(); }); The problem is that if I type in "Hello world", in the div it appears "Hello worl" and the "d" doesn't appear until another key is pressed. And I would want the same content in both places. Thanks in advance! I solved it handling the key event in a different way. You can see it below: CKEDITOR.instances.editor

CKEditor - Modify BBCode Output

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 22:40:40
I'm building a forum application in php for my website (mostly just to see if I can pull it off). I've been tinkering with web development as a hobbyist for nearly 20 years, but I've always avoided working with javascript - meaning I've become pretty good working with html,css and php, but I'm useless when it comes to client-side scripting. For all intents and purposes, my forum works. Users can register, post, edit, review an delete posts based on their user level and permissions etc. However I have an issue which is driving me crazy because I can't solve it: I'm using CKEditor with the

Ckeditor gem issue with production mode

北慕城南 提交于 2019-12-05 22:31:55
问题 I'm using the CKEditor gem. My config for application.js and routes.rb are like the followings: # application.js //= require ckeditor/init # routes.rb mount Ckeditor::Engine => '/ckeditor' The gem works fine in development mode, but when moving to the production mode, I got the error 404 when browsers request the js and css files in ckeditor folder: GET http://mydomain/assets/ckeditor/config.js?t=D2LI 404 (Not Found) GET http://mydomain/assets/ckeditor/skins/moono/editor.css?t=D2LI 404 (Not

Use of ckeditor “key” CKEDITOR.instances.editor.on('key', function (e){

故事扮演 提交于 2019-12-05 21:41:55
I realize there are questions about how to implement an event handler for CKEDITOR 4. I am able to use this code to get the key-down data, but I can't seem to get the data after a key-up: CKEDITOR.instances.editor.on('key', function (e){ document.getElementById("preview").innerHTML = CKEDITOR.instances.editor.getData(); }); So when I type a string like "aaa" into the text editor field, the first character is never fetched. So my div id="preview" will only show "aa". I've iterated over the e object, which is quite complex, but nothing there strikes me as useful to solving this. I also don't see

CKEDITOR: how to I convert ALL html entities

一世执手 提交于 2019-12-05 21:16:34
here is the list: http://www.elizabethcastro.com/html/extras/entities.html I either want to enable all of them, or disable all of them... (aside from < and > of course) Is there a way to do this? there is the config.entities_additional = "", but that is a comma separated list of all the entities you want to store. preferably, I'd like to disable the entities entirely, but setting config.entities = false; doesn't do anything. o.o @Cheery's answer solves the situation where the editor uses the config.js file. however, CKEDITOR.replace("selected_text_actual", { uiColor: "#F5F5F5", toolbar:

ckeditor removes <br/> when br is in allowed content

妖精的绣舞 提交于 2019-12-05 21:07:38
When I add br to ckeditor allowed content and adding <br> tag it is being changed into <br /> But when I add <br/> it is being removed. Why is it being removed when br is in allowed content? Any suggestions? There are some bits missing from your post, not sure why, or what you were trying to say. If what you were saying is that you wanted to add, say, clear="all" to your <br /> tags, you can use this to update your allowed content: config.AllowedContent = "br[clear]"; Separate individual elements with ; . Here is the reference to the AllowedContent rules in the documentation: http://docs

CKEditor + Yii loaded with AJAX : $_POST doesn't contain the updated value

妖精的绣舞 提交于 2019-12-05 20:58:33
in short: i'm using Yii Framework i have a one Ckeditor window on my page ( php/ yii framework - works fine) when i hit a button, a new CKeditor window is being generated and shown through AJAX call THE PROBLEM: this new CKEditor window correctly displays the text stored in the database BUT : when i hit "Save" (an ajax button generated together with the rest of the form) the values from this new CKeditor window will not save : CKeditor sends back the old values that it got from the database. When i remove the Ckeditor and leave the plain <textarea> : everything is ok so i know that the