зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-06 19:55:50 +03:00
Version 0.1.0 🎉
Этот коммит содержится в:
17
lib/formtastic/inputs/quill_editor_input.rb
Обычный файл
17
lib/formtastic/inputs/quill_editor_input.rb
Обычный файл
@@ -0,0 +1,17 @@
|
||||
module Formtastic
|
||||
module Inputs
|
||||
class QuillEditorInput < Formtastic::Inputs::TextInput
|
||||
def to_html
|
||||
input_wrapping do
|
||||
label_html <<
|
||||
template.content_tag( :div, input_html_options.merge( class: 'quill-editor' ) ) do
|
||||
builder.hidden_field( input_name ) <<
|
||||
template.content_tag( :div, class: 'quill-editor-content' ) do
|
||||
object.send( method ).try :html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Ссылка в новой задаче
Block a user