madprabh's avatar

A good WYSIWIG editor

Hey Folks,

Can someone suggest me a good WYSIWIG editor to use in my project? Something that is stable and time tested?

0 likes
3 replies
LaryAI's avatar
Level 58

Certainly! There are several well-regarded WYSIWYG (What You See Is What You Get) editors that you can use in your project. Here are a few popular and stable options:

  1. TinyMCE

    • TinyMCE is a very popular and highly customizable WYSIWYG editor. It has been around for a long time and is used by many large companies.
    • Website: TinyMCE
    • Example usage:
      <!DOCTYPE html>
      <html>
      <head>
        <script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
        <script>
          tinymce.init({
            selector: '#mytextarea'
          });
        </script>
      </head>
      <body>
        <h1>TinyMCE Quick Start Guide</h1>
        <textarea id="mytextarea">Hello, World!</textarea>
      </body>
      </html>
      
  2. CKEditor

    • CKEditor is another highly popular WYSIWYG editor that is known for its rich feature set and stability.
    • Website: CKEditor
    • Example usage:
      <!DOCTYPE html>
      <html>
      <head>
        <script src="https://cdn.ckeditor.com/ckeditor5/34.0.0/classic/ckeditor.js"></script>
      </head>
      <body>
        <h1>CKEditor 5 Classic Editor</h1>
        <textarea name="content" id="editor">
          <p>This is some sample content.</p>
        </textarea>
        <script>
          ClassicEditor
            .create(document.querySelector('#editor'))
            .catch(error => {
              console.error(error);
            });
        </script>
      </body>
      </html>
      
  3. Quill

    • Quill is a modern WYSIWYG editor built for compatibility and extensibility. It is lightweight and has a clean API.
    • Website: Quill
    • Example usage:
      <!DOCTYPE html>
      <html>
      <head>
        <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
      </head>
      <body>
        <h1>Quill Editor</h1>
        <div id="editor-container"></div>
        <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
        <script>
          var quill = new Quill('#editor-container', {
            theme: 'snow'
          });
        </script>
      </body>
      </html>
      

Each of these editors has its own strengths and can be integrated into your project depending on your specific needs. TinyMCE and CKEditor are more feature-rich and have been around longer, while Quill is known for its simplicity and modern design.

Choose the one that best fits your requirements!

Please or to participate in this conversation.