Remove superfluous code already run in the wrapped textarea

This commit is contained in:
Oliver Günther
2026-03-20 11:24:34 +01:00
parent c85472a1fa
commit 01b16b809a
@@ -38,17 +38,6 @@ module OpenProject::TextFormatting::Formats
end
def wikitoolbar_for(field_id, **context)
# Hide the original textarea
view_context.content_for(:additional_js_dom_ready) do
js = <<-JAVASCRIPT
var field = document.getElementById('#{field_id}');
field.style.display = 'none';
field.removeAttribute('required');
JAVASCRIPT
js.html_safe
end
# Pass an optional resource to the CKEditor instance
resource = context.fetch(:resource, {})
helpers.angular_component_tag "opce-ckeditor-augmented-textarea",