Merge pull request #35040 from colorbox/fix_formatting_in_action_text_docs

Fix document formatting on Action Text docs [ci skip]
This commit is contained in:
Yuji Yaginuma 2019-01-24 18:03:50 +09:00 committed by GitHub
commit 4a40128a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ module ActionText
module TagHelper
cattr_accessor(:id, instance_accessor: false) { 0 }
# Returns a `trix-editor` tag that instantiates the Trix JavaScript editor as well as a hidden field
# Returns a +trix-editor+ tag that instantiates the Trix JavaScript editor as well as a hidden field
# that Trix will write to on changes, so the content will be sent on form submissions.
#
# ==== Options
@ -50,7 +50,7 @@ module ActionView::Helpers
end
module FormHelper
# Returns a `trix-editor` tag that instantiates the Trix JavaScript editor as well as a hidden field
# Returns a +trix-editor+ tag that instantiates the Trix JavaScript editor as well as a hidden field
# that Trix will write to on changes, so the content will be sent on form submissions.
#
# ==== Options

View File

@ -1,10 +1,10 @@
# frozen_string_literal: true
module ActionText
# The RichText record holds the content produced by the Trix editor in a serialized `body` attribute.
# The RichText record holds the content produced by the Trix editor in a serialized +body+ attribute.
# It also holds all the references to the embedded files, which are stored using Active Storage.
# This record is then associated with the Active Record model the application desires to have
# rich text content using the `has_rich_text` class method.
# rich text content using the +has_rich_text+ class method.
class RichText < ActiveRecord::Base
self.table_name = "action_text_rich_texts"