Tag: ckeditor

如何将CKEditor与Heroku集成?

这有点棘手,因为Heroku在他们的Dyno Grid中使用只读文件系统。 这意味着当尝试远程安装ckeditor时,我收到一个错误: heroku rake db:migrate rake aborted! Read-only file system – /disk1/home/slugs/362142_8858805_b85c-f2f3955d-f087-4bc4-8b1b-b6e898403a10/mnt/public/javascripts/ckcustom.js ckcustom.js是一个配置文件,用于管理ckeditor的元设置。 我想知道是否有其他人有这些麻烦,他们做了什么来绕过他们?

CKEditor Carrierwave Cloudinary

我正在尝试让CKEditor与Carrierwave和Cloudinary一起工作。 到目前为止,具有常规文件上载字段的非CKEditor启用视图与Carrierwave和Cloudinary完美配合。 但是,当我尝试在CKEditor中上传文件并“将其发送到服务器”时,我得到一个NoMethodError – undefined method ‘each’ for “image/jpeg”:String: 在从CKEditor类中删除本地存储配置之前,它正在工作,但在本地保存文件。 这是我目前的CKEditor上传器: class CkeditorAttachmentFileUploader < CarrierWave::Uploader::Base include Cloudinary::CarrierWave include Ckeditor::Backend::CarrierWave def extension_white_list Ckeditor.attachment_file_types end end 日志文件: Started POST “/ckeditor/pictures?CKEditor=subsection_content&CKEditorFuncNum=3&langCode=en&authenticity_token=5Bt06UwjUD%2FEdLFANBmZojdv8Hvn2GbQRLvC6h11Dd8%3D” for 127.0.0.1 at 2013-06-20 15:44:18 -0700 Processing by Ckeditor::PicturesController#create as HTML Parameters: {“upload”=>#<ActionDispatch::Http::UploadedFile:0x007ff742c77018 @original_filename="pic1.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"upload\"; filename=\"pic1.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#>, “CKEditor”=>”subsection_content”, “CKEditorFuncNum”=>”3”, “langCode”=>”en”, “authenticity_token”=>”5Bt06UwjUD/EdLFANBmZojdv8Hvn2GbQRLvC6h11Dd8=”} (0.4ms) BEGIN […]

permanentredirect s3用于未指定的端点

我正在尝试使用s3,但我遇到了许可问题(我认为)。 输出: AWS::S3::PermanentRedirect in CkeditorController#create The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. 我正在使用ckeditor。 我的Ckeditor :: Picture类包括: has_attached_file :data, :s3_credentials => “#{Rails.root}/config/s3.yml”, :storage => :s3, :path => “:attachment/:id/:style.:extension” validates_attachment_size :data, :less_than=>2.megabytes 在s3.yml中,我得到了: access_key_id: “key” secret_access_key: “key” bucket: “name” AWS_CALLING_FORMAT: SUBDOMAIN 我错过了什么? […]

如何在Rails 3.1(gem + Asset Pipeline)中配置CKEditor

我已经在我的Rails 3.1应用程序上成功配置了https://github.com/galetahub/ckeditor的ckeditor gem。 我现在的问题是我无法弄清楚如何配置CKEditor。 在启用资产管道的Rails 3.1应用程序中,根据自述文件使用的文件根本不存在。

将CKEditor与Rails 3.1 Asset Pipline集成

我是资产管道的新手,刚刚从Rails 3.0迁移过来。 我正在努力让CKEditor进入管道,但是它的所有gem都不清楚它们是如何工作的,并且很少或没有使用说明。 我更愿意在不使用gem的情况下执行此操作,因为似乎我所要做的就是将源文件放入vendor/assets目录中,然后将它们包含在application.js 。 我已经尝试过,但是,当我预编译并推送到生产时,似乎找不到某些文件(例如, editor.css ),并且编辑器根本没有显示(只是空白区域)。 的application.js //= require jquery //= require jquery_ujs //= require ckeditor/ckeditor //= require_self 这与vendor/assets/javascript/ckeditor/的源文件vendor/assets/javascript/ckeditor/ ,并指向ckeditor.js 。 我只是不确定从哪里开始。 此代码在开发中工作正常,但在生产中不起作用。 我正在运行rake assets:precompile在添加和提交git之前rake assets:precompile ,然后推送到heroku。

CKEditor 4:未捕获的TypeError:无法读取null的属性’langEntries’

我正在使用Ruby gem for CK Editor( https://github.com/galetahub/ckeditor ),我收到此错误: Uncaught TypeError: Cannot read property ‘langEntries’ of null 这是代码中发生的地方: CKEDITOR.plugins.load = CKEDITOR.tools.override(CKEDITOR.plugins.load, function (a) { var d = {}; return function (b, c, e) { var i = {}, g = function (b) { a.call(this, b, function (a) { CKEDITOR.tools.extend(i, a); var b = [], l; for (l […]