Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
igHTMLEditor height to fit default content
posted

Hello... I am using the JQUERY igHTMLEditor control and I was wondering if there was a configuration feature that allowed the height of the control to automatically fit the content?

Thanks in advance,

Parents
No Data
Reply
  • 845
    Offline posted

    Hello Gerald,

    Thank you for contacting Infragistics Developer Support.

    Currently there is no option to make the igHtmlEditor auto scale based on its content but you can try to set it once the content has been rendered.

    Something along the lines of

    $("#htmlEditor").igHtmlEditor({  

      // pass your initialization options

    });

    $("#htmlEditor").igHtmlEditor("setContent", someContent, "html");

    var htmlEditorDocument = $($("#htmlEditor").igHtmlEditor("contentDocument"));

    $("#htmlEditor").igHtmlEditor("option", "height", htmlEditorDocument.height());

    Please feel free to contact me for further assistance.

Children
No Data