How to use trix - 2 common examples

To help you get started, we’ve selected a few trix examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Energy-Sparks / energy-sparks / app / javascript / packs / application.js View on Github external
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
// layout file, like app/views/layouts/application.html.erb

console.log('Hello World from Webpacker')

require("trix")
require("@rails/actiontext")
require('awesomplete')

import Trix from 'trix'

Trix.config.attachments.preview.caption = { name: false, size: false }

trix

A rich text editor for everyday writing

MIT
Latest version published 2 days ago

Package Health Score

92 / 100
Full package analysis

Popular trix functions