5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-06 10:26:57 +00:00

Merge branch 'usar-sutty-editor' into panel.sutty.nl

This commit is contained in:
f 2022-10-26 17:44:01 -03:00
commit dbd26ba56a
3 changed files with 12 additions and 2 deletions

View file

@ -6,6 +6,16 @@ module ActiveStorage
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do 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 # Asociar el archivo subido al sitio correspondiente. Cada sitio
# tiene su propio servicio de subida de archivos. # tiene su propio servicio de subida de archivos.
def update def update

View file

@ -198,7 +198,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
def allowed_attributes def allowed_attributes
@allowed_attributes ||= %w[style href src alt controls data-align data-multimedia data-multimedia-inner id @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 end
def allowed_tags def allowed_tags

View file

@ -496,7 +496,7 @@ class Site < ApplicationRecord
config.theme = design.gem unless design.no_theme? config.theme = design.gem unless design.no_theme?
config.description = description config.description = description
config.title = title config.title = title
config.url = url config.url = url(slash: false)
config.hostname = hostname config.hostname = hostname
end end