Software Alternatives, Accelerators & Startups

Create an Odoo 14 Markdown Widget Field with TDD - Part 2

Underscore.js CodeMirror
  1. Underscore is a utility-belt library for JavaScript that provides a lot of the functional...
    Pricing:
    • Open Source
    Debouncing an input in JavaScript is a common technique to reduce the rate of execution of a function. If a user is typing inside an input and you execute a function on each change of that input (each letter typed) it can quickly lead to a lot of computation power being used on just that. The common technique is called debounced and it will delay the execution of the function listening to the input, only every X secondes. Odoo use _.debounce for this with the underscorejs library.

    #Development Tools #Javascript UI Libraries #JavaScript Framework 23 social mentions

  2. CodeMirror is a versatile text editor implemented in JavaScript for the browser.
    Pricing:
    • Open Source
    As we can see, SimpleMDE uses the underlying library CodeMirror to create his editor. So checking for the presence of the div with class .CodeMirror should validate the presence of the Editor. Let's write a new test.

    #Rich Text Editor #Text Editors #IDEs And Text Editors 45 social mentions

Discuss: Create an Odoo 14 Markdown Widget Field with TDD - Part 2

Log in or Post with