RadEditor Webpart does not work in wiki pages

4 posts, 0 answers
  1. Andreas
    Andreas avatar
    4 posts
    Member since:
    Mar 2013

    Posted 15 Apr 2013 Link to this post

    Hi,

    I insert the "Telerik RadEditor for SharePoint"-Webpart into a Enterprise-Wikipage and then i try to insert a content (the editable area is visible after I open the settings of the webpart) but after I inserted some lines of text - the webpart disappear suddenly . 

    Is there a solution for this problem? Does anyone have this problem too?

    Greetings from Germany,
    Andy
  2. Stanimir
    Admin
    Stanimir avatar
    1654 posts

    Posted 18 Apr 2013 Link to this post

    Hi,

    Are you using the OOB SharePoint's editor InsertWeb part tool to add the RadEditor for SharePoint WebPart in the wiki content?

    Greetings,
    Stanimir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Andreas
    Andreas avatar
    4 posts
    Member since:
    Mar 2013

    Posted 18 Apr 2013 Link to this post

    Hi Stanimir,

    thank you for your answer.

    If "OOB" means "Out of the Box" - yes I am using the OOB Sharepoint editor to insert the RadEditor as a Webpart.

    Greetings,
    Andy
  4. Stanimir
    Admin
    Stanimir avatar
    1654 posts

    Posted 23 Apr 2013 Link to this post

    Hello,

    I tested the problem and I found out that if the user presses delete or backspace the webpart is deleted. Check the video which I made while testing and tell me if I am doing anything wrong: http://screencast.com/t/rm1tCctyVL2.

    Here is a workaround for the delete / backspace keys problem.
    1. In the ConfigFile.xml, which is located in the c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.6.2.0__1f131a624888eeed\Resources folder, add the following line:
    <property name="OnClientLoad">OnClientLoad</property>
    2. In the SPEditorTools.js file, located in the mentioned above folder, add the following function:
    function OnClientLoad(editor, args)
    {
        editor.attachEventHandler("onkeydown", function (e)
        {
            var keyCode = e.keyCode;
            if (keyCode == 8 || keyCode == 46)
            {
                e.cancelBubble = true;
                if (e.stopPropagation)
                    e.stopPropagation();
            }
        });
    }


    All the best,
    Stanimir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top