Editor Installation Issue

21 posts, 0 answers
  1. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 21 Sep 2007 Link to this post

    Hi,
        Recently I downloaded and tried installing Rad Editor 7.2 for MOSS 2007. During the installation, it aborts the process by throwing an error message... Cannot find the path specified and some virtual directory canot be created. Is there any workaround to fix this issue?

        I tried installed it in my local machine and server as well.
    But in both the systems, the installation halted with the same error!!!
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 21 Sep 2007 Link to this post

    Hello,

    Which version of the MOSS editor do you have? Try the latest release - 4.32. If you get the problem with the latest release as well, please give us as much information about it - when do you get the error, what is your server configuration, etc. Thank you for your cooperation.

    Greetings,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 25 Sep 2007 Link to this post

    Hi,
        Thanks for your information. I can install the editor in my sharepoint. Now, I had couple of issues...
    1. I have to insert custom button in my toolset. For that i need to make an entry in tools.xml file. But where is the xml file actually resides. 
    2.  Is is possible to assign user control as a button in tool set...

  4. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 25 Sep 2007 Link to this post

    Hello,

    The editor's tools file (there are actually two of them) is in \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.3.2.0__1f131a624888eeed\RadControls\Editor\.

    You need to edit the correct tools file, depending on your scenario. If you need to modify the tools for the web part or publishing field - use ToolsFile.xml. If you need to edit the tools for lists, wikis, blogs, etc. - use ListToolsFile.xml.

    If you are not certain where to put the JS code for the custom tools, use \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.3.2.0__1f131a624888eeed\RadControls\Editor\Scripts\7_1_3\MOSSEditorTools.js and append your script at the bottom of the file.

    These articles will be helpful to you if you need to create a custom dialog: 
    http://www.telerik.com/help/aspnet/editor/AddCustomDialogs.html
    http://www.telerik.com/demos/aspnet/Editor/Examples/CustomDialogs/DefaultCS.aspx

    It is not possible to use a user control as the dialog - think of it as a new browser window. You can only open static pages (.html) or web forms (.aspx).

    Kind regards,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 26 Sep 2007 Link to this post

    Hi,
        Thanks for your detailed reply!
    I need to know, whether the image can be pasted in the rad editor? Ie. I am typing and pasting image in MS Word. After that i am coping the content including the image and pasting it in rad editor. The image is not pasting in the editor. What is the workaround for this issue?

    I am adding custom button to my editor tool set. When i cliak on it, a new dialog will be opened with sample.aspx page. In that sample.aspx, if i click a GO button, it will generate a report. Now my requirement is, when i click on the GO button it should generate report and the dialog should be closed as well as the report should be pasted in the rad ediotr's IFRAME section (IFRAME will be defined by me).

    Please guide me on this!
  6. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 27 Sep 2007 Link to this post

    Hi,
        Could i get reponse for my above query?!
  7. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 28 Sep 2007 Link to this post

    Hello,

    Unfortunately, the editor does not support pasting of images directly from the clipboard (MS Word). You will first need to upload the image to a MOSS image library, paste the content from word and finally edit the pasted image's properties so it points to the image library instead of the local computer.

    About your second question - I have already provided you with links to the resources for creating custom editor dialogs. The example (http://www.telerik.com/demos/aspnet/Editor/Examples/CustomDialogs/DefaultCS.aspx) shows a scenario, that is pretty close to what you need. When the dialog is closed, it returns a value, which is pasted in the editor content area.

    All the best,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 04 Oct 2007 Link to this post

    Hi,
        I again deployed the solution. I got all those files back and it is working fine. Now i added one tool called "Report". When you click on report icon, a dialog should open. When you select a item in a radio button list, it has to close the dialog and paste the selected item in the rad editor's top, not on the cursor position. I implemented this with the simple html, but it is not working....
    The code snippet is below....
    ASPX Page, which contains RAD Editor:
    <div class="pageContent">  
                <PublishingWebControls:RichHtmlField id="Content" FieldName="PublishingPageContent" runat="server"/>              
                <radE:RadHtmlField runat="server" id="Content1" FieldName="PublishingPageContent"</radE:RadHtmlField> 
                <script type="text/javascript">  
                var RadEditor1ClientObject = null;  
                RadEditorCommandList["Report"] =  
                    function CustomDialogCommand(commandName, editor, oTool)  
                    {  
                        var args = editor.GetDialogParameters(commandName);  
                        var argStr = "";  
                        for (var item in args)  
                        {  
                            argStr += "[" + item + "=" + args[item] + "] ";  
                        }  
                        alert ("Custom dialog was called with the following arguments: " + argStr);  
     
                        RadEditor1ClientObject = editor;  
                        editor.ShowDialog(  
                            "http://localhost:8889/Report.html"  
                            , args//argument  
                            , 500  
                            , 500  
                            , CustomDialogCallback  
                            , null  
                            , "Report");  
                    };  
     
                    function CustomDialogCallback(returnValue)  
                    {                      
                        if (returnValue)  
                        {  
                            RadEditor1ClientObject.PasteHtml("<href=\"" + returnValue.url + "\">" + returnValue.text + "</a>");  
                        }  
                        
                    }  
             </script> 
     
            </div> 
     

    Sample Html page to called in the Dialog Box:
    <html> 
    <head> 
        <title> 
            The Custom Dialog  
        </title> 
    <link rel="stylesheet" type="text/css" href="RadControls/Editor/Schemes/Default/Dialogs.css"></link> 
    </head> 
    <body> 
    <script language="javascript" src="http://localhost:8889/RadWindow.js"></script> 
    <script language="javascript">  
        function GetDialogArguments()  
        {  
            if (window.radWindow)  
            {  
                return window.radWindow.Argument;  
            }  
            else  
            {  
                return null;  
            }alert('hhhh');  
        }  
     
        var isRadWindow = true; alert('TEST');  
        var radWindow = GetEditorRadWindowManager().GetCurrentRadWindow(window);  
        if (radWindow)  
        { alert('FUNC TEST');  
            if (window.dialogArguments)   
            {   
                radWindow.Window = window;  
            }   
              
            var dialogArg = GetDialogArguments();  
              
            alert("Alerting PARAM1 " + dialogArg["PARAM1"]);  
            alert("Alerting PARAM2 " + dialogArg["PARAM2"]);  
              
              
            radWindow.OnLoad();   
        }  
    </script> 
        <table border="0" cellpadding="0" cellspacing="0">  
            <tr> 
                <td>Hello  
                    <select id="linkContainer">  
                        <option value="http://www.telerik.com"><b>t</b>elerik</option> 
                        <option value="http://www.microsoft.com">Microsoft</option> 
                    </select> 
                </td> 
                <td> 
                    <button class="Button" onclick="javascript:insertLink();">  
                        Insert  
                    </button> 
                </td> 
            </tr> 
        </table> 
        <script language="javascript">  
            function insertLink()  
            {  
                alert('Hello');  
                  
                var linkContainer = document.getElementById("linkContainer");  
                var returnValue =   
                {  
                    url:linkContainer.options[linkContainer.selectedIndex].value,  
                    text:linkContainer.options[linkContainer.selectedIndex].text  
                };  
                CloseDlg(returnValue);  
            }  
        </script> 
    </body> 
    </html> 

    The dialog parameters:
    <dialogParameters> 
        <dialog name="Report">  
          <parameter name="ReportInput" value="Value1"></parameter> 
          <parameter name="OutputText" value=""></parameter> 
        </dialog>      
      </dialogParameters> 


    Please guide me on this...
  9. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 04 Oct 2007 Link to this post

    Hi,
        I made it working properly.... Now my concern is,
    1. How to paste the content (from dialog box to editor) @ editor's top, not on the cursor position?
    2. While editing the page, in the IE status bar, it says, "Please wait while scripts are loaded". This remains forever.
    3. Is it possible to save the IFRAME tag as a content? I tried saving iframe, but it is not...
    4. When i click a button in a editor, it opens a dialog box and i am selecting some text in the dialog and closing. At this time it has to paste the text i selected. It is doing fine. If i click the same button again, now i am selecting different text in the dialog box. Now it has to replace the existing text. How to achieve this one?
  10. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 04 Oct 2007 Link to this post

    Hi,
        Please reply for the 3rd question alone...
    Is it possible to save the IFRAME tag as a content? I tried saving iframe, but it is not...
    Here is the script:
    RadEditor1ClientObject.PasteHtml("<IFrame src='http://" + returnValue.Type + ".com' width='100%' height='60%'></IFrame>");

    I can see the iframe tag in the editor. When i click save or publish... it is not saving this iframe tag content alone...

  11. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 05 Oct 2007 Link to this post

    Hi Vinod,

    I tried to reproduce the reported problem but unfortunately to no avail. You can see my test in the attached video. Am I missing something. I used the Save in Database example in the test.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 08 Oct 2007 Link to this post

    Hi,
        Thanks for your video attachment. I have this RAD Editor in my sharepoint and tried saving the IFrame Content. But it is not saving. When i add Iframe tag and press save. It is not saving and displaying any iframe content. If i click edit this page, at this time also i am not getting the iframe content.
    And one more thing, I changed the title of the page and changed some content in the editor. Now i pressed F5 (Refresh). The title content alone saved automatically, but the editor content was not save... What to do for this?
  13. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 08 Oct 2007 Link to this post

    Hello Vinod,

    Please, review the following help articles:
    Inserting Flash and Media files in RadEditor
    and
    Setting ConfigFile and ToolsFile properties for the WCM field,
    which provides guidance how to activate the Flash support in RadEditor.

    You should also make sure that you are using one of the following two versions of RadEditor for MOSS:
    4.3.2 or 4.4.


    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  14. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 09 Oct 2007 Link to this post

    Hi,
        Please carefully read my penultimate post!!! I have not asked for Flash embed.
  15. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 09 Oct 2007 Link to this post

    Hi Vinod,

    Please, excuse me for my mistake!

    The IFRAME and OBJECT, EMBED and SCRIPT HTML elements are stripped by default by MOSS 2007.

    In the WCM scenario, RadEditor for MOSS 2007 (version 4.3.2 or 4.4) handles this scenario and keeps these tags when the AllowSpecialTags property is to true. You can set this property in the current page using SharePoint Designer. Click here for more information.

    So all you need to do is to make sure that you are using either version  4.3.2 or 4.4. and set the AllowSpecialTags property to true. Thus the IFRAME tags will be not stripped by MOSS 2007.

    Kind regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  16. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 09 Oct 2007 Link to this post

    Hi,
     You forgot to reply for a second part...
    I changed the title of the page and changed some content in the editor. Now i pressed F5 (Refresh). The title content alone saved automatically, but the editor content was not save... What to do for this?

  17. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 09 Oct 2007 Link to this post

    Hi Vinod,

    Is this functionality supported by the built-in MOSS editor? If it is supported by the standard editor of MOSS 2007, then we could try to implement the auto save feature in RadEditor too.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  18. Dev Team
    Dev Team avatar
    69 posts
    Member since:
    Oct 2006

    Posted 10 Oct 2007 Link to this post

    Hi,
        Ofcourse, It should have done. But currently it is not having the feature i think so... Please check it & reply to me. I deployed the radeditor and tested the same. Autosave is not working in radeditor.
  19. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 11 Oct 2007 Link to this post

    Hi,

    Perhaps, I have not explained correctly, but RadEditor does not currently support the auto save functionality. If I have understand you correctly, you assume that the Auto Save functionality is supported by the MOSS built-in editor.
    I logged your future request in our ToDo list and I notified our developers. We will consider your request and if possible we will implement it.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  20. Ruben Venneker
    Ruben Venneker avatar
    1 posts
    Member since:
    May 2008

    Posted 03 Nov 2008 Link to this post

    Hello,

    We are also facing the issue of:

    2. While editing the page, in the IE status bar, it says, "Please wait while scripts are loaded". This remains forever.

    The code we use for the rad editor is:

    <add tagPrefix="radE" namespace="Telerik.SharePoint.FieldEditor" assembly="RadEditorSharePoint, Version=5.3.2.0, culture=neutral, PublicKeyToken=1f131a624888eeed" />

    I hope you can provide us with a solution.

    Best regards,
    Bas Hammendorp
  21. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 05 Nov 2008 Link to this post

    Hi Bas,

    Please make sure that you have completely integrated ASP.NET AJAX with Sharepoint. You can check the steps in the following article:  http://blogs.msdn.com/sharepoint/archive/2007/03/02/integrating-asp-net-ajax-with-sharepoint.aspx

    Kind regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top