HowTo: Modify some default values for Insert Image and Insert Table Panels?

Last post 03-24-2006, 11:57 AM by Carter. 7 replies.
Sort Posts: Previous Next
  •  08-02-2004, 12:07 AM 1409

    HowTo: Modify some default values for Insert Image and Insert Table Panels?

    1. When inserting an image, by default
     
            hspace=5
            align=baseline
     
            How can I make it default to: 
     
                hspace=0
                no align attribute?
     
    2. When adding a Table, by default
     
            align=baseline
            border=1
            cell spacing=4
            cell padding=4
     
            How can I make it default to
     
                no align attribute
                border=0
                cell spacing=0
                cell padding=0
     
     

    Regards,
    »»» KenA
  •  08-02-2004, 11:17 AM 1412 in reply to 1409

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

     KenA wrote:
    1. When inserting an image, by default
     
            hspace=5
            align=baseline
     
            How can I make it default to: 
     
                hspace=0
                no align attribute?
     
    Please choose the "NotSet" in the alignment attribute and input "0" in the horizontal of spacing attribute.
     
     
     KenA wrote:
     
    2. When adding a Table, by default
     
            align=baseline
            border=1
            cell spacing=4
            cell padding=4
     
            How can I make it default to
     
                no align attribute
                border=0
                cell spacing=0
                cell padding=0
     
     

     
    Please choose the "NotSet" in the alignment attribute and select "0" in the border size,  cell spacing and cell padding attribute.
     
    test test
    test test

    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-02-2004, 2:21 PM 1415 in reply to 1412

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Hi Adam,

     
    Yes, that´s what I would normally do, but the problem is that depending of who is using CE, he/she might not know about what cell spacing,cell padding, etc are all about and even if I teach them, I discovered that some clients are really 'dumb', so I thought I could set this in code???
     
    Regards, Ken.

    Regards,
    »»» KenA
  •  08-06-2004, 3:49 AM 1440 in reply to 1415

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Ken,

     
    I've changed the default properties for insert image by editing the "/cuteeditor_files/Scripts/select_image2.aspx" file.
    I'd guess that the same can be done with the "insert_table.aspx" file.
     
    The problem is however that you have to edit these files every time you upgrade the CuteEditor component.
     
    - Zapotec
  •  08-06-2004, 9:55 AM 1445 in reply to 1440

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Thanks Zapotec,

    The only thing I couldn´t change (Not sure why???) are Table attributes like cellpadding and cellspacing, etc.
    Even if I choose 'selected' for <option value="0"> when I load the insert_table panel it defaults to cellpadding=4
    (I cleaned the IE cache)
    Regards, Ken

    Regards,
    »»» KenA
  •  03-23-2006, 5:01 PM 17525 in reply to 1445

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Has there been any new information on this issue?  I would also like to specify table defaults, (cellpadding, cellspacing, border, etc).
  •  03-24-2006, 3:59 AM 17541 in reply to 17525

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Please modify the CuteEditorconstants.js file.

    // 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

  •  03-24-2006, 11:57 AM 17563 in reply to 17541

    Re: HowTo: Modify some default values for Insert Image and Insert Table Panels?

    Is there a way to do this without having to redo it every time I upgrade CuteEditor?
View as RSS news feed in XML