Get started with trix CDN

MIT licensed

Trix is a library that simplifies rich text editing in web applications by providing a customizable and feature-rich textarea component.

Tags:
  • rich text
  • wysiwyg
  • editor

Stable version

Copied!

How to start using trix CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with trix CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/trix/2.0.10/trix.css">
</head>
<body>
  <div id="editor">
    <script src="https://cdn.cdnhub.io/trix/2.0.10/trix.js"></script>
    <script>
      document.addEventListener('DOMContentLoaded', () => {
        const editor = document.createElement('div');
        editor.id = 'trix-content';
        document.getElementById('editor').appendChild(editor);

        new Trix('trix-content');
      });
    </script>
  </div>
</body>
</html>

All versions