Editor makes unwanted changes in styles

Last post 11-30-2011, 7:06 AM by Kenneth. 9 replies.
Sort Posts: Previous Next
  •  11-21-2011, 12:15 AM 71546

    Editor makes unwanted changes in styles

    When we switch to the "Normal" view in the editor, the urls of background images are modified if they begin with a slash. The editor adds automatically the domain of the website.

    before:
    <div style="background: url(/Assets/Local/myimage.gif 

    after:
    <div style="background: url(http://Mydomain.com/Assets/Local/myimage.gif 
     
    Is there a way to prevent this behaviour?
     
    thanks. 
  •  11-21-2011, 6:18 AM 71552 in reply to 71546

    Re: Editor makes unwanted changes in styles

    Hi Sunspire,
     
    Please try demo http://phphtmledit.com/EnableAll.php, it works fine for me.
     
    I added the content below into the html view then switch between html and normail view. It does not changed.
     
    <div style="background: url(/Assets/Local/myimage.gif )">content</div>
     
    If the demo works for you too, please download the latest version and try again.
     
    latest version downloads  http://www.cutesoft.net/downloads/folders/54374/download.aspx
     
    Regards,
     
    Ken
     
  •  11-22-2011, 1:44 AM 71569 in reply to 71552

    Re: Editor makes unwanted changes in styles

    Hi,
     
    thanks for your reply.  I'm not sure if I posted in the correct thread. I use Cute Editor 6.6 for .NET
     
    I've already upgraded from version 6.2 to version 6.6.  It's after the upgrade that the editor forces absolute paths on URLs. 
     
    Is there maybe a configuration setting that has been wrongly set?
     
    thanks. 
  •  11-22-2011, 8:40 AM 71581 in reply to 71569

    Re: Editor makes unwanted changes in styles

    Hi Sunspire,
     
    The asp.net version question you can poste on http://cutesoft.net/forums/23/ShowForum.aspx
     
    Please try the .net demo http://www.cutesoft.net/example/general.aspx, does it get the same issue?
     
    Can you try the example below on your end too? Does it work?
     
    <%@ Page Language="C#" AutoEventWireup="true" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    </head>
    <body>
        <form id="form1" runat="server">
            <CE:Editor ID="editor1" runat="server">
            </CE:Editor>
        </form>
    </body>
    </html>
     
     
    Regards,
     
    Ken
  •  11-25-2011, 1:12 AM 71625 in reply to 71581

    Re: Editor makes unwanted changes in styles

    Hi,
     
    when I paste the code it gets reformated to this:
     
    <%@ Page Language="C#" AutoEventWireup="true" %>
    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <form id="form1" runat="server">
    <CE:editor id="editor1" runat="server">
    </CE:editor>
    </form>
     
     
     
     
    Here is how CuteEditor is implemented
    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="ce" %>
    .
    .
    <ce:Editor ID="EditorHTMLContent" runat="server" Width="800" Height="300" BreakElement="Br"
                                                            EditorWysiwygModeCss="~/App_Themes/Editor.css" EnableStripScriptTags="False"
                                                            EnableStripIframeTags="false" AutoParseClasses="true" EnableStripLinkTagsCodeInjection="false"
                                                            EnableStripStyleTagsCodeInjection="false" DisableAutoFormatting="True" RemoveTBODYTag="True"
                                                            UseHTMLEntities="False" UseHttpHandlerCacheImages="False" FilesPath='~/CuteSoft_Client/CuteEditor'
                                                            AutoConfigure="Simple" URLType="Default" >
                                                        </ce:Editor>
     
     
     
     
    regards,
    Sunspire 
  •  11-25-2011, 6:46 AM 71632 in reply to 71625

    Re: Editor makes unwanted changes in styles

    Hi Sunspire,
     
    Does my code works for you? Or get the same problem?
     
    Regards,
     
    Ken
  •  11-28-2011, 2:40 AM 71673 in reply to 71632

    Re: Editor makes unwanted changes in styles

    Hi,
     
    unfortunately I get the same problem.
     
    regards
    Sunspire 
  •  11-28-2011, 6:11 AM 71677 in reply to 71673

    Re: Editor makes unwanted changes in styles

    Hi Sunspire,
     
     
    Can you send me the url of the page above which use my code? So I can test it too.
     
    And please show me the steps to reproduce this issue on this page. 
     
    Regards,
     
    Ken 
  •  11-30-2011, 12:59 AM 71716 in reply to 71677

    Re: Editor makes unwanted changes in styles

    Hi,
     
    unfortunately the editor is in an Extranet
     
    regards,
    Sunspire 
  •  11-30-2011, 7:06 AM 71725 in reply to 71716

    Re: Editor makes unwanted changes in styles

    Hi Sunspire,
     
     
    1.  Delete file CuteEditor.dll CuteEditor.ImageEditor.dll and NetSpell.SpellChecker.dll, then use the new one in the package above
     
    2. Delete folder "CuteSoft_Client" and use the new one in the package above.
     
    3. Clean the browser cache and try my example page again.
     
    Please do a back up of all files before the steps above. 
     
    And just confirm it again, does demo page http://www.cutesoft.net/example/general.aspx works for you?
     
    Regards,
     
    Ken 
View as RSS news feed in XML