ckeditor

Problems with ckeditor running on production Rails application with Heroku

半世苍凉 提交于 2019-11-29 00:24:42
问题 I'm using the ckeditor gem in my Rails 4 application. Everything works great locally and on my staging heroku environment, but I get this errors when pushing on the production environment : GET http://myapp.herokuapp.com/assets/ckeditor/contents.css 404 (Not Found) GET http://myapp.herokuapp.com/assets/ckeditor/skins/moono/icons.png 404 (Not Found) The editor shows up well, but all icons are missing. I followed the README (https://github.com/galetahub/ckeditor), but I'm probably missing

How to do CKEditor 5 Image Uploading?

主宰稳场 提交于 2019-11-28 21:40:52
问题 ClassicEditor .create( editorElement, { ckfinder: { uploadUrl: 'my_server_url' } } ) .then( ... ) .catch( ... ); What should be my server response? I am using Java in the backend. Whatever my response is, it throws a dialog box 'cannot upload file'. 回答1: Success response : { "uploaded": true, "url": "http://127.0.0.1/uploaded-image.jpeg" } Failure response : { "uploaded": false, "error": { "message": "could not upload this image" } } 回答2: this is my code for Ckeditor 5 and Phalcon framework.

Integrating CKEditor with Rails 3.1 Asset Pipline

十年热恋 提交于 2019-11-28 21:29:11
I'm new to the Asset Pipeline, having just migrated over from Rails 3.0. I'm trying to get CKEditor into the pipeline, but all the gems for it are really unclear about how they work, and have little or no usage instructions. I would prefer to do this without using a gem, since it seems that all I have to do is drop the source files into the vendor/assets directory and then include them in application.js . I've tried that, however, when I precompile and push to production, it seems that some of the files aren't being found ( editor.css , for example), and the editor doesn't show up at all (just

我的网站搭建 (第22天) 改写评论框样式

夙愿已清 提交于 2019-11-28 21:16:53
一、前言 在上一篇内容 网站搭建 (第21天) 评论功能设计 ,已经将评论的模型使用,ajax的加载以及ckeditor评论样式大致都介绍了一遍。其实不管是ckeditor还是ueditor都非常的好用,在学会了如何配置ckeditor编辑框和评论框以后,我开始转向了ueditor的学习,个人觉得ueditor在外观上来看,要比ckeditor好一点点,作为编辑框或者评论框都是非常的适合。在这次改写评论框样式,代码层面需要修改的并不多,只需要对上篇内容的代码进行两处修改,一处是定义评论表单的form.py文件,需要对text字段的widget稍作修改,另一处则是表单提交的代码部分。此外,在了解这部分内容,还需要对ueditor有一个了解,不懂的朋友可以先看看我之前将ueditor应用到django后台的文章— 网站搭建 (第10天) Ueditor编辑器 。 二、改写评论表单文件 主要区别就是widget属性的部分,重新定义了ueditor的评论框样式,其他地方几乎没有作任何修改。 from django import forms from django.contrib.contenttypes.models import ContentType from django.db.models import ObjectDoesNotExist from ckeditor

Can I use CKEditor without a toolbar?

余生颓废 提交于 2019-11-28 21:13:42
(Possible duplicate: CKEditor - No toolbars ) I'd like to create a CKEditor instance without a toolbar. I tried defining an empty toolbar to use in the instance's config oConfigName.toolbar = 'Custom'; oConfigName.toolbar_Custom = []; but I get a small empty toolbar by my instance, instead of no toolbar. I am using inline editing with CKEditor4. Reinmar Wow :) This is something that we haven't thought of while implementing toolbar. But I've just checked that you can remove toolbar plugin, because it isn't required by any other plugin. So build your own CKEditor package without toolbar or use

CKEDITOR - prevent adding image dimensions as a css style

試著忘記壹切 提交于 2019-11-28 20:06:58
How to prevent CKEDITOR from adding image dimensions as a style? Instead of this: <img src="image.jpg" style="height:100px; width:100px;"> I want this <img src="image.jpg" height="100px" width="100px"> There is one more way to do this (much simpler), by using Disallowed Content introduced in CKEditor 4.4.0: CKEDITOR.replace( 'editor1', { disallowedContent : 'img{width,height}' } ); or in config.js: config.disallowedContent = 'img{width,height}'; This rule will disallow inline styles (width and height) for img element, CKEditor will use attributes instead. If for some reason, you will notice

Force CKEDITOR to refresh config

耗尽温柔 提交于 2019-11-28 17:52:43
I created a cms application that use CKEDITOR and when I add some functionality to CKEDITOR I need to refresh some CKEDITOR .js /.css file. But CKEDITOR force the browser to cache them. I see that it uses a querystring to all .js/.css files This querystring reflect the CKEDITOR version I suppose: /Js/ckeditor/config.js?t=CAPD /Js/ckeditor/lang/it.js?t=CAPD /Js/ckeditor/plugins/onchange/plugin.js?t=CAPD Is there an embedded method to do that in CKEDITOR? I could not find anything in the documentation. I'm using CKEDITOR 4 The main problem is that when I upload some changes they are not updated

Getting the textarea value of a ckeditor textarea with javascript

妖精的绣舞 提交于 2019-11-28 16:50:18
I'm a learner as far as JS goes and although I've spent a good few hours reading through tutorials which has helped lots but I'm still having problems figuring out exactly how I find out what a user is typing into a ckeditor textarea. What I'm trying to do is have it so that when someone types into the textarea, whatever they type appears in a div in a different part of the page. I've got a simple text input doing that just fine but because the text area is a ckEditor the similar code doesn't work. I know the answer is here: ckEditor API textarea value but I don't know enough to figure out

CKEditor Custom Plugins Button

喜你入骨 提交于 2019-11-28 15:50:55
问题 I've written a custom plugin for CKEditor--successful on all fronts, save one currently: I can't, for the life of me, figure out how to customize the image on the button in the toolbar of the editor. As I'm a new user, you'll have to click through to see attached image; the highlighted square in the top left should have a pretty picture (like most of the other toolbar items). 回答1: I have written a complete tutorial covering every aspect of CKeditor plugin development, including buttons,

Integrated Markdown WYSIWYG text editor

时光毁灭记忆、已成空白 提交于 2019-11-28 15:10:37
In looking for a straightforward WYSIWYG editor for Markdown code, I am not finding a comparible UI to that of CkEditor, TinyMCE, ect. Specifically, the Markdown "WYSIWYG" editors that are often recommended (such as posts like this ) are not pure WYSIWYG editors in the sense that users either still write raw Markdown ( MarkItUp ) or go to the other extreme of having in-line editing without standard controls ( Hallo ). I need something in-between. I'm looking for a Markdown editor that looks and functions like a stripped down CkEditor text box, and that accepts and outputs Markdown. There