Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add journal formatter to wiki_page

Mir Bhatia522cd0a8ea89
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 500e8f2aa73..9d5f58bcb74 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -54,6 +54,8 @@ class WikiPage < ApplicationRecord
acts_as_journalized
+ register_journal_formatted_fields(:wiki_diff, 'text')
+
attr_accessor :redirect_existing_links
validates :title, presence: true