snippets - Could not find the command InsertSnippet - Please update your command list

7 posts, 0 answers
  1. Tony
    Tony avatar
    4 posts
    Member since:
    Jun 2008

    Posted 09 Sep 2009 Link to this post

    Hi,

    I have an issue with RadEditor version 4.5.3.0 using snippets on a Sharepoint 2007 site. We have added snippets to the tools file and can see these in the dropdown, when I select one however I get the message : 'Could not find the command InsertSnippet - Please update your command list'.

    We have this working fine on our production environment fine but we have now created a staging environment for future work and have this issue. The tools and config files are copied from production so are the same.

    My initial thoughts were that this was a licensing issue, as I know snippets are not available in the lite version. However I can use strikethrough which I understand is also unavailable in the lite version.

    Can you firstly please confirm that 4.5.3.0 is the fully fledged version, or if this assembly version could be either, how can I tell if I have the fully fledged version?

    Assuming I have, can you suggest why it cannot find the command?

    I can see some references to this command within the Telerik .js files, I can also reflect on the assemblies and see some stuff relating to snippets, but strugling to marry them up. Can you suggest what I should be looking for and checking to make sure this command is actually present and the editore can find it?

    Rich
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 10 Sep 2009 Link to this post

    Hello Tony,

    I attached a document where you can see the features available in the different versions of RadEditor for MOSS. In your case I suggest you to upgrade to the full ajax version of the RadEditor. In order to download it you should go to the Downloads section under your account, click on the Visual Studio Extensions, DLLs, Scripts, Source Code, DNN and MOSS wrappers ... link and download the RadEditor for MOSS: (zip, 13 MB) installation.

    You can find upgrade instructions in the following help article http://www.telerik.com/help/aspnet-ajax/upgrade-instructions-from-v4-to-v5.html.

    Sincerely yours,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  3. Tony
    Tony avatar
    4 posts
    Member since:
    Jun 2008

    Posted 24 Sep 2009 Link to this post

    We have managed to determine by debugging the javascript that the RadEditor.js being loaded into the browser via WebResource.axd is NOT the RadEditor.js on the filesystem in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.3.0__1f131a624888eeed\RadControls\Editor\Scripts\7_3_3. 


    The one on disk is longer and loads the Insert Snippet command at line 10011. 
    The one loaded via SharePoint is shorter by 300 lines and doesn't contain many commands after the spellchecker is loaded. So it's like you have the Full version installed on disk, but the Lite version installed as a solution in MOSS? We also don't know if it's loading the MOSSEditorTools.js from disk or SharePoint.

    We have retracted and removed the lite version solution and redeployed the 4.5.3 version that is working on our live environment. So it looks like the retraction of the solution has failed to remove the RadEditor.js file, or the cut down version is being cached somewhere.

    To answer a few question raised by your colleague Brandon Strange:

    1-     what differences exist between the two environments

        nothing notable
    2-     Have you gone through the full installation instructions in the new staging environment

        yes
    3-     Do the files on the staging and production match as far as file info and size

                      Yes, but see above, it does not look like it is loading the file that is on disk   
                   
    Does RadEditor.js get loaded into Sharepoint as well as on disk? If so where?
    Does RadEditor.js get cached anywhere?
    Why would the version it is using and the version on disk differ?
    Why would retracting the lite solution and deploying the full version not cause the full version of RadEditor.js on disk to be used?

  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Sep 2009 Link to this post

    Hi Tony,

    Could you please tell us which full version you are trying to deploy?

    If you are trying to deploy the full 5.4.1 version, you need to follow these instructions http://www.telerik.com/help/aspnet-ajax/upgrade-instructions-from-v4-to-v5.html.

    If you are deploying the full version of RadEditor for MOSS 4.5.3, then the easiest way of telling that you installed the correct one is checking the Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.x.x.x__1f131a624888eeed/RadControls/Editor/Skins folder. If you can see more than two skin sub folders, then you installed the correct full version. 




    Greetings,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Tony
    Tony avatar
    4 posts
    Member since:
    Jun 2008

    Posted 28 Sep 2009 Link to this post

    It is version 4.5.3.0 that we are trying to use.

    As suggested, I have checked the presence of multiple skin sub folders and there are more than 2.

    I also think we have got the full version installed as I can use strikethrough which is apparently only available in the full version.

    So it seems we have a problem with the snippets command, and the root cause would appear to be as previously mentioned...
    The one on disk is longer and loads the Insert Snippet command at line 10011. The one loaded via SharePoint is shorter by 300 lines and doesn't contain many commands after the spellchecker is loaded

    Any ideas why this would be? Is it cached in sharepoint? Can we force it to be loaded from disk, by doing something along the lines of deleting the ghosted version in Sharepoint? Where would it be stored apart from C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.3.0__1f131a624888eeed\RadControls\Editor\Scripts\7_3_3  ?

    Regards
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 30 Sep 2009 Link to this post

    Hello Tony,

    The reason for this behavior is that by default the RadEdiotr for MOSS uses the embedded in the RadEditor.Net2.dll resources. This is why you see difference between the loaded file and the one on the disc.

    Here is what you can do.

    1. You can set the UseEmbeddedScripts property to false. In order to do this modify the respective ConfixFile.xml and ListConfigFile.xml, which are located in the Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/4.x.x.x__1f131a624888eeed/RadControls/Editor folder. Add the following code.
    <property name="UseEmbeddedScripts">false</property> 

    OR

    2. Make sure that you have the correct dll files in the GAC. You can rename the RadEditorMOSS.wsp to RadEditorMOSS.cap and extract the files in it by any archiving program. There you can find RadEditor.Net2.dll and RadEditorSharePoint.dll. Just replace the current dlls in the GAC with the once from the wsp file.

    I hope this helps.

    All the best,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Tony
    Tony avatar
    4 posts
    Member since:
    Jun 2008

    Posted 05 Oct 2009 Link to this post

    the first method fixed the problem. I then found i could later remove that property again and it still works, so I am guessing it was a caching issue.

    Many thanks for your help!!!
Back to Top