This is a migrated thread and some comments may be shown as answers.

RadEditor Webpart does not work in wiki pages

3 Answers 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 15 Apr 2013, 12:36 PM
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

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 18 Apr 2013, 08:21 AM
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.
0
Andreas
Top achievements
Rank 1
answered on 18 Apr 2013, 08:35 AM
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
0
Stanimir
Telerik team
answered on 23 Apr 2013, 06:21 AM
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.
Tags
Editor
Asked by
Andreas
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Andreas
Top achievements
Rank 1
Share this question
or