Image/text errors in text area

Last post 10-16-2012, 2:04 PM by astearns. 5 replies.
Sort Posts: Previous Next
  •  10-11-2012, 2:58 PM 74966

    Image/text errors in text area

    Edited for clarity: 

     

    1. When I open a text file with CuteEditor that contains images, the images do not load propely and display as:

     

     

    in the text area. 

     

    The img src contains a relative path (ex. /resources/images/image.jpg) and the image doesn't show in the text area. I though this might have something to do with the Editor.SiteUrl = "relative" but that didn't help me.

     

    The strange thing is the path in the html tab is correct and when I save changes the images appear on my page, but are broken in the text area of the editor itself.

     

    Why would this happen if they appear correctly on a page when I save the html as it appears in the text area? 

     

    2. Another problem that might be related is that when opening a text file in CuteEditor all the text is defaulted to Times New Roman instead of whatever the text happens to be. I'm also unsure why this is happening. 

     

    3. When trying to use the insert hyperlink dialog I get a 401 error. I an unusre why this is happening and can not find the appropriate dialog file in my downloaded Cute Editor. What am I missing?

     

     

     

    Any help would be appriciated. Thanks!

  •  10-11-2012, 10:32 PM 74967 in reply to 74966

    Re: Image/text errors in text area

    Dear astearns,

     

     Please paste the test url here, that I can test it.

     

    For point 1. Clear the browser cache and test again.

    Point 2. Do you open the text file on server side? 

     

    Regards,

    Jeff 

  •  10-12-2012, 12:40 PM 74973 in reply to 74967

    Re: Image/text errors in text area

    Hi, Jeff 

     

    I don't have a test url as the editor is only in our dev enviroment. I can share my screen of our dev enviroment through join.me if someone from support would do that.

     

    Point 1: Cleared the croswer cach but still has same effect. I'm using SiteRelative paths, here's an example of the img src:

     

    admin/content/Web/Resources/Image/ALFALogoWhite.jpg.

     

    When I drag and drop the same image into the text editor I get:

     

     /Web/Resources/Image/ALFALogoWhite.jpg and it shows up.

     

    Point 2: yes, the text file was opened on the server side.

     

    Any ideas on point 3 from my original post? 

     

    Update ofr point 3: the dialog for insert hyperlink is not missing but it is trying to open defualt.aspx instead of tag_a.ascx. This is happening for many of my dialogs...

  •  10-15-2012, 10:34 AM 74989 in reply to 74966

    Re: Image/text errors in text area

    hi astearns,

     

    Question 1

     

    The editor has not power to analyze all image url format you use in the html content. because the code is not generate by itself. 

     

    And why it disploy correct on your page, because your page under the correct lever under your site and the editor page is not.

     

    For example, image         <img src="../Uploads/10n2.jpg" /> will works find under page http://site/xx/example.aspx, by will not work under http://site/xx/xx/example.aspx

     

    you can insert the image by the editor itself, or use the full page for your images like http://cutesoft.net/uploads/j0262681.jpg

     

    Question 2

     

    What method you open the text file in editor?  Can you show me what html content you got from the html view of editor? How you know the font is Times New Roman? can you show me in detail?

     

    Question 3

     

    Please set UseStandardDialog="true" and try again. and then show me the new error screenshot.

     

      <CE:Editor ID="editor1" runat="server" UseStandardDialog="true">
            </CE:Editor>

     

    by the way, only the "insert link" dialog gets this problem? How about others?

     

    Regards,

     

    Ken
     

     

  •  10-15-2012, 1:08 PM 74991 in reply to 74989

    Re: Image/text errors in text area

    Hi Ken,

     

    Question 1: I'm not sure I'm able to move things aroung in the heirarchy of the site(those decisions don't fall to me) but I'll see what I can do about this. Thank you for the explanation.

     

    Question 2: The method I'm using to open the text file is by parsing a text file using C#(for custom markup) and then loading the parsed information in the editor. (I'm out of the office for today and can't remotely access the content, I will supply more information as soon as possible)

     

    Question 3: same as above. I will try this as soon as I am able. This problem is not contained to jsut the insert link dialog, others will not open either, but I have all working that I need except insert link.

     

    Thank for the explanation and relpy! 

  •  10-16-2012, 2:04 PM 74999 in reply to 74989

    Re: Image/text errors in text area

    Hi Ken,

     

    I'm back in the office today and have updates on your suggested solutions: 

     

    Quesiton 1: I've confirmed this. The page the editor is on does not have access to the relative image path, so:

     

    ex. an img src = Web/Resources/Image/ALFALogoWhite.jpg  will show a broken image in the text area of the editor

    an img src = /Web/Resources/Image/ALFALogoWhite.jpg escapes correctly. I can not change the hierarchy of our site struture to get this to work. However, I can go through each text file and add "/" to each img src. If possible I'd like to avoid this. Is there any way I can get the editor to add "/" to each img src?

     

    Ignore this. I'm an idiot. Definitely a problem with our site structure and not related to Cute Editor. 

     

    Question 2: I realized that I didn't do a very good job of explaining this. When I open a text file with the editor, the text in the editable area appears in Times New Roman. when posted back to my page the font-family is correct. Does text in this designer section not load the font-family of the text as it appears on the page?  It's been requested that we have the correct font-family reflected here even though it posts correctly.

     

    I'm also an idiot here. I believe the property I'm looking for here is EditorWysisygModeCss. Doesn't seem to be working for me.

     

     Question 3: I've added the UseStandardDialog="true" to the cute editor tag with the same result:

     

     

     

    Sorry for the long post... 

     

    Edited in hopes of a response. 

View as RSS news feed in XML