Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions docs/3.0/fields/easy_mde.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '1.0'
version: "1.0"
Copy link
Contributor

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.

license: community
---

Expand All @@ -22,25 +22,36 @@ field :description, as: :easy_mde
The `easy_mde` field is hidden from the **Index** view.
:::

## Options
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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`
Copy link
Contributor

Choose a reason for hiding this comment

The 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`">
Expand Down