From a627a650fda4e22107245a3269465347bb778258 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 27 Jun 2026 21:14:48 +0200 Subject: Stage 7 click-testing fixes - aggregate: switch to shortcode syntax [aggregate ...]; fix paragraph wrapping by excising the shortcode and its surrounding

before sanitize, concatenating collection output outside sanitized content - page.rb: remove aggregate XML unwrapping from rewrite_links_in_body (no longer needed with shortcode approach) - rss builders: explicit CGI.escapeHTML on title/abstract; Builder 3.3.0 does not escape when target buffer is html_safe (ActionView default) - tinymce: disable menubar and promotion nag; add code plugin, remove paste plugin (built into TinyMCE 8 core); configure via admin_interface.js directly (config/tinymce.yml affects tinymce() helper only, not tinymce.init) --- app/models/page.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/models/page.rb') diff --git a/app/models/page.rb b/app/models/page.rb index 67db50a..e6baf20 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -232,11 +232,6 @@ class Page < ApplicationRecord links = links.reject { |l| l[:href] =~ /system\/uploads/ } locales = I18n.available_locales.reject {|l| l == :root} - if xml_doc.find("//p/aggregate")[0] - aggregate_tags = xml_doc.find("//aggregate") - aggregate_tags[0].parent.replace_with aggregate_tags[0] - end - links.each do |link| unless locales.include? link[:href].slice(1,2).to_sym unless link[:href] =~ /sytem\/uploads/ -- cgit v1.3