onRender() {
    const oldInst = window.tinymce.get(this.id)
    if (oldInst) {
      window.tinymce.remove(oldInst)
    }

    // define options & allow them to be overwritten in the class config
    const options = jQuery.extend(this.editorOptions, this.classConfig)
    options.target = this.field

    //Remove any defined plugins from the list if they have been removed or moved to Core as part of major version updates
    const removedPlugins = []
    if (Number(window.tinymce.majorVersion) >= 5) {
      removedPlugins.push('contextmenu')
    }
    if (Number(window.tinymce.majorVersion) >= 6) {
      removedPlugins.push('paste','print')
    }
    options.plugins = options.plugins.filter(plugin => {
      return (removedPlugins.indexOf(plugin) === -1)
    })

    const userData = this.config.userData ? this.parsedHtml(this.config.userData[0]) : undefined
    const copiedData = window.lastFormBuilderCopiedTinyMCE ? this.parsedHtml(window.lastFormBuilderCopiedTinyMCE) : undefined
    window.lastFormBuilderCopiedTinyMCE = null
    const afterInit = function (inst) {
      // Set userData
      if (copiedData) {
        inst[0].setContent(copiedData)
      } else if (userData) {
        inst[0].setContent(userData)
      }
    }

    setTimeout(() => {
      // initialise the editor within a timeout so that the main thread can continue while tinymce initialises
      window.tinymce.init(options).then(afterInit)
    }, 0)
  }
When the element is rendered into the DOM, execute the following code to initialise it