froala

Setting up Froala WYSIWYG editor with CarrierWave and Rails

落爺英雄遲暮 提交于 2019-11-30 23:42:54
I've been trying to get Froala fully working with my rails set up. I have a type of blog like application with posts and images associated with each post. class Post < ActiveRecord::Base has_many :images accepts_nested_attributes_for :images class Image < ActiveRecord::Base belongs_to :post mount_uploader :image, ImageUploader I'm trying to figure out how to get this working with Froala. I can set the upload URL in the Froala config, but I have no idea what it should be. <script> $(function() { $('.selector').froalaEditor({ // Set the image upload URL. imageUploadURL: '????', imageUploadParams

Setting up Froala WYSIWYG editor with CarrierWave and Rails

血红的双手。 提交于 2019-11-30 17:46:25
问题 I've been trying to get Froala fully working with my rails set up. I have a type of blog like application with posts and images associated with each post. class Post < ActiveRecord::Base has_many :images accepts_nested_attributes_for :images class Image < ActiveRecord::Base belongs_to :post mount_uploader :image, ImageUploader I'm trying to figure out how to get this working with Froala. I can set the upload URL in the Froala config, but I have no idea what it should be. <script> $(function()