webix6 and DHTMLX Rich Text Editor

Is it possible to integrate the DHTMLX Rich Text Editor in a webix 6 Form?

Tagged:

Comments

  • edited March 2019

    Hi Rainer,

    Yep, sure. You can intergate any third-party tool into a Webix view with a couple of these simple steps:

    webix.protoUI({
      // provide name
      name:"dhx-richtext", 
      $init:function(config){
       // create HTML an container within Webix view
       // fetch library files and init the tool in the container
      },
      getEditor:function(){
       //add some method to access the tool
      },
      $setSize:function(x,y){
       //adjust the tool to Webix view when it changes its size
      } 
       // inherit from base view
    }, webix.ui.view);
    

    Please, check the snippet of a basic Webix - DHX RichText integration: https://snippet.webix.com/wh4j37zt

  • Hi Helga, this works perfect for my new webix application. Many thanks, Rainer

  • edited November 2019

    Hi webix team, is it possible to set the DHX Rich Text Editor to readonly mode?

  • Hello @RainerRoss,
    Change value contenteditable attribute on false and use webix.delay() wrapper to ensure that the rendering of the editor was finished.
    Please check a snippet:
    https://snippet.webix.com/r7k3q6gb

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!