提交 e473eb39 编写于 作者: U Uģis Ozols 提交者: George Claghorn

Polish the Action Text guide [ci skip]

上级 3eb1f1dd
...@@ -57,13 +57,13 @@ require("trix") ...@@ -57,13 +57,13 @@ require("trix")
require("@rails/actiontext") require("@rails/actiontext")
``` ```
2. The`trix` stylesheet should be imported into `actiontext.scss`. 2. The `trix` stylesheet should be imported into `actiontext.scss`.
```scss ```scss
@import "trix/dist/trix"; @import "trix/dist/trix";
``` ```
Additionally this `actiontext.scss` file should be imported into your stylesheet pack. Additionally, this `actiontext.scss` file should be imported into your stylesheet pack.
``` ```
// application.scss // application.scss
...@@ -96,7 +96,7 @@ Then refer to this field in the form for the model: ...@@ -96,7 +96,7 @@ Then refer to this field in the form for the model:
<% end %> <% end %>
``` ```
And finally display the sanitized rich text on a page: And finally, display the sanitized rich text on a page:
```erb ```erb
<%= @message.content %> <%= @message.content %>
...@@ -134,7 +134,7 @@ On installation, Action Text will copy over a partial to ...@@ -134,7 +134,7 @@ On installation, Action Text will copy over a partial to
} }
``` ```
2. Take that attachable_sgid and ask your frontend to insert it in rich text content using an <action-text-attachment> tag: 2. Take that attachable_sgid and ask your frontend to insert it in rich text content using an `<action-text-attachment>` tag:
```html ```html
<action-text-attachment sgid="BAh7CEkiCG…"></action-text-attachment> <action-text-attachment sgid="BAh7CEkiCG…"></action-text-attachment>
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册