Question about table styles

Last post 10-18-2011, 7:22 AM by Kenneth. 8 replies.
Sort Posts: Previous Next
  •  10-12-2011, 11:02 AM 70364

    Question about table styles

    Cute version 6.0 and 6.6
     
    How would i go about setting up a style in the editor so that when a table is created, it is created with certain border and border color options set?
     
    By default the editor creates a table like this:
     
    <table border="0" cellspacing="2" cellpadding="2" width="500">
    I would like to set the editor so that when I create a table, it is created by default like this:
     
    <table style="border-collapse: collapse" border="1" cellspacing="0" bordercolor="#333399" cellpadding="0" width="500">
  •  10-13-2011, 7:42 AM 70372 in reply to 70364

    Re: Question about table styles

    Hi gitarjake,
     
    Please open file "CuteSoft_Client\CuteEditor\Scripts\Constant.js "
     
    Find section below , it is the default table style, you can change it directly
     
    editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='500'>";
     
    Regards,
     
    Ken
  •  10-14-2011, 7:14 AM 70394 in reply to 70372

    Re: Question about table styles

    Kenneth,
     
    When I edit this file to be ...
     
    editorconstant._CreateEditingTableStyle = "<table Style="border-collapse: collapse" border='1' cellspacing='0' cellpadding='0' width='500'>";
    I get...
     

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3; BRI/2)
    Timestamp: Fri, 14 Oct 2011 12:14:13 UTC


    Message: Expected ';'
    Line: 3
    Char: 20285
    Code: 0
    URI: http://web2test-vm/install/Modules/Cute/CuteSoft_Client/CuteEditor/Load.ashx?type=scripts&file=IE_Loader

     

  •  10-14-2011, 7:37 AM 70399 in reply to 70394

    Re: Question about table styles

    Kenneth,
     
    When I remove the following statement, it works:  Style="border-collapse: collapse".
     
    However, I do want to set the collapsed border by default.  Is there a way to do that?
     
    Also, now when I create a table, it is created without placeholders in the cells and until at least a space are placed in manually, the table looks like a big blob.
     
    Any way to dictate how the cells are created by default?
     
    Thanks,
    Eric
  •  10-14-2011, 7:38 AM 70400 in reply to 70394

    Re: Question about table styles

    Hi gitarjake,
     
    Should be (Use single quotes)
     
     editorconstant._CreateEditingTableStyle = "<table Style='border-collapse: collapse' border='1' cellspacing='0' cellpadding='0' width='500'>";
     
    not
     
     
    editorconstant._CreateEditingTableStyle = "<table Style="border-collapse: collapse" border='1' cellspacing='0' cellpadding='0' width='500'>";
     
    Regards,
     
    Ken
  •  10-14-2011, 2:17 PM 70404 in reply to 70400

    Re: Question about table styles

    Ken,
     
    Ok that works great, thanks.
     
    What about my other question:
     
    ...Also, now when I create a table, it is created without placeholders in the cells and until at least a space are placed in manually, the table looks like a big blob.
     
    Any way to dictate how the cells are created by default?
     
    Thanks,
    Jake
     
  •  10-14-2011, 2:47 PM 70405 in reply to 70404

    Re: Question about table styles

    Hi gitarjake,
     
    For now, have not an option to define the default value for tht cell. Sorry for your inconvenience.
     
    Regards,
     
    Ken
  •  10-17-2011, 11:58 AM 70428 in reply to 70405

    Re: Question about table styles

    Ok, so here's my question then:
     
    I am using version 6.6 integrated into our site.
     
    In firefox, when I create a table and save, I get this:
     
     
    In IE 8, when I create a table and save, I get this:
     
     
    Why the difference? What do I do to ensure that users  with IE 8 (and by association IE 9), get the same experience as users with Firefox?
     
    Thanks,
    Jake
  •  10-18-2011, 7:22 AM 70439 in reply to 70428

    Re: Question about table styles

    Hi gitarjake,
     
    The "insert table" function use to insert a table into the content. By default, it should has nothing in it.
     
    We add the  &nbsp;for firefox, because the empty <td> target will very difficult to edit in firefox.
     
    If you wan the table shows as what you posted, please set the width and height for the table or drag the size directly by the mouse.
     
    Regasrds,
     
    Ken
View as RSS news feed in XML