-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update ContentAttachment so that it works with "content" attributes
this makes it possible for an application to embed markup in a document that would otherwise be undesirable or expensive to process. For example, an incoming email may include a complicated bit of DOM in a quote, and while you don't want to have to process and rewrite it, you also don't want to discard it; the content attribute of ContentAttachment allows you to make that work.
- Loading branch information
Showing
4 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
actiontext/app/views/action_text/attachables/_content_attachment.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<figure class="attachment attachment--content"> | ||
<%= content_attachment.attachable %> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters