Insert template - preview not shown; template not inserted.

Last post 05-06-2009, 3:02 AM by ronald.evers. 2 replies.
Sort Posts: Previous Next
  •  05-05-2009, 1:42 PM 51831

    Insert template - preview not shown; template not inserted.

    With the use of templates it is possible to automatically add predefined text instantly, just by clicking at the template file. Really nice feature, but not working at our side.

    Please take a look at the demo: http://cutesoft.net/example/SqlSample/UseSql.aspx
     
    When you hit the "insert template" button in the toolbar, the "Insert Templates" dialog appears. At the left side, inside of this dialog, you see a list of template files (e.g. "Readme.htm" and "new text document.txt"). At the right side you see a preview pane.

     
    For each template file (e.g. "Readme.htm" and "new text document.txt"), a row is inserted in the table at the left pane, and when the you clicks at the row, the preview pane shows the content of the template. Each row has a property called "url", and this property is set to the website address of the template file.
     
    The preview pane is implemented by the use of an IFRAME. This IFRAME has the id "framepreview" and its source is default set to "../template.aspx".
     
    Each time you click at a template file (a row in the table at the left pane) the file content (the template) is shown at the right pane. According to me, Cutesoft implemented this by the use of BLOCKED SCRIPT each time you click at the row of the template, the value of "url" is taken, and the source "src" of the IFRAME "framepreview" is set to the value of "url".
     
    Because your JavaScript is obfuscated, I am not sure, but it seems like it works this way.
     
    But... now my problem....
     
    When I click at the row of a template in my implementation, nothing happens. No preview, just nothing....
     
    The table in the left pane does have a row for each and every template I have, and the "url" property of each row is set correctly.
     
    When I open the web address (the value of "url" of the row) in my browser, I do see my template. So that is working correctly.
     
    Initially, the value of "src" of the IFRAME "framepreview" is set to "../template.aspx". After I clicked at one of the rows of the templates, the "src" of the IFRAME doesn't change.

    I have seen my error in IE7 and IE8. I am using the most current version of CuteEditor (version 6.3).
     
     
    Each
    I have tested http://cutesoft.net/example/SqlSample/UseSql.aspx in the same browsers, and your example is working perfectly. So what am I doing wrong?

    Thanks for your help in advance!
     
    Ronald
     
  •  05-06-2009, 2:12 AM 51862 in reply to 51831

    Re: Insert template - preview not shown; template not inserted.

    Ronald,
     
    When you using the latest version of Cute Editor, are you using the latest CustomFileProvider?

    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

  •  05-06-2009, 3:02 AM 51864 in reply to 51862

    Re: Insert template - preview not shown; template not inserted.

    Hi Adam,
     
    Sorry, but I don't understand your question. As I mentioned in previous post we use the latest (version 6.3.0.0) CuteEditor version. The FileProvider class is part of this dll. According to me, it's not possible (in a normal way) to use two versions of CuteEditor simultaneously.
     
    We have created our own FileProvider based on the abstract class CuteEditor.Impl.FileStorage located in CuteEditor.dll version 6.3.0.0
     
    Occording to me, the problem is server side. Can you confirm to me that, as soon as you click at a row in the table with the template files, your JavaScript (so Client Side) set the source of the IFRAME to the value of "url", the property of the row mentioned earlier?
     
     
View as RSS news feed in XML