Do html cleanup directly on content fields too (not only on finished article).
This commit is contained in:
parent
d8ad2b1b2f
commit
4b6496c545
2 changed files with 7 additions and 0 deletions
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
class Signature < ApplicationModel
|
class Signature < ApplicationModel
|
||||||
include ChecksLatestChangeObserved
|
include ChecksLatestChangeObserved
|
||||||
|
include ChecksHtmlSanitized
|
||||||
|
|
||||||
has_many :groups, after_add: :cache_update, after_remove: :cache_update
|
has_many :groups, after_add: :cache_update, after_remove: :cache_update
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
|
|
||||||
|
sanitized_html :body
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
class TextModule < ApplicationModel
|
class TextModule < ApplicationModel
|
||||||
include ChecksClientNotification
|
include ChecksClientNotification
|
||||||
|
include ChecksHtmlSanitized
|
||||||
|
|
||||||
validates :name, presence: true
|
validates :name, presence: true
|
||||||
validates :content, presence: true
|
validates :content, presence: true
|
||||||
|
|
||||||
|
sanitized_html :content
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
load text modules from online
|
load text modules from online
|
||||||
|
|
Loading…
Reference in a new issue