[29457] Fix escaping of manual table rules

We handle our own HTML table implementation instead of turndown's, which
doesn't exhibit the decoding of HTML entities.

https://github.com/opf/commonmark-ckeditor-build/pull/36
https://community.openproject.com/wp/29457
pull/7189/head
Oliver Günther 6 years ago
parent 2e8db3636b
commit 980ba2533d
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      app/assets/javascripts/vendor/ckeditor/ckeditor.js
  2. 2
      app/assets/javascripts/vendor/ckeditor/ckeditor.js.map
  3. 6
      spec/features/wysiwyg/tables_spec.rb

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -53,7 +53,7 @@ describe 'Wysiwyg tables',
# Edit table
tds = editable.all('.table.ck-widget td')
values = %w(h1 h2 c1 c2)
values = %w(h1 h&2 c1 c&2)
expect(tds.length).to eq(4)
tds.each_with_index do |td, i|
@ -70,9 +70,9 @@ describe 'Wysiwyg tables',
within('#content') do
expect(page).to have_selector('table td', text: 'h1')
expect(page).to have_selector('table td', text: 'h2')
expect(page).to have_selector('table td', text: 'h&2')
expect(page).to have_selector('table td', text: 'c1')
expect(page).to have_selector('table td', text: 'c2')
expect(page).to have_selector('table td', text: 'c&2')
end
end

Loading…
Cancel
Save