Skip to content

Commit 01b16b8

Browse files
Remove superfluous code already run in the wrapped textarea
1 parent c85472a commit 01b16b8

File tree

1 file changed

+0
-11
lines changed
  • lib/open_project/text_formatting/formats/markdown

1 file changed

+0
-11
lines changed

lib/open_project/text_formatting/formats/markdown/helper.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ def initialize(view_context)
3838
end
3939

4040
def wikitoolbar_for(field_id, **context)
41-
# Hide the original textarea
42-
view_context.content_for(:additional_js_dom_ready) do
43-
js = <<-JAVASCRIPT
44-
var field = document.getElementById('#{field_id}');
45-
field.style.display = 'none';
46-
field.removeAttribute('required');
47-
JAVASCRIPT
48-
49-
js.html_safe
50-
end
51-
5241
# Pass an optional resource to the CKEditor instance
5342
resource = context.fetch(:resource, {})
5443
helpers.angular_component_tag "opce-ckeditor-augmented-textarea",

0 commit comments

Comments
 (0)