How Plugins Enhance The WYSIWYG Editing Experience


Image by JK_Studio from Pixabay

WYSIWYG editors are one of the core components of any content management system (CMS). A well-coded, feature-filled WYSIWYG HTML editor can distinguish between a CMS users love and one they can’t stand. 

While all WYSIWYG editors have a set of basic functionality, the power of plugins enhances the editing experience. Plugins allow WYSIWYG editors to do more and provide advanced features to users. 

Therefore it is important to look at some of the plugins that make some WYSIWYG editors rise above others. It’s also essential to check how easily you can add these plugins. 

In this article, we’ll be taking you through the world of WYSIWYG editors and plugins so that you can take your users’ editing to the next level. 

Plugin Libraries

Froala provides numerous plugins available for download on their website:

A great WYSIWYG editor should provide numerous plugins that are easy to include and use. Because the more plugins there are, the more versatile the editor is and the more use cases it can accommodate. 

Moreover, the more intuitive and developer-friendly plugins, the faster the deployment is. 

The image below shows that WYSIWYG editors usually list plugins on their websites and documentation. So, it won’t be difficult for users to find the additional features they’re looking for.

Some of the most popular and powerful plugins are as follows: 

  • Draggable – Drag and drop your rich contents, from images to video, across the content pane.
  • Code Beautifier – Visually improves the code formatting in content, which is especially important for tech bloggers.
  • Files Manager – Exceptional plugin for managing images and other files.
  • Image TUI – This allows you to add filters and watermarks to the imagery on the fly.
  • Markdown Support – Write and format content with Markdown — a huge time-saver for many content creators.
  • Spell and Grammar Checker – Ensure users that they’ll be able to spot and correct grammatical and spelling errors as they type.
  • Real-time Collaboration – Let users work together, create, review, edit content and mention others in real-time.

Using Plugins

Let’s look at how you can add plugins to WYSIWYG editors. In most cases, to get access to a plugin, you only have to insert its JavaScript and CSS files:

<!-- Include the Tables plugin CSS file -->
<link rel="stylesheet" href="">

<!-- Include the Tables plugin JS file -->
<script src="../js/plugins/table.min.js"></script>

Then, to include the plugin in an editor instance, add it to the pluginsEnabled key (or its equivalent in your preferred editor):

const editor = new FroalaEditor('#editor-element', {
    pluginsEnabled: ['table'],
    // ... more config

That’s all it takes to start using your chosen WYSIWYG editor plugins. You can play around with this excellent drag-and-drop extension example to see more of how helpful plugins are.

Creating Plugins

Some WYSIWYG editors allow you to create your plugins in a few simple steps. For instance, this is a generic, reduced format code for creating a plugin in an editor:

(function (FroalaEditor) {
  // Add an option for your plugin.
  FroalaEditor.DEFAULTS = Object.assign(FroalaEditor.DEFAULTS, {
    myOption: false

  // Define the plugin.
  // The editor parameter is the current instance.
  FroalaEditor.PLUGINS.myPlugin = function (editor) {
    // Private variable visible only inside the plugin scope.
    var private_var="My awesome plugin";

    // Private method that is visible only inside plugin scope.
    function _privateMethod () {
      console.log (private_var);

    // Public method that is visible in the instance scope.
    function publicMethod () {
      console.log (_privateMethod());

    // The start point for your plugin.
    function _init () {
      // You can access any option from documentation or your custom options.
      console.log (editor.opts.myOption)

      // Call any method from documentation.
      // editor.methodName(params);

      // You can listen to any event from documentation.
      //'contentChanged', (params) => {});

    // Expose public methods. If _init is not public then the plugin won't be initialized.
    // Public method can be accessed through the editor API:
    // editor.myPlugin.publicMethod();
    return {

As you can see, making your plugin can be pretty straightforward in structure should you have the right WYSIWYG editor.

Froala is an HTML editor with a library of plugins, making it a solid option for the WYSIWYG editor in your CMS. 

The existing plugin repository contains excellent functionality, and creating your plugin with Froala is easy. The Markdown editing plugin alone is worth it for writers like me!

So there you have it. You’ve learned about some of the best plugins you should look for in a WYSIWYG editor, adding and using plugins in these editors, and even making your plugins. 

This should be enough for you to take your users’ content editing with a WYSIWYG editor to greater heights. 

Source link

Share post:

[tds_leads title_text="Subscribe" input_placeholder="Email address" btn_horiz_align="content-horiz-center" pp_checkbox="yes" pp_msg="SSd2ZSUyMHJlYWQlMjBhbmQlMjBhY2NlcHQlMjB0aGUlMjAlM0NhJTIwaHJlZiUzRCUyMiUyMyUyMiUzRVByaXZhY3klMjBQb2xpY3klM0MlMkZhJTNFLg==" f_title_font_family="653" f_title_font_size="eyJhbGwiOiIyNCIsInBvcnRyYWl0IjoiMjAiLCJsYW5kc2NhcGUiOiIyMiJ9" f_title_font_line_height="1" f_title_font_weight="700" f_title_font_spacing="-1" msg_composer="success" display="column" gap="10" input_padd="eyJhbGwiOiIxNXB4IDEwcHgiLCJsYW5kc2NhcGUiOiIxMnB4IDhweCIsInBvcnRyYWl0IjoiMTBweCA2cHgifQ==" input_border="1" btn_text="I want in" btn_tdicon="tdc-font-tdmp tdc-font-tdmp-arrow-right" btn_icon_size="eyJhbGwiOiIxOSIsImxhbmRzY2FwZSI6IjE3IiwicG9ydHJhaXQiOiIxNSJ9" btn_icon_space="eyJhbGwiOiI1IiwicG9ydHJhaXQiOiIzIn0=" btn_radius="3" input_radius="3" f_msg_font_family="653" f_msg_font_size="eyJhbGwiOiIxMyIsInBvcnRyYWl0IjoiMTIifQ==" f_msg_font_weight="600" f_msg_font_line_height="1.4" f_input_font_family="653" f_input_font_size="eyJhbGwiOiIxNCIsImxhbmRzY2FwZSI6IjEzIiwicG9ydHJhaXQiOiIxMiJ9" f_input_font_line_height="1.2" f_btn_font_family="653" f_input_font_weight="500" f_btn_font_size="eyJhbGwiOiIxMyIsImxhbmRzY2FwZSI6IjEyIiwicG9ydHJhaXQiOiIxMSJ9" f_btn_font_line_height="1.2" f_btn_font_weight="700" f_pp_font_family="653" f_pp_font_size="eyJhbGwiOiIxMyIsImxhbmRzY2FwZSI6IjEyIiwicG9ydHJhaXQiOiIxMSJ9" f_pp_font_line_height="1.2" pp_check_color="#000000" pp_check_color_a="#ec3535" pp_check_color_a_h="#c11f1f" f_btn_font_transform="uppercase" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjQwIiwiZGlzcGxheSI6IiJ9LCJsYW5kc2NhcGUiOnsibWFyZ2luLWJvdHRvbSI6IjM1IiwiZGlzcGxheSI6IiJ9LCJsYW5kc2NhcGVfbWF4X3dpZHRoIjoxMTQwLCJsYW5kc2NhcGVfbWluX3dpZHRoIjoxMDE5LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" msg_succ_radius="2" btn_bg="#ec3535" btn_bg_h="#c11f1f" title_space="eyJwb3J0cmFpdCI6IjEyIiwibGFuZHNjYXBlIjoiMTQiLCJhbGwiOiIxOCJ9" msg_space="eyJsYW5kc2NhcGUiOiIwIDAgMTJweCJ9" btn_padd="eyJsYW5kc2NhcGUiOiIxMiIsInBvcnRyYWl0IjoiMTBweCJ9" msg_padd="eyJwb3J0cmFpdCI6IjZweCAxMHB4In0="]


More like this

As Apple headset reaches Europe, will VR ever hit the mainstream?

8 minutes agoBy Zoe Kleinman, Technology editorGetty ImagesGoggles or implants?Whatever...

My All-Time Favorite Way To Make Corn on the Cob

Living in the rural Midwest, corn on...