RadEditor for WCM SharePoint SpecialTags and scripts

42 posts, 1 answers
  1. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 20 Sep 2009 Link to this post

    I am using RadEditor for SharePoint 5.5.0.0 for a client of ours.

    The requirement is to enable embedding flash/youtube videos in to the page content.

    I followed the instructions from other threads here on the forum

    1) In the ConfigFile.xml

    <configuration>
      <property name="AllowScripts">true</property>
      <property name="AllowThumbGeneration">True</property>
      <property name="ConvertToXhtml">True</property>
      <property name="EnableDocking">False</property>
      <property name="ShowHtmlMode">True</property>
      <property name="ShowPreviewMode">False</property>
      <property name="StripAbsoluteAnchorPaths">False</property>
      <property name="StripAbsoluteImagesPaths">False</property>
      <property name="ToolbarMode">ShowOnFocus</property>
      <property name="ToolsWidth">800px</property>
      <property name="NewLineBr">False</property>
      <property name="ImagesPaths">
        <item>SiteCollectionImages</item>
      </property>
    </configuration>

    2) In the page layout, i have set AllowSpecialTags="true"




    radE is the tagprefix for telerik defined on the page header

    <%@ Register TagPrefix="radE" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint, Version=5.5.0.0, culture=neutral, PublicKeyToken=1f131a624888eeed" %>


    3) When the page is published the render DOESNOT show the videos. When I do a view source, I get





    <pre style="display:none" id=RadEditorEncodedTag>PEVNQkVEIHN0eWxlPSJXSURUSD.............

    this wraps all the special areas where special tags are placed.

    How do I force these to display with proper decoding of tags ?

    Can someone help me fix what I am doing wrong ?

    Thanks.



  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 22 Sep 2009 Link to this post

    Hello Midhun Kumar Allu,

    What I suggest you to do is upgrade to the latest version of RadEditor for MOSS, which is 5.5.1. You can find upgrade instructions in the following help article http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html.

    Also you need to know that there are some obsolete properties in the ConfigFile.xml.
    When you upgrade to the newer version just add the following properties.
    <property name="AllowScripts">true</property> 
    <property name="NewLineBr">False</property> 
    <property name="ImagesPaths"
        <item>SiteCollectionImages</item> 
    </property> 

    If you are using the RadEditor in WCM you need to replace the RichHtmlField whith the following
    <telerik:RadHtmlField id="Content" FieldName="..." runat="server" AllowScripts="true" AllowSpecialTags="true"></telerik:RadHtmlField> 

    I hope this helps.


    Best wishes,
    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. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 22 Sep 2009 Link to this post

    Stanmir,

    I followed your instructions with the new RadEditor 5.5.1.0 and I still face the issue.

    Here are the code snippets

    The layout page has the following :

        <radE:RadHtmlField id="RadHtmlField1" FieldName="Page Content" runat="server" AllowScripts="true" AllowSpecialTags="true"></radE:RadHtmlField> 

    The config file is as follows

    <configuration> 
        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">800px</property>  
        <property name="AllowScripts">true</property>  
        <property name="NewLineBr">False</property>  
        <property name="ImagesPaths">  
            <item>SiteCollectionImages</item>  
        </property>  
    </configuration> 

    The page has the correct registration.

    The html rendered is as follows :

    <pre style="display:none" id=RadEditorEncodedTag>PHNjcmlwdCB0eXBlPSJ0..... 

    This is happening around the place where I have put <script> tags and also <embed tags which are to insert the youtube video.

    I thought RadEditor captures the special tags encodes them and decodes them on to the page render.

    I see the encoding part working fine, but the decode is the one i am wondering why it isn't working.

    Is there any further changes I need to do.

    Is RadEditor for MOSS sufficient or do I need to install any further components ?





  4. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 23 Sep 2009 Link to this post

    The users have just identified the issue when they are uploading pictures.

    They are getting the following error

    Server Error in '/' Application. 
    -------------------------------------------------------------------------------- 
     
    List does not exist 
     
    The page you selected contains a list that does not exist.  It may have been deleted by another user.  
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  
     
    Exception Details: System.Runtime.InteropServices.COMException: List does not exist 
     
    The page you selected contains a list that does not exist.  It may have been deleted by another user. 
     
    Source Error:  
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.   
     
    Stack Trace:  
     
     
    [COMException (0x81020026): List does not exist 
     
    The page you selected contains a list that does not exist.  It may have been deleted by another user.] 
       Microsoft.SharePoint.Library.SPRequestInternalClass.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +0 
       Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +169 
     
    [SPException: List does not exist 
     
    The page you selected contains a list that does not exist.  It may have been deleted by another user.] 
       Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) +210 
       Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName) +1436 
       Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName) +78 
       Microsoft.SharePoint.SPListCollection.ItemByInternalName(String strInternalName, Boolean bThrowException) +122 
       Microsoft.SharePoint.SPListCollection.GetListById(Guid uniqueID, Boolean bThrowException) +77 
       Microsoft.SharePoint.SPListCollection.get_Item(Guid uniqueID) +57 
       Telerik.SharePoint.Editor.SPContentProvider.GetPermissions(Guid listId, SPWeb web) +46 
       Telerik.SharePoint.Editor.SPContentProvider.GetPermissions(SPFolder folder) +65 
       Telerik.SharePoint.Editor.SPContentProvider.CreateDirectoryItem(SPFolder folder) +102 
       Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) +27 
       Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) +4 
       Telerik.Web.UI.RadFileExplorer.GetExplorerData(String path, String sortExpression, Int32 startIndex, Int32 maxRowNumber, Boolean includeFiles, String control, Int32& itemsCount) +198 
       Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode) +227 
       Telerik.Web.UI.RadFileExplorer.BindExplorer() +625 
       Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +165 
       System.Web.UI.Control.LoadRecursive() +47 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Control.LoadRecursive() +131 
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436 
     
      
     

    We are facing the same issue too. I used the same config file you mentioned last time.

    <configuration> 
        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">800px</property>  
        <property name="AllowScripts">true</property>  
        <property name="NewLineBr">False</property>  
        <property name="ImagesPaths">  
            <item>SiteCollectionImages</item>  
        </property>  
    </configuration> 

    Same issue here.

    I then reverted to the old version of the config file

    <configuration> 
        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">800px</property>  
        <property name="AllowScripts">true</property>  
        <property name="NewLineBr">False</property>  
        <property name="ImagesPaths">  
            <item>SiteCollectionImages</item>  
        </property>  
        <property name="ShowHtmlMode">True</property> 
        <property name="ShowPreviewMode">False</property> 
        <property name="StripAbsoluteAnchorPaths">False</property> 
        <property name="StripAbsoluteImagesPaths">False</property> 
    </configuration> 

    I didNOT do an iisreset for it is a production site.

    Let me know what is to be done.

    From the other thread with the same issue.

    The event logs states the following

    Event Type: Warning 
    Event Source:   ASP.NET 2.0.50727.0 
    Event Category: Web Event  
    Event ID:   1309 
    Date:       9/23/2009 
    Time:       11:35:48 AM 
    User:       N/A 
    Computer:   XXXXXXXXX 
    Description: 
    Event code: 3005  
    Event message: An unhandled exception has occurred.  
    Event time: 9/23/2009 11:35:48 AM  
    Event time (UTC): 9/23/2009 3:35:48 PM  
    Event ID: c61774263cca4784ace81829400bd418  
    Event sequence: 90916  
    Event occurrence: 7  
    Event detail code: 0  
      
    Application information:  
        Application domain: /LM/W3SVC/1606467967/Root-1-128981565150625000  
        Trust level: Full  
        Application Virtual Path: /  
        Application Path: C:\Path to webapplication\  
        Machine name: XXXXXXXXXX  
      
    Process information:  
        Process ID: 4896  
        Process name: w3wp.exe  
        Account name: DOMAIN\USERNAME  
      
    Exception information:  
        Exception type: SPException  
        Exception message: List does not exist 
     
    The page you selected contains a list that does not exist.  It may have been deleted by another user.  
      
    Request information:  
        Request URL: http://websiteaddress/_wpresources/RadEditorSharePoint/5.5.1.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageManager&Skin=Default&Title=Image+Manager&doid=b20efd04-4a28-4e7c-a64d-b84f30fa095a&dpptn=  
        Request path: /_wpresources/RadEditorSharePoint/5.5.1.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx  
        User host address: HOSTIPADDRESS  
        User: ACCOUNT\username  
        Is authenticated: True  
        Authentication Type: NTLM  
        Thread account name: ACCOUNT\username  
      
    Thread information:  
        Thread ID: 20  
        Thread account name: ACCOUNT\username  
        Is impersonating: False  
        Stack trace:    at Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) 
       at Microsoft.SharePoint.SPListCollection.EnsureListsData(Guid webId, String strListName) 
       at Microsoft.SharePoint.SPListCollection.EnsureListsData(String strListName) 
       at Microsoft.SharePoint.SPListCollection.ItemByInternalName(String strInternalName, Boolean bThrowException) 
       at Microsoft.SharePoint.SPListCollection.GetListById(Guid uniqueID, Boolean bThrowException) 
       at Microsoft.SharePoint.SPListCollection.get_Item(Guid uniqueID) 
       at Telerik.SharePoint.Editor.SPContentProvider.GetPermissions(Guid listId, SPWeb web) 
       at Telerik.SharePoint.Editor.SPContentProvider.GetPermissions(SPFolder folder) 
       at Telerik.SharePoint.Editor.SPContentProvider.CreateDirectoryItem(SPFolder folder) 
       at Telerik.SharePoint.Editor.SPContentProvider.ResolveDirectory(String path) 
       at Telerik.SharePoint.Editor.SPContentProvider.ResolveRootDirectoryAsTree(String path) 
       at Telerik.Web.UI.RadFileExplorer.GetExplorerData(String path, String sortExpression, Int32 startIndex, Int32 maxRowNumber, Boolean includeFiles, String control, Int32& itemsCount) 
       at Telerik.Web.UI.RadFileExplorer.PopulateTreeNode(RadTreeNode currNode) 
       at Telerik.Web.UI.RadFileExplorer.BindExplorer() 
       at Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Control.LoadRecursive() 
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
      
      
    Custom event details:  
     
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 
     







  5. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 23 Sep 2009 Link to this post

    I removed the ImagesPaths property in the Config file and the problem is fixed for the list not found.

      <property name="ImagesPaths"
        <item>SiteCollectionImages</item> 
      </property> 

    The render still doesnot work though with special tags and scripts
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Sep 2009 Link to this post

    Hi Midhun,

    The reason you see this error is that the page is referencing another file that does not have a published version. This file could be a page layout or a master page file. If you go to the master page gallery and publish a version of both the page layout and the master page, you will be able to see your page without any errors.

    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.
  7. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 25 Sep 2009 Link to this post

    Looks like I messed up the thread with the other issue which was List not found.

    Should I mark this as closed and open a new thread for the scripts and special tags issue which is the primary question ?

    Thanks,
  8. Answer
    Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 28 Sep 2009 Link to this post

    Hi Midhun,

    Yes mark this thread as closed and open a new one regarding your scripts problem.


    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.
  9. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    7 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    I am marking this as an answer for the list not found problem. I am going to repeat the thread again for the scripts problem.
  10. Midhun Kumar Allu
    Midhun Kumar Allu avatar
    1 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

    Stanmir,

    I followed your instructions with the new RadEditor 5.5.1.0 and I still face the issue.

    Here are the code snippets

    The layout page has the following :

        <radE:RadHtmlField id="RadHtmlField1" FieldName="Page Content" runat="server" AllowScripts="true" AllowSpecialTags="true"></radE:RadHtmlField> 

    The config file is as follows

    <configuration> 
        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">800px</property>  
        <property name="AllowScripts">true</property>  
        <property name="NewLineBr">False</property>  
        <property name="ImagesPaths">  
            <item>SiteCollectionImages</item>  
        </property>  
    </configuration> 

    The page has the correct registration.

    The html rendered is as follows :

    <pre style="display:none" id=RadEditorEncodedTag>PHNjcmlwdCB0eXBlPSJ0..... 

    This is happening around the place where I have put <script> tags and also <embed tags which are to insert the youtube video.

    I thought RadEditor captures the special tags encodes them and decodes them on to the page render.

    I see the encoding part working fine, but the decode is the one i am wondering why it isn't working.
  11. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 08 Oct 2009 Link to this post

    Hello Midhun,

    Could you send me the HTML code that you are trying to insert in the RadEditor? This way I will be able to test it on our server and help you further.


    Regards,
    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.
  12. Joe
    Joe avatar
    16 posts
    Member since:
    Nov 2008

    Posted 03 Nov 2009 Link to this post

    Stanimir,

    I have cheked that the masterpage and page layouts are checked in but I am still getting the error:

    List does not exist

    The page you selected contains a list that does not exist.  It may have been deleted by another user.   at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount)
       at Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount)


    This error comes up when I try to browse to a link, or browse to an image.
    What can I do to resolve this problem?
    Joe


  13. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 04 Nov 2009 Link to this post

    Hi Joe,

    If you set the ImagesPaths property to "SiteCollectionImages", you need to make sure that you have such library in the site collection root and in all subsites. If there is no such library you will receive the "List does not exist The page you selected contains a list that does not exist.  It may have been deleted by another user." error.

    Kind regards,
    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.
  14. Matthijs Wensveen
    Matthijs Wensveen avatar
    9 posts
    Member since:
    Dec 2009

    Posted 14 Dec 2009 Link to this post

    I am experiencing the same issue with the "RadEditorEncodedTag". This thread marked closed because of another issue that was solved, but I couldn't find a new thread regarding this issue.

    Has this been solved?
    Thanks,
    Matthijs
  15. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Dec 2009 Link to this post

    Hi Matthijs,

    What I suggest you to do is upgrade to the latest version of RadEditor for MOSS, which is 5.6.1. You can find upgrade instructions in the following help article http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html.

    Add the following code to the respective ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.6.1.0__1f131a624888eeed/Resources/ folder.
    <property name="AllowScripts">true</property>


    If you are using the RadEditor in WCM you need to replace the RichHtmlField whith the following
    <telerik:RadHtmlField id="Content" FieldName="..." runat="server" AllowScripts="true" AllowSpecialTags="true"></telerik:RadHtmlField> 


    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.
  16. Matthijs Wensveen
    Matthijs Wensveen avatar
    9 posts
    Member since:
    Dec 2009

    Posted 15 Dec 2009 Link to this post

    (cross-posting this from because I thought it might be worthwhile for others)

    Just to let you know, it's possible to put the SafeControl and assemblyBinding elements in the machine.config file. You will need to add the appropriate configSection for this, though. This could make things easier when the solution package (.wsp) is deployed across a large number of sites.

    Best regards,
    Matthijs Wensveen
  17. Matthijs Wensveen
    Matthijs Wensveen avatar
    9 posts
    Member since:
    Dec 2009

    Posted 15 Dec 2009 Link to this post

    Unfortunately, the upgrade did not solve my problem, so I was still stuck with the RadEditorEncodedTag.
    I worked around this by base64-decoding the tag in javascript and replacing the tag with this. This works but I feel something must be going wrong in that RadEditor should do this automatically for me. Right?

    Best regards,
    Matthijs
  18. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 17 Dec 2009 Link to this post

    Hi Matthijs,

    Could you tell me which version of RadEditor for MOSS you are using? Also send me the HTML code that you are trying to insert in the editor. This way I will be able to reproduce the issue on our test server.


    Kind regards,
    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.
  19. Matthijs Wensveen
    Matthijs Wensveen avatar
    9 posts
    Member since:
    Dec 2009

    Posted 17 Dec 2009 Link to this post

    I'm using version 5.6.1, which I believe is the most current version.

    The html I'm trying to use is:
    Some sample content. <br> 
    <script>alert('bla');</script> 
    <img alt="" style="width:169px;float:right;height:107px" src="/WieZijnWij/PublishingImages/banner1.gif">Tekst te kst teks t t ekst 

    When I load the page, the resulting html is:
    Some sample content. <br> 
    <pre style="display:none" id=RadEditorEncodedTag>PHNjcmlwdD5kb2N1bWVudC53cml0ZSgnYmxhJyk7PC9zY3JpcHQ+</pre> 
    <img alt="" style="width:169px;float:right;height:107px" src="/WieZijnWij/PublishingImages/banner1.gif">Tekst te kst teks t t ekst 

    I suspect there should be some script or server-side code that automatically decodes this, but that it isn't running for some reason.
    Thanks,
    Matthijs


  20. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 22 Dec 2009 Link to this post

    Hello Matthijs Wen,
    I apologize for the late response. I tested the provided content and was able to insert the javascript in the content. Please provide me with the source code of your page layout. The one from SharePoint designer where you replace the PublishingWebControls:RichHtmlField with telerik:RadHtmlField. Also send me the ConfigFile.xml, which is located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder. I will need these in order to help you further.

    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.
  21. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 04 Feb 2010 Link to this post

    Hi!

    I am having the same problem with RADEditor 5.6.0.0.
    All scripts/media is stripped when i save or check in the page to MOSS.
  22. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 04 Feb 2010 Link to this post

    Hi Ulf,
    Review the following online help article http://www.telerik.com/help/aspnet-ajax/scripts-in-radeditor.html.

    Greetings,
    Stanimir
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  23. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 04 Feb 2010 Link to this post

    Tanks for quick answer.
    Things I did:

    1. Added <property name="AllowScripts">true</property> to ConfigFile.xml
    2. Added <radE:RadHtmlField ID="RadHtmlField1" runat="server" FieldName="PublishingPageContent" DisableInputFieldLabel="true" DisplayWidth="100%" AllowScripts="true" AllowSpecialTags="true"  /> to the Pagelayout.

    The SWF shows up fine as long as I do not save or check in the page. Seems like MOSS kills all <object> tags when checking in a page.

    HTML content of RadHtmlField1 before check in:

    text before flash  
    <br /> 
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="150">  
    <param name="Movie" value="/Documents/Media/test_flash.swf"/>  
    <param name="play" value="true"/>  
    <param name="quality" value="high"/>  
    <param name="wmode" value="transparent"/>  
    <param name="loop" value="false"/>  
    <param name="menu" value="false"/><embed src="/Documents/Media/test_flash.swf" width="150" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="transparent" loop="false" menu="false"></embed></object>  
    <br /> 
    text after flash 

    And after check in:
    text before flash   
    <br /> 
    <br /> 
    text after flash 
  24. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 04 Feb 2010 Link to this post

    Hello Ulf,
    I was not able to reproduce the issue. For your convenience i created a small video with my test. Inform me if I am doing anything wrong.

    Also I made my test by using the latest version of RadEditor for MOSS, which is 5.6.2. Please upgrade to it. This might resolve the issue. You can find upgrade instructions in the following help article http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html.

    Sincerely yours,
    Stanimir
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  25. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 04 Feb 2010 Link to this post

    Hi Ulf,
    Here is the video.

    Kind regards,
    Stanimir
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  26. Ulf
    Ulf avatar
    9 posts
    Member since:
    Feb 2009

    Posted 04 Feb 2010 Link to this post

    Thanks again for the quick help.
    I am now setting up a fresh install of MOSS in a VM to check this out.
    We upgraded our QA environment from the free version 4.5.6.0 to 5.6.0.0. Maybe something went wrong while upgrading.
    Keeping you informed...

    EDIT: Fresh install with v 5.6.2.0 works like charm!
  27. Klaus
    Klaus avatar
    17 posts
    Member since:
    Mar 2010

    Posted 03 Mar 2010 Link to this post

    I have just downloaded the 5.6.2.0 version of the Radeditor for MOSS and installed it.

    After inserting a swf file via the FlashManager component, I see the flash perfecly fine in edit mode. After checkin/publishing the flash is gone and there is no flash-markup in the page. Not even the <pre> tag that is mentioned in this thread. Any ideas what could be wrong?

    The pagelayout uses a standard MOSS RichHtmlField, and I have modified the TelerikRadEditorHtml.ascx file that is located in the CONTROLTEMPLATES folder as follows: 

     

    <SharePoint:RenderingTemplate ID="RichHtmlField" runat="server">  
        <Template> 
            <telerik:ScriptManagerConditional id="TelerikScriptManager1" runat="Server" /> 
            <div id="originalEditorContainer" runat="server">  
                <CMS:HtmlEditor ID="RichHtmlField" runat="server" /> 
            </div> 
            <telerik:RadHtmlField ID="RadHtmlField1" runat="server" AllowScripts="true" AllowSpecialTags="true" /> 
        </Template> 
    </SharePoint:RenderingTemplate> 

     

     

    The radeditor is besides the flash issue working as expected.

    Thanks.

  28. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 04 Mar 2010 Link to this post

    Hello Klaus Lisberg,
    Could you try if setting the FieldName property of the RadHtmlFiled to be the same as the FieldName property of the replaced RichHtmlField will solve the issue. If this does not help, send me your ConfigFile.xml and the source code which you have in the editor before you check-in the page.

    All the best,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  29. Klaus
    Klaus avatar
    17 posts
    Member since:
    Mar 2010

    Posted 04 Mar 2010 Link to this post

    Hi Stanimir thanks for the quick reply.

    I tried to add the FieldName property, but it didn't resolve the issue.

    I have attached a couple of files.

    The modified telerikradeditorhtml.ascx
    <%@ Control Language="C#" AutoEventWireup="false" %> 
    <%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
    <%@ Assembly Name="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %> 
    <%@ Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" %> 
    <%@ Register TagPrefix="CMS" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Publishing.WebControls" %> 
    <%@ Register TagPrefix="telerik" Assembly="RadEditorSharePoint, Version=5.6.2.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" %> 
    <%@ Register TagPrefix="rad" Assembly="Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" %> 
    <SharePoint:RenderingTemplate ID="RichHtmlField" runat="server">  
        <Template> 
            <telerik:ScriptManagerConditional id="TelerikScriptManager1" runat="Server" /> 
            <div id="originalEditorContainer" runat="server">  
                <CMS:HtmlEditor ID="RichHtmlField" runat="server" /> 
            </div> 
            <telerik:RadHtmlField ID="RadHtmlField1" FieldName="PublishingPageContent" runat="server" AllowScripts="true" AllowSpecialTags="true" /> 
        </Template> 
    </SharePoint:RenderingTemplate> 
     


    The configfile.xml
    <?xml version="1.0" encoding="utf-8" ?> 
    <!-- ==============================================================================================  
        Config File valid structure:  
        <configuration> 
        <property>...</property> 
        ...  
            <property> 
                <item>...</item> 
                <item>...</item> 
                ...  
            </property> 
            ...  
        </configuration> 
    =============================================================================================== --> 
    <configuration> 
      <property name="AllowScripts">true</property> 
      <property name="NewLineBr">False</property> 
      <property name="ToolbarMode">Floating</property> 
        <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.6.2.0__1f131a624888eeed/Resources/</property> 
        <property name="AllowThumbGeneration">True</property> 
        <property name="ConvertToXhtml">False</property> 
        <property name="EnableDocking">False</property> 
        <property name="ShowHtmlMode">True</property> 
        <property name="ShowPreviewMode">False</property> 
        <property name="ToolbarMode">ShowOnFocus</property> 
        <property name="ToolsWidth">570px</property> 
        <property name="Skin">Telerik</property> 
        <property name="Width">100%</property> 
        <property name="Height">700px</property> 
        <property name="MaxImageSize">524288</property> 
        <property name="ImagesPaths">  
            <item>/SiteCollectionImages</item> 
            <item>PublishingImages</item> 
            <item>Konverterede billeder</item> 
        </property> 
        <property name="DocumentsPaths">  
            <item>Filer</item> 
            <item>Sider</item> 
        </property> 
    </configuration> 

    The control where the richhtmlfield is being used.
    <%@ Control Language="C#" Inherits="DAAS.WebInfo.Design.Client.ContentPageText, DAAS.WebInfo.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f192aeb827ef4bcc" %> 
    <%@ Register Tagprefix="wss" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>   
    <%@ Register Tagprefix="moss" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>   
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>   
    <%@ Register TagPrefix="DAAS" Namespace="DAAS.WebInfo.Design.Client" Assembly="DAAS.WebInfo.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f192aeb827ef4bcc" %> 
    <h1><wss:TextField ID="TextFieldTitle" FieldName="Title" runat="server" /></h1>  
    <strong><wss:NoteField ID="NoteFieldComments" FieldName="Comments" runat="server" /></strong>  
    <asp:Panel ID="PanelDownloadLink" runat="server" Visible="false">  
        <div id="binaryImg">  
            <href="?download=true">  
                <moss:RichImageField ID="RichImageFieldPublishingRollupImage" FieldName="PublishingRollupImage" runat="server" /> 
            </a> 
            <div class="binaryDownloadLink">  
                Hent: <DAAS:BinaryDownloadLink id="BinaryDownloadLink" runat="server" /> 
            </div> 
        </div> 
    </asp:Panel> 
    <!-- Indexing Begin --> 
    <moss:RichHtmlField ID="RichHtmlField1" FieldName="PublishingPageContent" runat="server" /> 
    <!-- Indexing End --> 
    <WebPartPages:WebPartZone runat="server" ID="BottomMiddleColumnZone" 
        AllowPersonalization="true" 
        FrameType="TitleBarOnly"   
        Title="<%$Resources:cms,WebPartZoneTitle_Top%>"   
        QuickAdd-ShowListsAndLibraries="false" 
        Orientation="Vertical">  
        <ZoneTemplate></ZoneTemplate>  
    </WebPartPages:WebPartZone> 

    The html when the flash is inserted looks like this from the editors html view (still being in edit mod):
    before<br /> 
    <br /> 
    <object height="150" width="150" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">  
    <param name="Movie" value="/SiteCollectionImages/animals1.swf"/>  
    <param name="play" value="true"/>  
    <param name="quality" value="high"/>  
    <param name="wmode" value="transparent"/>  
    <param name="loop" value="false"/>  
    <param name="menu" value="false"/><embed src="/SiteCollectionImages/animals1.swf" width="150" height="150" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="transparent" loop="false" menu="false"></embed></object><br /> 
    <br /> 
    after 

    The page looks like this after it is published:
    <!-- Indexing Begin --> 
    <div id="ctl00_PlaceHolderMain_ctl01_RichHtmlField1__ControlWrapper_RichHtmlField" style="display:inline">before<br> 
    <br> 
     
     
     
     
     
     
    <br> 
    <br> 
    after</div> 
    <!-- Indexing End --> 


    Best regards
    - Klaus
  30. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 08 Mar 2010 Link to this post

    Hello Klaus ,

    I apologize for the inconvenience, you should not modify the TelerikRadEditorHtml.ascx, which is located in Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES folder. It should look like this:
    <%@ Control Language="C#" AutoEventWireup="false" %>
    <%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Assembly Name="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" %>
    <%@ Register TagPrefix="CMS" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Publishing.WebControls" %>
    <%@ Register TagPrefix="telerik" Assembly="RadEditorSharePoint, Version=5.6.2.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" %>
    <%@ Register TagPrefix="rad" Assembly="Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" %>
    <SharePoint:RenderingTemplate ID="RichHtmlField" runat="server">
        <Template>
            <telerik:ScriptManagerConditional id="TelerikScriptManager1" runat="Server" />
            <div id="originalEditorContainer" runat="server">
                <CMS:HtmlEditor ID="RichHtmlField" runat="server" />
            </div>
            <telerik:RadHtmlField ID="RadHtmlField1" runat="server" />
        </Template>
    </SharePoint:RenderingTemplate>

    Regarding the ConfigFile.xml, you should know that the following properties are obsolete: AllowThumbGeneration, ConvertToXhtml, EnableDocking, ShowHtmlMode, ShowPreviewMode.
    Your ConfigFile.xml, should look like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- ==============================================================================================
        Config File valid structure:
        <configuration>
        <property>...</property>
        ...
            <property>
                <item>...</item>
                <item>...</item>
                ...
            </property>
            ...
        </configuration>
    =============================================================================================== -->
    <configuration>
        <property name="AllowScripts">true</property>
        <property name="NewLineBr">False</property>
        <property name="ToolbarMode">Floating</property>
        <property name="ExternalDialogsPath">/_wpresources/RadEditorSharePoint/5.6.2.0__1f131a624888eeed/Resources/</property>
        <property name="ToolsWidth">570px</property>
        <property name="Skin">Telerik</property>
        <property name="Width">100%</property>
        <property name="Height">700px</property>
        <property name="MaxImageSize">524288</property>
        <property name="ImagesPaths">
            <item>/SiteCollectionImages</item>
            <item>PublishingImages</item>
            <item>Konverterede billeder</item>
        </property>
        <property name="DocumentsPaths">
            <item>Filer</item>
            <item>Sider</item>
        </property>
    </configuration>

    Regarding the ExternalDialogsPath property, if you modified a certain dialog in previously used version, what you should do is get the respective dialog ascx file from the EditorDialogs folder, which comes with the RadControls installation and make the changes again.

    Finally the control where the richhtmlfield is being used should look like this:
    <%@ Control Language="C#" Inherits="DAAS.WebInfo.Design.Client.ContentPageText, DAAS.WebInfo.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f192aeb827ef4bcc" %>
    <%@ Register Tagprefix="wss" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>  
    <%@ Register Tagprefix="moss" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>  
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>  
    <%@ Register TagPrefix="DAAS" Namespace="DAAS.WebInfo.Design.Client" Assembly="DAAS.WebInfo.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f192aeb827ef4bcc" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint, Version=5.6.2.0, culture=neutral, PublicKeyToken=1f131a624888eeed" %>
     
    <h1><wss:TextField ID="TextFieldTitle" FieldName="Title" runat="server" /></h1>
    <strong><wss:NoteField ID="NoteFieldComments" FieldName="Comments" runat="server" /></strong>
    <asp:Panel ID="PanelDownloadLink" runat="server" Visible="false">
        <div id="binaryImg">
            <a href="?download=true">
                <moss:RichImageField ID="RichImageFieldPublishingRollupImage" FieldName="PublishingRollupImage" runat="server" />
            </a>
            <div class="binaryDownloadLink">
                Hent: <DAAS:BinaryDownloadLink id="BinaryDownloadLink" runat="server" />
            </div>
        </div>
    </asp:Panel>
    <!-- Indexing Begin -->
    <telerik:RadHtmlField id="RichHtmlField1" FieldName="PublishingPageContent" runat="server" AllowScripts="true" AllowSpecialTags="true"></telerik:RadHtmlField>
    <!-- Indexing End -->
    <WebPartPages:WebPartZone runat="server" ID="BottomMiddleColumnZone"
        AllowPersonalization="true"
        FrameType="TitleBarOnly"
        Title="<%$Resources:cms,WebPartZoneTitle_Top%>"
        QuickAdd-ShowListsAndLibraries="false"
        Orientation="Vertical">
        <ZoneTemplate></ZoneTemplate>
    </WebPartPages:WebPartZone>



     


    All the best,
    Stanimir
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top