mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-25 23:11:49 +00:00
Merge branch 'usar-sutty-editor' into panel.sutty.nl
This commit is contained in:
commit
dbd26ba56a
3 changed files with 12 additions and 2 deletions
|
@ -6,6 +6,16 @@ module ActiveStorage
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
alias_method :original_show, :show
|
||||
|
||||
# Permitir incrustar archivos subidos (especialmente PDFs) desde
|
||||
# otros sitios.
|
||||
def show
|
||||
original_show.tap do |s|
|
||||
response.headers.delete 'X-Frame-Options'
|
||||
end
|
||||
end
|
||||
|
||||
# Asociar el archivo subido al sitio correspondiente. Cada sitio
|
||||
# tiene su propio servicio de subida de archivos.
|
||||
def update
|
||||
|
|
|
@ -198,7 +198,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
|||
|
||||
def allowed_attributes
|
||||
@allowed_attributes ||= %w[style href src alt controls data-align data-multimedia data-multimedia-inner id
|
||||
name rel target referrerpolicy].freeze
|
||||
name rel target referrerpolicy class].freeze
|
||||
end
|
||||
|
||||
def allowed_tags
|
||||
|
|
|
@ -496,7 +496,7 @@ class Site < ApplicationRecord
|
|||
config.theme = design.gem unless design.no_theme?
|
||||
config.description = description
|
||||
config.title = title
|
||||
config.url = url
|
||||
config.url = url(slash: false)
|
||||
config.hostname = hostname
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue