Questions tagged [trix]
Trix is a WYSIWYG editor for writing messages, comments, articles, and lists—the simple documents most web apps are made of. It features a sophisticated document model, support for embedded attachments, and outputs terse and consistent HTML.
trix
187
questions
0
votes
0
answers
21
views
Rails 7 actiontext embedded images
Using trix 2.1.2, Rails 7.1.3.4, I'm able to create a message with an embedded image (using google for active storage) and it displays when I first create the message and also when I "show" ...
0
votes
1
answer
47
views
+200
How to insert text into Trix editor after menu button is clicked?
I want to add custom button to Trix editor that would allow a user to enter url of video (YouTube, Vimeo) and then new element will be inserted at current cursor position. The video ID would be ...
0
votes
0
answers
18
views
Issue with rails hotwire trix textarea resize
im trying to create a textarea resize grippie more or less like the SO for a trix textarea with rais stimulus so i set this controller below
the issue is when i pull down the textarea the textarea ...
0
votes
1
answer
21
views
trix autofocus issue on expreessJS/ejs
I'm building a blog, with NodeJS/Express, and use Trix editor to handle writing and editing the blog posts. while attempting to edit a post trix rich text area automatically fouces; not allowing any ...
0
votes
0
answers
29
views
Rails 7 - Adding textAttributes to trix affects the paste functionality
I'm trying to add a highlight button to Trix editor and it works ... but on paste text, it also applies the highlight. Looks like the tagNamespan It's used for all the pasted text and also affects the ...
1
vote
1
answer
34
views
Rails ActionText Trix support for embedded attachments with expiring url? urls_expire_in
I tried using Trix in a project with ActiveStorage urls_expire_in 30 min option. After adding an embedded/inline image in Trix, a temporary url is saved in the body content (with a redirect and ...
1
vote
1
answer
118
views
I'm trying to add the Trix editor with ActionText without Webpacker into my Rails app
I'm trying to add the Trix editor with ActionText into my Rails app, but I'm not using Webpacker. I've been following the official documentation, but it seems to assume the use of Webpacker. Can ...
0
votes
0
answers
64
views
How in a crud page to make trix editor when form is uploaded by click?
In laravel 10 / livewire 3 app I have a crud page where editor with form was shown when
$updateMode var got 'edit' value assigned :
<?php
namespace App\Livewire\Admin;
...
use App\Livewire\Forms\...
0
votes
0
answers
29
views
Why editing data in trix-editor of livewire page rendor method is called again?
Reading this https://devdojo.com/tnylea/laravel-livewire-trix-editor-component article
I added trix-editor on laravel 10 / livewire 3 app / kubuntu 22.04 / Google Chrome
Version 123 / trix 1.3.1 . I ...
0
votes
1
answer
103
views
Confiure trix editor to not generate header style tags
I am using 'trix-rails' gem in a Ruby on Rails project. I need to make the project abide to no unsafe-inline CSP, but I have problems with the two style tags generated by trix in the header.
I am ...
1
vote
1
answer
152
views
Uncaught SyntaxError: The requested module 'trix' does not provide an export named 'default' (at youtube.js:1:8) in rails 7.1 when trying to edit trix
I am currently facing an issue when I try to configure the actiontext editor in rails 7.1.3 to handle YouTube videos embedded.
Currently running rails 7.1.3, ruby 3.2.0, and using importmaps.
(...
0
votes
0
answers
49
views
Why image tag is cut off in trix editor component of livewire app m?
Reading this https://devdojo.com/tnylea/laravel-livewire-trix-editor-component article
I added trix-editor on laravel 10 / livewire 3 app. It works but until image is selected into trix editor - ...
0
votes
0
answers
77
views
Is it possible to add an attachment element without the surrounding HTML tags to Trix editor
Im trying to add an element to my trix editor with specific classes. As far as im aware this can only be done using the attachment like so:
var attachment = new Trix.Attachment({ content: '<a ...
0
votes
0
answers
31
views
Error when adding image attachment to action_text rails active_storage
The form is displayed correctly
But when I try to load in the form description field, I get errors in the browser console
http://localhost:5000/rails/active_storage/direct_uploads
Uncaught Error: ...
0
votes
0
answers
20
views
How to found a dist folder in trix
Why can't I find the "dist" folder in trix.zip?
I was watching a tutorial about trix, and he had a dist folder, but after I downloaded trix from github, I cant find the dist folder. What ...