Get started with pell CDN

MIT licensed

Pell: library for real-time textarea modification.

Tags:
  • text editor
  • editor
  • rich text
  • wysiwyg
  • contenteditable

Stable version

Copied!

How to start using pell CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with pell CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pell@1.0.6/dist/pell.css">
  <script src="https://cdn.cdnhub.io/pell/1.0.6/pell.min.js"></script>
  <style>
    #editor { width: 500px; height: 300px; border: 1px solid #ccc; }
  </style>
</head>
<body>
  <div id="editor"></div>
  <button id="save">Save</button>

  <script>
    const editor = new Pell({
      selector: '#editor',
      content: 'Hello, world!',
      style: 'p { color: #333 }',
    });

    document.getElementById('save').addEventListener('click', () => {
      const content = editor.getContent();
      console.log('Content:', content);
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions