Questions tagged [actiontext]

148 questions
0
votes
0 answers

Rails 7, text Editor with Cloudinary like TinyMCE

does anyone know of a text editor like TinyMCE that would work with Cloudinary? I should mention that the Cloudinary plugin for TinyMCE is no longer maintained and doesn't work with Rails 7, as I have tested it. Unless there's a possibility with…
sabrina
  • 1
  • 2
0
votes
0 answers

ActionText saving rich content, but not uploading embeds

ActionText/Trix will store rich text, but will not process/store embeds either locally or on S3. When I drag a file into The progress bar on drag/drop does not progress, but the image shows up and the filename and file size are accurate, as seen…
John Athayde
  • 580
  • 2
  • 13
0
votes
0 answers

Rails 7 seed image inside rich text

on rails 7 with active storage In a model Lesson, I have an rich text: description class Lesson < ApplicationRecord has_rich_text :description I try to seed 'description' from a previous application where description was html. this html content…
Denis Bolomier
  • 350
  • 2
  • 19
0
votes
1 answer

Active-storage : Uncaught Error: Direct upload failed: Error creating Blob for "example.png". Status: 500, POTENTIAL CORS ERROR?

I have recently added rich-text features to my blog on my portfolio website, most of which works fine (I followed a GoRails tutorial, as was lazy). The issue I am facing is that image uploads work in development, and not in production. I am using an…
0
votes
1 answer

Rails ActionText embends 404

Moved app from heroku to render. Everthing seems to be working fine onces ENV where set correctly. However my actionText embeds from heroku seem to be broken. Any new embeds on render are fine. I have RAILS_MASTER_KEY = the value in credientals.yml…
0
votes
1 answer

Why are hyperlinks getting added to the beginning of the content box in a rails actiontext instance?

I'm working on a rails app that is using ActionText and trix for rich text content. I noticed that when I add multiple hyperlinks to an instance of trix, the first one works as expected, the others get prepended to the content that is already there…
ilrock
  • 573
  • 8
  • 24
0
votes
0 answers

Why the automated deployment from GitHub to DigitalOcean, will change the image urls in my RubyOnRails app?

I have Ruby On Rails (version 6) app deployed in DigitalOcean, I am using ActionText for the images, the images are stored in DOSpaces. I display them in the following way in file _blob.html.erb <%= image_tag…
0
votes
1 answer

How to avoid N+1 when displaying an instance with many action_text fields in Rails?

Rails provides the with_all_rich_text scope to eager load rich_text associated with a collection of active_record objects. It does not provide a method to preload rich text fields at the instance level however, causing N+1 queries. I've added a…
Goulven
  • 777
  • 9
  • 20
0
votes
0 answers

ActionText is displaying with html tags when displayed in rails 6

I tried looking around but couldnt find an answer to this. The only post I found that resembles my problem is here: Action Text displaying html tags However when I try to use the sanetize method I just get another error "no implicit conversion of…
user2023608
  • 470
  • 5
  • 18
0
votes
0 answers

Rails 7: ActionText doesn't work. A field of rich_text_area isn't clickable

A have an error in simple form with field 'rich_text_area'. I typed command rails action_text:install. And I added a migration for already existed Model: class MigrateCommentBodyToActionText < ActiveRecord::Migration[7.0] include…
Elena
  • 11
  • 3
0
votes
1 answer

action text images attachments woking locally but not on production

my question is similar to this one but my hardware is different. I'm working on a Ubuntu dedicated private server (not on AWS) I've implemented action_text in my Rails app, and locally (in development) it works fine. But in production, images…
OUIC
  • 61
  • 5
0
votes
1 answer

How to prevent Rails HTML sanitizer from removing style attribute in a template?

I'm converting ActionText HTML into PDF using Prawn-Markup. I need large images to be scaled down (not resized or cropped), which requires setting the width in the style attribute, which Prawn-Markup then forwards to Prawn. Unfortunately, the style…
Goulven
  • 777
  • 9
  • 20
0
votes
0 answers

Action text content displays incorrectly

ActionText content in my Rails project appears like this This is how I am trying to render it on the erb file <%= item.content %> Item is a model, which looks like class Item < ApplicationRecord has_rich_text :content end I am following the…
felix
  • 11,304
  • 13
  • 69
  • 95
0
votes
1 answer

Adding alignment buttons to Trix Editor (ActionText Ruby on Rails)

I followed this tutorial to add alignment options to Trix text editor and the editor in my app works similar to the repository referenced by the tutorial. Meaning, clicking the align right button, will align text to the right, but when I save the…
Gogamar
  • 115
  • 4
0
votes
1 answer

ActionText not being stored on create

I'm building Rails app where I want administrators to be able to use ActionText to create rich text contents. I've set up the app according to manual, Image attachments work, but rich texts dont, I can't see them in my local DB. What is wrong, what…