You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to specify id instead of the default one from name, it won't work on the js part.
For example
<%= kindeditor_tag "name", value, input_html: {id: "my_id"} %>
In the generate html, the id for text_area is "my_id", but the js, it still use the default id "#name".
The fix should be in the rails_kindeditor/lib/rails_kindeditor/helper.rb file, change line 9 to
output << javascript_tag(js_replace(input_html[:id], options))
The text was updated successfully, but these errors were encountered:
If we want to specify id instead of the default one from name, it won't work on the js part.
For example
<%= kindeditor_tag "name", value, input_html: {id: "my_id"} %>
In the generate html, the id for text_area is "my_id", but the js, it still use the default id "#name".
The fix should be in the rails_kindeditor/lib/rails_kindeditor/helper.rb file, change line 9 to
output << javascript_tag(js_replace(input_html[:id], options))
The text was updated successfully, but these errors were encountered: