Questions tagged [actiontext]

148 questions
3
votes
2 answers

Can't update Action Text Rich Text in Rails

I have a model with the following attribute: has_rich_text :content However, I can't save data to it and there are no errors. I also can't create new records with a content attribute. In console: irb(main):011:0> a.content => #
navi
  • 193
  • 2
  • 12
3
votes
1 answer

Video HTML tag not showing in Rails

When I preview a blob in _blob.html.erb, I can preview images, but I'm having difficulty embedding video. The
3
votes
2 answers

Can't render youtube embed iframe with rails 6 actiontext

I have setup a custom embed model so I can add things like instagram or youtube embeds to actiontext content on my site. It's working correctly for instagram embeds, but not youtube. As a reference, the youtube embed code I want to display is:…
JeremyKirkham
  • 1,025
  • 2
  • 11
  • 22
3
votes
1 answer

ActionText gif attachment converts to photo when submitting rails form

So I've been trying to fix this for a while now and I've had no luck in doing so. I have a model Posts that has_rich_text: body class Post < ApplicationRecord extend FriendlyId friendly_id :title, use: :slugged has_rich_text :body …
Faisal Choura
  • 170
  • 1
  • 8
3
votes
1 answer

Issue with non-image attachments for ActionText

I am trying to deal with the issue of uploading files which are not images with Action Text and make them functional for a user viewing the post. E.g. if there is a PDF uploaded when creating some content, the user should be able to download. Right…
JoshuaESummers
  • 493
  • 2
  • 7
  • 24
3
votes
0 answers

Positioning images within trix wysiwyg editor

Is there a way to position images within the Rails 6 ActiveText Trix editor when writing content? If you upload an image, it is automatically placed in the middle of the page. I can change this in the CSS file, but when writing many "blogs", how can…
3
votes
1 answer

Rails 6 Action Text - Form Validation Errors

I'm using Action Text for a Web CRUD I've created. The form has two main attributes: title: Título content: Contenido Here's my form: <%= simple_form_for(@announcement) do |f| %> <%= f.error_notification %> <%= f.error_notification message:…
Luis de Haro
  • 711
  • 1
  • 7
  • 28
3
votes
0 answers

How to persist custom attributes with Rails 6 ActionText

Ruby 2.6.3 / Rails version 6.0.0 Hello ! I implemented ActionText (using Trix editor) in my rails 6 application, where I use elements with custom tags and attributes like: My Word I found a way to…
Lori
  • 31
  • 1
2
votes
2 answers

Rails 7 - rich text not showing attached media content

I'm working on a Rails 7 app in which I use ActionText/Trix editor. I'm using Amazon AWS / S3 for storing files. I have verified and can see that media files gets uploaded to S3, but for some reason they don't gets shown (neither in the editor when…
Anders
  • 2,903
  • 7
  • 58
  • 114
2
votes
1 answer

Capistrano can not find action text css files whel precompilqing assets

I am using capistrano to deploy a rails 7.0.4.3 app. When I run cap production deploy the service stops at this step: deploy:assets:precompile 01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile producing this error 01 rake aborted! …
CJG
  • 457
  • 2
  • 17
2
votes
0 answers

Action Text [Rails 7 Error] vanishing field

Trying to isolate an error I'm getting with the basic setup of a new blog site using the below just so I can test Action_Text for the create blog section. Every-time i create the below- it works great until i change the <%= form.text_area :content…
Karl
  • 21
  • 3
2
votes
0 answers

Add Attributes to ActionText / Trix Attachment

When adding an attachment to my editor I want to add attributes. The core editor does something similar with Image attachments where you can add Captions. How can I add the attributes? How Can I access them when rendering the attachment in the…
Will
  • 4,498
  • 2
  • 38
  • 65
2
votes
0 answers

Customise the defaults on Rails ActionText Trix Editor

Is there anyway of changing the defaults on the Trix editor? For example; I might not need the undo and redo. Currently facing an issue where i'm wanting to change the default Rails ActionText (Trix) editor. I've found resources online for adding a…
2
votes
1 answer

ROR action-text. How to add text-align options to trix rich-text editor?

Im working on a project in ruby on rails (rails 6), that include a blog working with action-text and trix. I have to add few option to my rich-text editor and there is one that block me for few days. I added buttons in my trix toolbar, for add more…
Joachim
  • 111
  • 8
2
votes
0 answers

Active Storage service for Action Text attachments

Rails 6.1 added support for multiple Action Storage services. It is now possible to assign different services to attributes. has_one_attached :image_1, service: :aws has_one_attached :image_2, service: :gcloud Action Text uses default Action…
Sharjeel
  • 15,588
  • 14
  • 58
  • 89
1 2
3
9 10