unmantained-activeadmin-plugins / activeadmin-wysihtml5 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Undefined mixin 'box-shadow'.
(in /Users/maxschulze/.rvm/gems/ruby-2.1.0/bundler/gems/activeadmin-wysihtml5-c499bc7ee00b/app/assets/stylesheets/activeadmin-wysihtml5/base.css.sass:22)
I saw this issue #10 here already, although some of the links are broken and it seems things have changed since then. How do we configure the S3 in the Formtastic mark-up for the editor? Is there a separate config I'm a missing.
Here is my current form code:
form do |f|
#Debugging
f.semantic_errors *f.object.errors.keys
f.inputs "Details" do
f.input :title, :required => true
f.input :short_description, :hint => "Shot description for the event that will be displayed as a thumbnail", :required => true
f.input :description, as: :wysihtml5
f.input :event_date
f.input :published, :label => "Published"
f.input :type, :required => true
f.input :category, :required => true
end
f.actions
end
Usando entrambe le gemme, quando carico la pagina di edit ho un errore in /assets/activeadmin-wysihtml5/base.js
riga 2976
TypeError: sel.nativeSelection is null
e nei tab diversi dal primo (ovvero quelli non inizialmente attivi) vengono duplicate le textarea in cui è attivo wysihtml5 ma il wysiwyg funziona solo nella seconda delle due (entrambe hanno lo stesso contenuto)
Is there an option to use paperclip with your rather ace editor? I already have that setup elsewhere in my site, seems a shame to install & configure a second attachment gem.
Hi. I seem to have some issues with installing this gem.
Added gem 'activeadmin-wysihtml5'
to my gemfile and did a bundle install
, get the message;
Could not find gem 'activeadmin-wysihtml5 (>= 0) ruby' in the gems available on this machine.
Then i tried adding the gem from this github repo which resulted in the following;
Could not find gem 'activeadmin-dragonfly (>= 0) ruby', which is required by gem 'activeadmin-wysihtml5 (>= 0) ruby', in any of the sources.
Am i doing anything wrong?
Cheers!
Edit: fixed it by adding dragonfly through git as well.
Edit 2: did not really fix it because now it get this :).
rake active_admin_editor:install:migrations
rake aborted!
Don't know how to build task 'active_admin_editor:install:migrations'
/home/johan/.rvm/gems/ruby-1.9.3-p327@rails329/bin/ruby_noexec_wrapper:14:in `eval'
/home/johan/.rvm/gems/ruby-1.9.3-p327@rails329/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
I'm trying to add classes to the blocks, to be able to have a <p class="question"></p>
, found the js to do so, but I can't find where to initialize it in ActiveAdmin.
I get this warning:
'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach). wysihtml5.min.js?body=1:176
In some browsers there is just the html view.
Could not update rangy (https://github.com/timdown/rangy) because log4javascript is not supported.
Any idea?
Thanks
Hi!
Maybe this is not an issue from the gem but I'd like your help cause I have been struggling with it some hours.
I'm using the gem on my activeadmin. It works perfectly when locally. When I click the Image button, the lightbox opens and a request to assets.json is made and assets are loaded o screen.
When I deploy my app on heroku, this is not working and I get the following error:
But, and I try to upload a new assets, it works:
Any idea?
Thanks,
Paulo
now it impossible,cause
https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5/blob/master/app/assets/javascripts/activeadmin-wysihtml5/base.js.coffee#L2
https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5/blob/master/lib/active_admin/wysihtml5/rails/engine.rb#L18
can we split js and include rules manually?
How can i set s3 storage for this gem?
Thanks
I'm wondering if there's a way to change text color in editor?
Seems that adding styles/class to elements does not work.
The other bug I have is when I am at the editor and click on the Image button which opens a pop-up. I currently have 5 assets and when I go the gallery section in the pop-up they push the insert button out of the view so I can't click on it.
I can attach an image if You want.
Hi,
Thank You for this great gem! I am trying to implement it into one of my current projects ,but I have some small (or maybe not so small) bugs to report.
The gem created an Assets menu in ActiveAdmin which is great, but when I try to add an asset I get a Forbiddenattributes error. I guess this is because I use the strong parameters gem. I tried to create an assets.rb file in the admin folder to configure strong parameters, but it doesn't seem to work.
This is my Assets.rb file:
"ActiveAdmin.register Assets do
controller do
def new
@asset = Asset.new
end
def create
@asset = Asset.new(asset_params)
@asset.save
render active_admin_template('index.html.arb'), :layout => false
end
def show
@asset = Asset.find_by_permalink(params[:id])
end
def edit
@asset = Asset.find_by_permalink(params[:id])
end
def update
@asset = Asset.find_by_permalink(params[:id])
@asset.update_attributes(asset_params)
render active_admin_template('edit.html.arb'), :layout => false
end
def destroy
@asset = Asset.find_by_permalink(params[:id])
@asset.destroy
render active_admin_template('index.html.arb'), :layout => false
end
def asset_params
asset_params = params.require(:asset).permit(:asset,:storage,:retained_storage,:storage_url)
end
end
end "
The above approach works on other content assets.
Any idea why it doesn't with assets?
Love this gem, but is there a better maintained alternative?
I found https://github.com/ejholmes/active_admin_editor, but I don't like it as much as it's not as powerful.
Does this gem version work with the current active admin version?
thanks
I'm getting this error in production but not in development. Using rails 4.1.4 and Active Admin 1.0.0.pre.
Any idea?
When I add a class to a tag using the HTML view (e.g. p class="lead") and save, it applies the styling. But if I go back in to edit the file again, the custom class is automatically removed.
I have conflicts with current model "assets" because i already have such table. I think it is a good idea to use prefix for table name like 'wysihtml5' or other
When viewing the gallery from the wysiwyg image insert popup:
The assets are fetched from admin/index - which is a paginated view i guess. So we only get the first x items.
with pagination would be ace. a search facility would be completely awesome : )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.