Toolbar displaying incorrect image for certain buttons

Last post 01-06-2014, 2:25 AM by arronlee. 4 replies.
Sort Posts: Previous Next
  •  08-13-2008, 4:46 AM 42931

    Toolbar displaying incorrect image for certain buttons

    Hi,
     
    I'm currently working on an implementation of CuteEditor for a web portal.
     
    The context of the editor is that it is placed within a div which, on postback, is either shown or hidden, to mimick popup behaviour (a modal background is implemeneted, but seperately, i.e. we are not using the modal popup extender or anything like that). We are, however, using the toolkit to implement drag and drop on the top bar of the div, resize on the bottom right corner (and there is also a full screen button). The resize behaviour also taps into the CuteEditor API to use its setHeight method while resizing.

    The issue we are having concerns the toolbar icons. Strangely, we are obtaining the wrong image for the correct button (e.g. for the insert image button, we have the flash image, but clicking on it still yields the insert image window and the title when hovering the mouse over the image is correct). I have investigated further and discovered that the problem is only with those which have an imagename="" defined in the .config file, and only some of these are affected. The following is a list of the toolbars which are/aren't affected using the full.config file:
     
     
     
    Save through to Redo - all are fine.
     
    Insert print page break through to embed a youtube video - all the images are wrong. There seems to be no pattern - some are one out, others should belong to a button on the row below.
     
    All table buttons are fine.
     
    Break to page properties - all the images are wrong (from form to page properties all seem to be one image out, the ones before these are again random).
     
    The rest are fine ( Bold through to help and all the drop downs.
     
     
    The problem persists when using other .config files (we are actually using a custom one, but since the problem is in all I thought it easiest to document the problem with the full.config file).
    I have tried a reinstall of CuteEditor but this does not seem to solve the problem. I have tried various themes and the problem seems to persist. Also, interestingly, if I change the name of an affected image in the images folder for the associated theme, it still seems to find that image (even though the imagename="" and the actual name of the image no longer match). Below is a screenshot of our editor instance using the full.config file.
     
     As I say, the full.config file should be "out of the box" as I did a reinstall just to make sure, but for info, I have included the contents of the full.config file below (I have chopped it off after the end of the affected items):
     
     
     <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <codeviewToolbars>
            <item type="g_start" />
            <item type="image" name="Save" postback="True" />
            <item type="image" name="Print" />
            <item type="image" name="Find" />
            <item type="image" name="ToFullPage" command="FullPage" imagename="fit" hotkey="F12" />
            <item type="image" name="FromFullPage" command="FullPage" imagename="restore" hotkey="F12" />
            <item type="image" name="Cut" />
            <item type="image" name="Copy" />
            <item type="image" name="Paste" />
            <item type="image" name="SelectAll" hotkey="CTRL+A" />
            <item type="image" name="SelectNone" />
            <item type="g_end" />
        </codeviewToolbars>
        <toolbars>
            <item type="g_start" />
            <item type="image" name="Save" postback="True" />
            <item type="image" name="New" imagename="newdoc" />
            <item type="image" name="Print" />
            <item type="image" name="Preview" imagename="bspreview" />
            <item type="image" name="Find" />
            <item type="image" name="ToFullPage" command="FullPage" imagename="fit" hotkey="F12" />
            <item type="image" name="FromFullPage" command="FullPage" imagename="restore" hotkey="F12" />
            <item type="image" name="CleanCode" imagename="cleanup" />
            <item type="image" name="NetSpell" imagename="spell" />
            <item type="separator" />
            <item type="image" name="Cut" />
            <item type="image" name="Copy" />
            <item type="image" name="Paste" />
            <item type="image" name="PasteText" />
            <item type="image" name="PasteWord" />
            <item type="image" name="PasteAsHTML" />
            <item type="image" name="Delete" />
            <item type="separator" />
            <item type="image" name="Undo" />
            <item type="image" name="Redo" />
            <item type="g_end" />
            <item type="g_start" />
            <item type="image" name="InsertPageBreak" imagename="InsertPageBreak" />
            <item type="image" name="InsertDate" imagename="insertdate" />
            <item type="image" name="InsertTime" imagename="timer" />
            <item type="separator" />
            <item type="image" name="InsertChars" imagename="specialchar" />
            <item type="image" name="InsertEmotion" imagename="emotion" />
            <item type="image" name="UniversalKeyboard" imagename="keyboard" />
            <item type="image" name="BoxFormatting" imagename="box" />
            <item type="image" name="InsertLayer" imagename="layer" />
            <item type="image" name="InsertFieldSet" imagename="groupbox" />
            <item type="separator" />
            <item type="image" name="ImageGalleryByBrowsing" imagename="image" />
            <item type="image" name="InsertImage" imagename="eximage" />
            <item type="image" name="InsertFlash" imagename="flash" />
            <item type="image" name="InsertMedia" imagename="media" />
            <item type="image" name="InsertDocument" imagename="document" />
            <item type="image" name="InsertTemplate" imagename="template" />
            <item type="image" name="YouTube" />
            <item type="g_end" />
            <item type="linebreak" />
            <item type="g_start" />
            <item type="table" />
            <item type="image" name="InsertRowTop" imagename="insrow_t" />
            <item type="image" name="InsertRowBottom" imagename="insrow_b" />
            <item type="image" name="DeleteRow" imagename="delrow" />
            <item type="image" name="InsertColumnLeft" imagename="inscol_l" />
            <item type="image" name="InsertColumnRight" imagename="inscol_r" />
            <item type="image" name="DeleteColumn" imagename="delcol" />
            <item type="image" name="InsertCell" imagename="inscell" />
            <item type="image" name="DeleteCell" imagename="delcell" />
            <item type="image" name="EditRow" imagename="row" />
            <item type="image" name="EditCell" imagename="cell" />
            <item type="image" name="MergeRight" imagename="mrgcell_r" />
            <item type="image" name="MergeBottom" imagename="mrgcell_b" />
            <item type="image" name="HorSplitCell" imagename="spltcell_r" />
            <item type="image" name="VerSplitCell" imagename="spltcell_b" />
            <!-- MergeCell/mrgcell SplitCell/spltcell -->
            <item type="g_end" />
            <item type="g_start" />
            <item type="image" name="Break" />
            <item type="image" name="InsertParagraph" imagename="Paragraph" />
            <item type="image" name="BlockDirLTR" imagename="left_to_right" />
            <item type="image" name="BlockDirRTL" imagename="right_to_left" />
            <item type="g_end" />
            <item type="g_start" />
            <item type="image" name="InsertForm" imagename="Form" />
            <item type="image" name="InsertTextBox" imagename="textarea" />
            <item type="image" name="InsertInputText" imagename="textbox" />
            <item type="image" name="InsertInputPassword" imagename="passwordfield" />
            <item type="image" name="InsertInputhidden" imagename="hiddenfield" />
            <item type="image" name="InsertListBox" imagename="listbox" />
            <item type="image" name="InsertDropDown" imagename="dropdownbox" />
            <item type="image" name="InsertRadioBox" imagename="optionbutton" />
            <item type="image" name="InsertCheckBox" imagename="checkbox" />
            <item type="image" name="InsertInputImage" imagename="imagebutton" />
            <item type="image" name="InsertInputSubmit" imagename="submit" />
            <item type="image" name="InsertInputReset" imagename="Reset" />
            <item type="image" name="InsertInputButton" imagename="pushbutton" />
            <item type="image" name="DocumentPropertyPage" imagename="page" />
            <item type="g_end" />
            <item type="linebreak" />
     
     
     The instance of CuteEditor itself, which is declared as the following:
     
     <CE:Editor ID="ceArticleBody"
                                    runat="server"
                                    Width="100%"
                                    Height="300"
                                    EnableBrowserContextMenu="false"
                                    EnableAntiSpamEmailEncoder="true"
                                    UseStandardDialog="true"
                                    ThemeType="Office2007"
                                    ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Full.config"
                                    ContextMenuMode="Full"
                                    ResizeMode="None">
    </CE:Editor>
     
    The last relevant piece of information I can think to provide is the background-image css property that goes to the client. For the insert image button (which has the flash image in the screenshot above) the background-image comes out as:
     
    url(/CuteSoft_Client/CuteEditor/Load.ashx?type=theme&theme=Office2007&file=all.png)


    Is this a problem which has been encountered before?
    Is there a possible solution based on the above description?
    And if not, could you possibly explain how the images get inserted based on the imagename="" declared in the config file so that I can attempt to track down the problem further.

    Many thanks in advance,


    David Richards (DOCCOM Solutions)
  •  08-13-2008, 11:49 AM 42940 in reply to 42931

    Re: Toolbar displaying incorrect image for certain buttons

    David,
     
    Did you upgrade from an earlier version of Cute Editor?
     
    Please note that when upgrading you need to replace the DLLs and all client files.
     
    Can you download the control again and create a separate application for testing?
     
     
    Keep me posted

    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-15-2008, 5:21 AM 42994 in reply to 42940

    Re: Toolbar displaying incorrect image for certain buttons

    We did upgrade from version 6 to 6.1, and in doing so transferred all the dll files accross into the bin folder as well as replacing the Cute_Soft_Client folder. I also did this when I reinstalled the control.
     
    I have placed the editor in a blank project and all the buttons are fine in this project. So obviously it is something in our application which is affecting the  toolbar image assignment process.
     
    Interestingly, upon doing a quick comparison with FireBug between the correct one in the blank application and the one sat in our app, the themeindex attributes for the images display a discrepancy. For the images which are correct in both, the themeindex has the same number. However, for all the images which are incorrect, this themeindex does not match between the two editor instances.
     
    I will investigate further down this route and post anything which I may find.
     
    Many thanks,
     
    David.
  •  08-15-2008, 6:39 AM 42996 in reply to 42994

    Re: Toolbar displaying incorrect image for certain buttons

    Ok, problem solved.
     
    It turns out that although we had transferred the new .dll files into the bin folder, these were bein g overwritten by the old dll files in our WebLibs folder, resulting in us having out of date dll files.
     
    Many thanks for your help.
  •  01-06-2014, 2:25 AM 78696 in reply to 42996

    Re: Toolbar displaying incorrect image for certain buttons

    DLRichards:
    Ok, problem solved.
     
    It turns out that although we had transferred the new .dll files into the bin folder, these were bein g overwritten by the old dll files in our WebLibs folder, resulting in us having out of date dll files.
     
    Many thanks for your help.

    Hi, DLRichards.

    I am glad to see that your problem had been solved. But I  have another question. Whether it can be accomplished by building a web image viewer?  And  I want to look for a fine professional 3rd party imaging toolkit whose way of processing is simple and fast to help me with the related work. It will be better if it is totally manual and can be customized by users according to our own favors. Do you have any ideas about it? Or any good suggestion? Thanks in advance.

    Best regards,

    Arron


    Best Regards,
    Arron





    Next Tomorrow is Another Day.
View as RSS news feed in XML