src/knockout-froala.js
function update( element, value ) {
    var $el = $( element );
    var modelValue = unwrap( value() );
    var editorInstance = $el.data( 'froala.editor' );

    if( editorInstance == null ) {
      return;
    }

    var editorValue = editorInstance.html.get();

    // avoid any un-necessary updates
    if( editorValue !== modelValue && (typeof modelValue === 'string'  || modelValue === null)) {
      editorInstance.html.set( modelValue );
    }
  }
function update( element, value ) {
    var $el = $( element );
    var modelValue = unwrap( value() );
    var editorInstance = $el.data( 'froala.editor' );

    if( editorInstance == null ) {
      return;
    }

    var editorValue = editorInstance.html.get();

    // avoid any un-necessary updates
    if( editorValue !== modelValue && (typeof modelValue === 'string'  || modelValue === null)) {
      editorInstance.html.set( modelValue );
    }
  }
function update ( element , value ) { var $el = $ ( element ) ; var modelValue = unwrap ( value ( ) ) ; var editorInstance = $el . data ( 'froala.editor' ) ; if ( editorInstance == null ) { return ; } var editorValue = editorInstance . html . get ( ) ; // avoid any un-necessary updates if ( editorValue !== modelValue && ( typeof modelValue === 'string' || modelValue === null ) ) { editorInstance . html . set ( modelValue ) ; } }
update froala editor whenever underlying observable model
is updated

@param {element} element
@param {object} value
@api public
update froala editor whenever underlying observable model is updated