Skip to content

Commit

Permalink
Merge pull request #205 from taigaio/fix/checkbox-wysiwyg
Browse files Browse the repository at this point in the history
fix: enable checkbox in comments
  • Loading branch information
migonzalvar authored Apr 25, 2024
2 parents 72f8011 + 1784fc6 commit 908a371
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 908a371

Please sign in to comment.