default table width

Last post 08-04-2009, 9:06 PM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  04-03-2009, 11:38 AM 50764

    default table width

    Can you chagne the default table width when inserting a table into CuteEditor?
     
    If so, where?
     
    Thanks in advance.
  •  04-03-2009, 11:48 AM 50765 in reply to 50764

    Re: default table width

    This is when using the insert table icon.   not going through stylebuilder or anything.
     
    thanks
  •  04-03-2009, 12:17 PM 50766 in reply to 50765

    Re: default table width

    Benava,
    Please open the CuteEditorconstants.js file and paste the following code in it.

    // You can modify the following function to change the table default properties within the InsertTable dialog

    var _CreateEditingTableStyle = "<table border='1' cellspacing='0' cellpadding='3' style='border-collapse:collapse;width:320'>";


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-04-2009, 11:28 AM 54479 in reply to 50766

    Re: default table width

    Hi - i get the feeling I am missing something.
     
    My default table setting is about 500 px.  I need it to be 750 px.  I went into the constant.js and replaced the code with this:
     

    // When creating a table using the Wizard, the following default attributes apply.

    var _CreateEditingTableStyle = "<table border='1' cellspacing='0' cellpadding='3' style='border-collapse:collapse;width:320'>";

     
    but upon a save/release, the width remains at 500px. Is there another file i should be also checking? What can I do to resolve this problem?
    Thank you in advance.
     
  •  08-04-2009, 9:06 PM 54487 in reply to 54479

    Re: default table width

    Hi suchil,
     
    Open file Constant.js ( CuteSoft_Client\CuteEditor\Scripts\Constant.js)
     
    Find section below
     
    editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='500'>";
     
    Change to
     
    editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='750'>";
     
    Clean the browser cache and try
     
    Regards,
     
    Ken
View as RSS news feed in XML