Skip to content

Commit

Permalink
fix: enable checkbox in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Apr 25, 2024
1 parent 29e29a1 commit 1784fc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/modules/components/wysiwyg/wysiwyg.service.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ class WysiwygService
relativePaths: (html) ->
el = document.createElement('html')

el.innerHTML = @sce.trustAsHtml(html) || ''
window._extraValidHtmlElments = {input: true}
window._extraValidAttrs = {checked: true}

el.innerHTML = @sce.getTrustedHtml(html) || ''

el.querySelectorAll('a').forEach (link) =>
href = link.getAttribute('href')
Expand Down Expand Up @@ -104,7 +107,7 @@ class WysiwygService
window._extraValidHtmlElments = {input: true}
window._extraValidAttrs = {checked: true}

el.innerHTML = @sce.trustAsHtml(html) || ''
el.innerHTML = @sce.getTrustedHtml(html) || ''
regex = /#_taiga-refresh=([a-zA-Z]*\:\d+)/

links = {
Expand Down

0 comments on commit 1784fc6

Please sign in to comment.