mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-26 10:11:52 +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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue