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
20
Including Tab behavior of MS Word
posted

Hi,

   Can we use TAB key to actually insert TAB space inside WebHtmlEditor ????

Parents
  • 24497
    posted

    Hi,

    Tab key should insert 2 spaces (which are   ). In case of Mozilla it is default behavior of browser and in case of IE the WebHtmlEditor does that manually. If you want to modify that behavior, then you can do that only for IE. For example, you may insert 3 spaces on Tab key by processing ClientSideEvents.KeyDown and

    function WebHtmlEditor1_KeyDown(oEditor, keyCode, oEvent)
    {
     
    if(oEditor._ie && keyCode == 9)
     {
        iged_insText(
    "   ");
        oEvent.cancel =
    true;
     }
    }

     

Reply Children
No Data