mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Remove superfluous code already run in the wrapped textarea
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user