-
Notifications
You must be signed in to change notification settings - Fork 67
Add EasyMDE upload feature to the documentation #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
version: '1.0' | ||
version: "1.0" | ||
license: community | ||
--- | ||
|
||
|
@@ -22,25 +22,36 @@ field :description, as: :easy_mde | |
The `easy_mde` field is hidden from the **Index** view. | ||
::: | ||
|
||
## Options | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IDK why this change is like this |
||
|
||
<Option name="`always_show`"> | ||
### Default behavior | ||
|
||
By default, the content of the `easy_mde` field is not visible on the `Show` view, instead, it's hidden under a `Show Content` link that, when clicked, displays the content. You can set `easy_mde` to always display the content by setting `always_show` to `true`. | ||
|
||
<!-- @include: ./../common/default_boolean_false.md--> | ||
</Option> | ||
## Options | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this one |
||
|
||
<Option name="`height`"> | ||
Sets the value of the editor | ||
|
||
#### Default | ||
### Default | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also this one |
||
|
||
`auto` | ||
|
||
#### Possible values | ||
### Possible values | ||
|
||
`auto` or any number in pixels. | ||
|
||
</Option> | ||
|
||
<Option name="`image_upload`"> | ||
If set to `true`, the editor will allow image uploads which will be uploaded using the direct uploads URL at `/rails/active_storage/direct_uploads` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should be a space between these two for the markdown to work. |
||
|
||
### Default | ||
|
||
`false` | ||
|
||
### Possible values | ||
|
||
`true` or `false`. | ||
|
||
</Option> | ||
|
||
<Option name="`spell_checker`"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this change. We use
standard
to lint and it uses single quote.