Gui improvements and ideas
This commit is contained in:
parent
3f4c7d17bf
commit
2ae0b55e42
54 changed files with 639 additions and 237 deletions
18
config/initializers/action_text.rb
Normal file
18
config/initializers/action_text.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
ActionText::ContentHelper.allowed_attributes ||= []
|
||||
ActionText::ContentHelper.allowed_attributes += [
|
||||
"target", # We set target="_blank" on external links
|
||||
"abbr",
|
||||
"alt",
|
||||
"cite",
|
||||
"class",
|
||||
"datetime",
|
||||
"height",
|
||||
"href",
|
||||
"lang",
|
||||
"name",
|
||||
"src",
|
||||
"title",
|
||||
"width",
|
||||
"xml:lang",
|
||||
]
|
||||
ActionText::ContentHelper.allowed_attributes += ActionText::Attachment::ATTRIBUTES
|
||||
|
|
@ -10,4 +10,4 @@ Rails.application.config.assets.paths << Rails.root.join('node_modules/bootstrap
|
|||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||
# folder are already added.
|
||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
||||
Rails.application.config.assets.precompile += %w( actiontext.css )
|
||||
|
|
|
|||
2
config/initializers/mime_types.rb
Normal file
2
config/initializers/mime_types.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Add this line to config/initializers/mime_types.rb in your Rails application
|
||||
Mime::Type.register "application/vnd.openxmlformats-officedocument.wordprocessingml.document", :docx
|
||||
Loading…
Add table
Add a link
Reference in a new issue