Git Product home page Git Product logo

activeadmin_froala_editor's People

Contributors

blocknotes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

activeadmin_froala_editor's Issues

activeadmin_froala_editor was resolved to 0.1.3, which depends on

Bundler could not find compatible versions for gem "activeadmin":
In snapshot (Gemfile.lock):
activeadmin (= 2.6.0)

In Gemfile:
activeadmin

activeadmin_froala_editor was resolved to 0.1.3, which depends on
  activeadmin (~> 1.0)

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Multiple Editor on a page

Hi,

I have an ActiveAdmin page like this :

form do |f|
    f.inputs "En-tête" do
      f.input :title
      f.input :banner
      f.input :logo
      f.input :description, as: :froala_editor, input_html:
            { rows: 300,
              data:
             { options:
              { toolbarButtons: ["fullscreen", "bold", "italic",
                                 "underline", "strikeThrough", "subscript", "superscript",
                                 "|", "fontFamily", "fontSize", "color", "inlineStyle",
                                 "paragraphStyle", "|", "paragraphFormat", "align",
                                 "formatOL", "formatUL", "outdent", "indent", "quote",
                                 "-", "insertLink", "insertImage", "insertVideo", "insertFile",
                                 "insertTable", "|", "emoticons", "specialCharacters", "insertHR",
                                 "selectAll", "clearFormatting", "|", "print", "spellChecker", "help",
                                 "html", "|", "undo", "redo"],
                imageUploadURL: "/admin_file/upload.json",
                imageUploadMethod: "POST" } } }
      f.input :video_link
      # f.input :open , as: :boolean
    end

    f.inputs "Prix" do
      f.has_many :rewards do |price|
        price.input :name
        price.input :picto
        price.input :description, as: :froala_editor
        price.input :quantity
      end
    end
end

And the second one doesn't work,can you help me ? It doesn't working with partials.

Thank's a lot.

compatible with latest version of ActiveAdmin

Hi,

Just wondering if there is any plan to update to make compatible with lastest version of ActiveAdmin.

Currently when I try to install the gem I get the below:

Resolving dependencies....
Bundler could not find compatible versions for gem
"activeadmin":
  In snapshot (Gemfile.lock):
    activeadmin (= 2.0.0.alpha)

  In Gemfile:
    activeadmin

activeadmin_froala_editor was resolved to 0.1.3, which
depends on
      activeadmin (~> 1.0)

Running `bundle update` will rebuild your snapshot from scratch,
using only the gems in your Gemfile, which may resolve the conflict.

Precompiling assets failed on Heroku only

{this.markdown.refresh(e)},plugin:"markdown"}),kt});
        61376 (function () {
        61377   'use strict'
        61378 
        61379   // --- functions -------------------------------------------------------------
        61380   function initFroalaEditors() {
        61381     $('[data-aa-froala-editor]').each(function () {
        61382       if (!$(this).hasClass('froala-editor--active')) {
           =>         let name = $(this).attr('name');
        61384         if (name) {
        61385           let options = {
        61386             quickInsertButtons: ['table', 'ol', 'ul', 'hr'],
        61387             requestHeaders: {
        61388               'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
        61389             },
        61390             toolbarButtons: {
        61391               moreText: {
       ==
       /app/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result'
       /app/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:221:in `run_uglifyjs'
       /app/vendor/bundle/ruby/2.7.0/gems/uglifier-4.2.0/lib/uglifier.rb:166:in `compile'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:53:in `call'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/uglifier_compressor.rb:28:in `call'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:134:in `block in find'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:133:in `each'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:133:in `find'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
       /app/vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
       /app/vendor/bundle/ruby/2.7.0/gems/airbrake-12.0.0/lib/airbrake/rake.rb:17:in `execute'
       Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.

I am trying to use this gem but am getting this error. On developement everything works however deployment on Heroku fails. It looks like there is an issue with Uglifier (on line where let name = ... is defined) however I am not sure how to fix this. Any idea?

How to add license key?

If I used the as: :froala_editor configuration within AA then I'm left to assume that I have to also pass the key as an option like so:

  f.input :content, as: :froala_editor, input_html: { data: { key: Figaro.env.FROALA_KEY } }

Although the key does show up when I inspect the element, the license warning doesn't go away in production.

Should I simply add a class to the text area input and then use jquery config to set this key upon initialization? At least then the key can be somewhat hidden in the minified js...

If there is some other way, please let me know.

Is this gem unmaintained?

Just need to know if there are plans for this gem to be updated so it will work with a newer version of active-admin.

Thank you for the great work here.

Setting up the image upload with S3

Hi, this is avery neat active admin add-on. But we can not figure out how to change the upload location and configure this for S3 uploads. Do you have a working example of how this can be done with active admin froala editor and S3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.