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

RadEditor character/table limit

19 Answers 355 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jo Bert
Top achievements
Rank 1
Jo Bert asked on 20 Jan 2009, 05:25 AM
Hi,

I would like to ask the character/table limit for the RadEditor to save the content?
As of now, I am having a script pop up that says:

"Stop running this script?
A script on this page is causing internet explorer to sun slowly.
If it continues to run, your computer  may become unresponsive.

This happens when i enter large number of columns in a table and a very long content (e.g. 80,000 words).
Is this the expected behavior of RadEditor? I also tested this in your Demo site and encountered the same popup window.
Can anyone help me on this?

Thanks,
Jhobs

19 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Jan 2009, 08:20 AM
Hi Jo,

If you paste or load more than 100 KB of text and html tags, then you will experience performance problems when editing large content, because the editor ConvertToXhtml and other content validation filters as well as the Undo-Redo functionality will process the content and slow down the browser.

What you can do to optimize the editing speed is to load smaller content and disable the content filters by setting the ContentFilters property to None, e.g.

<telerik:RadEditor ID="RadEditor1" ContentFilters="None" runat="server"></telerik:RadEditor>

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jo Bert
Top achievements
Rank 1
answered on 20 Jan 2009, 08:43 AM
hi rumen,

Does this mean we should limit the text to write in the Radeditor? In what file can I add these tag <telerik:RadEditor ID="RadEditor1" ContentFilters="None" runat="server"></telerik:RadEditor>?
What will happen if the ContentFilters is set to None, will this fix the popup script message?
Thanks for the reply.
one more thing, does this behavior only happens in RadEditor not in multiple lines of text in sharepoint?

thanks
0
Jo Bert
Top achievements
Rank 1
answered on 23 Jan 2009, 03:31 AM
Hi Telerik,

I would like to follow up for your answer on my last reply.

Thanks a lot...
0
Rumen
Telerik team
answered on 23 Jan 2009, 02:19 PM
Hi Jo,

RadEditor generates well-formed HTML by using Content Filters. These are small code snippets, which are called in a sequence to process the editor content, when the mode (html / design / preview) is switched or when the page is submitted. There are a number of built-in filters identified in the EditorFilters enumeration: RemoveScripts, MakeUrlsAbsolute, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, ConvertFontToSpan, ConvertToXhtml, IdentHTMLContent and DefaultFilters.

You can find out how to enable and disable filters in our online help: http://www.telerik.com/help/aspnet-ajax/contentfilters.html

In MOSS you can disable the content filters by opening the C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources\ConfigFile.xml or ListConfigFile and setting the following property tag:

 <property name="ContentFilters">None</property>

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jo Bert
Top achievements
Rank 1
answered on 24 Jan 2009, 01:08 PM
Thanks Rumen for the reply. So if I set the ContentFilters to None, this will remove my problem which is the script popup message on save of content?

If I set this ContentFilters to None, it means all the filters(RemoveScripts, MakeUrlsAbsolute, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, ConvertFontToSpan, ConvertToXhtml, IdentHTMLContent and DefaultFilters) will be removed in the RadEditor? What are the effects if I set this to None, knowing this will disable all the filters existing in the RadEditor?

Thanks...


0
Jo Bert
Top achievements
Rank 1
answered on 27 Jan 2009, 01:56 AM
Hi Rumen,

I tried the solution you gave me, I set the ContentFilters to None in the Config file or listconfig, but the script popup message still appears when i tried to type a very long content. Is there another way to solve this issue?

Thanks.
0
Rumen
Telerik team
answered on 27 Jan 2009, 09:39 AM
Hi Jo,

All complex features of RadEditor such as unlimited Undo/Redo, Shortcut support, Command Manager Context Menu, built Modules, many content filters to format content and bring it closer to current XHTML standard are written on the client with JavaScript and executed when the user enters, edits and formats content. Unfortunately, JavaScript works 10 times slower that the compiled code and depending on the hardware configuration of the user computer the browser will slow down when editing more than 100 kb (~ 20000 words) of content. Please note that content size of 80000 words is approximately 400 kb and it is an expected behavior to wont be able to faster edit such content with RadEditor.

My suggestion is not edit such large content and use Firefox in your scenario, because its JavaScript engine works faster than this of IE.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jo Bert
Top achievements
Rank 1
answered on 27 Jan 2009, 10:07 AM

Thanks for the prompt reply, is there any other option that we could do?
like the one you suggested to set  the property of "ContentFilters" to "None" but I'm thinking if there's a way that I could turn off any of the content filters listed below via config file that what we think that is not necessary so that we could lessen the user's pc performance load.

Member Description
None  no filters
RemoveScripts  This filter deletes the script tags to reduce the possibility of cross-site scripting and other script-related problems
MakeUrlsAbsolute  This filter makes all src and href attributes in the editor content have absolute URLs
FixUlBoldItalic  This filter remove deprecated U tags and replace them with CSS - XHTML
FixEnclosingP  This filter removes a paragraph if the whole content is inside it
IECleanAnchors  This filter removes the current page href from all anchor (#) links
MozEmStrong  This filter changes b,strong and i,em in Mozilla browsers
ConvertFontToSpan  This filter changes deprecated font tags to compliant span tags
ConvertToXhtml  This filter converts the HTML from the editor content area to valid XHTML
IndentHTMLContent  This filter indents the HTML content so it is more readable when you view the code
DefaultFilters  This filter enables all default filters


I tried adding the property "<property name="ContentFilters">None</property>" in the config & list config file but there was no improvement. Did the contentfilters property override the settings?
0
Rumen
Telerik team
answered on 30 Jan 2009, 02:00 PM
Hi Jo Bert,

You cannot expect a great improvement in the typing and editing speed when working with large content if you disable the content filters, because the Undo/Redo list of the editor will still work and the execution of the javascript code will slow down the browser.  Unfortunately, there is no way to disable the editor's Undo / Redo mechanism and we do not recommend editing such large content in RadEditor.

If we receive new reports about slow editing of large content,  we could consider implementing a property for enabling and disabling the Undo - Redo feature.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Terri
Top achievements
Rank 1
answered on 19 Feb 2009, 08:27 PM
Hello,

I work with Jo Bert and would like to follow up with this ticket.

Are you saying there is no way to get around this large content issue? This is the limitation of Telerik RadEditor?

IWe have a huge base of customers (150K) who use RadEditor to enter large text as wiki content, and we get complains and support tickets regarding this issue constantly. I don't feel I get enough support from you. Should I report to my manager and seek other product to replace the RadEditor? Can I talk to your manager and find out what's your plan to address this issue?

Thanks,
Terri Huang
0
Tervel
Telerik team
answered on 20 Feb 2009, 09:49 AM
Hi Terri,

My name is Tervel Peykov, and I am the Team Leader for the team developing RadEditor (as well as ten more controls from the Telerik RadControls for ASP.NET AJAX suite). This thread was escalated to me. I reviewed the communication, and I must say the information provided by our support officer is correct. It clearly answers where the performance problem originates from, and what is the reason for it.

At present, because of its multi-level Undo/Redo implementation, the editor will not perform well for content that is larger than 100K. In our plans for the next RadControls release (Q2 2009) we will add this request and will do our best to provide optimizations to the mechanism (or at least the ability to switch it off and let the browser handle the undo/redo).


Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Quangster
Top achievements
Rank 1
answered on 22 May 2009, 05:16 AM
Hi, Tervel 

Our clients are also having this issue, as they are pasting large amounts of content into the editor. As you've mentioned, you are planning to have an option to turn undo/redo functionality off, is there an internal build which you can do this yet or do we have to wait for Q2 2009 ?

I've downloaded a version (Telerik.Web.UI_2009_1_514_trial_hotfix.zip.zip) not too long ago to address another issue, not sure if what you're talking about is in there?

Regards
Quang
0
Tervel
Telerik team
answered on 22 May 2009, 06:58 AM
Hello Quangster,

The functionality is not there in the internal builds, as we are currently focused on other features. Still, as stated, we will do our best to address the problem in the best possibly way for Q2 2009 final release.

Greetings,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pratheesh
Top achievements
Rank 1
answered on 22 Dec 2009, 05:18 AM

Hi Teri,

            I am using RadControls for ASP.NET AJAX Q2 2009 NET35. I am still having the problems mentioned above. Could you suggest any workaround for it in Q2 version .

 

Regards

Pratheesh

0
Rumen
Telerik team
answered on 22 Dec 2009, 12:07 PM
Hi Pratheesh,

The ability to enable / disable the Undo / Redo feature of RadEditor is still not offered by the editor control. Its implementation was postponed for indefinite time due to features logged with high priority. You can find all features and bug fixes integrated in the latest editor versions in the Release History page.

I logged your request in our new Public Issue Tracking system, which will become available for public usage on our site this week, and you and your fellow developers will be able to vote and increase the priority of this feature.

The information below could be helpful for your scenario:

There are five main reasons responsible for the slow editor performance when editing large XHTML/HTML files (>100KB).

Reason 1: The undo/redo mechanism and other maintenance code that ensures the smooth user experience - it gets increasingly cumbersome and time consuming for the browser to execute it if huge content is in the editor.
Reason 2: The fact that most of the editor functionality is implemented in JavaScript, thus resulting in 10 times slower performance compared to native compiled code.
Reason 3: test the performance only when <compilation debug="false" in your web.config. When it is true, the MS AJAX debugging code kicks in and causes a severe performance hit on the client-side.
Reason 4: Remove the RadEditor modules, e.g.

<telerik:radeditor runat="server" ID="RadEditor1">
    <Modules>
        <telerik:EditorModule Visible="false" />
    </Modules>

</telerik:radeditor>

Reason 5 (valid when switching between the view modes or submitting the content): In difference with the TextBox control which does not process the content when submitting it to the server, the RadEditor runs content filters which validate the non well formatted content and make it XHTML compliant. Right now the editor runs more than 11 content filters. These filters run regular expressions which parse and validate the large content, which slow down the content submission to the server. You can disable the filters by setting ContentFilters property to None, e.g.

<telerik:RadEditor ID="RadEditor1" ContentFilters="None" runat="server"></telerik:RadEditor> 

The policy behind all radcontrols is that they should be cross-browser and should offer similar experience over different browsers and OS-es. At present the editor supports IE under Windows, Mozilla Firefox under all platforms, Opera under all platforms and Safari under Mac. Such cross-browser functionality is possible only with JavaScript - no other option exists.
Being cross-browser is a top priority, and thus at present it rules out changing the editor's technology.

We are constantly working on improving the speed, but the browsers do have their limits, and it is not hard to reach them when editing large content in the editor.

You can find more information in the following KB article: RadEditor loads slowly (high CPU utilization).

We strongly suggest avoiding loading, pasting or  saving more than 100KB of content into the editor in a real-world scenario (that is, other than for test purposes) - as an actual user will not get a good experience if they have to deal with editing 100KB of HTML on a single go.

Greetings,
Rumen
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.
0
Mike McGovern
Top achievements
Rank 1
answered on 28 Apr 2010, 04:19 PM
is the 100kb limit just for html content?
what about just plain text. is there a 100kb limit on this as well?
0
Rumen Jekov
Top achievements
Rank 1
answered on 28 Apr 2010, 09:59 PM
Hi,

We talk about 100KB of content length in HTML mode of RadEditor. The content in HTML mode is just a string so it does not depend on whether there are tags or there is plain text only. Please, note that RadEditor is a rich text editor and the user can apply commands bold, italic, underline, insert images, etc which will slow down the browser even when you have loaded more than 100kb of plain text.

Nevertheless, the next official version of RadEditor will offer the ability to stop the Undo / Redo feature, which will allow you to edit very very large documents. All you need to do will be to remove the Undo / Redo tools from the toolbar in order to disable the Undo / Redo functionality.

Best regards,
Rumen


0
Rustam
Top achievements
Rank 1
answered on 01 Sep 2010, 08:47 AM
Hello Telerik team,

Sorry for my bad english. I have the same problem in MOSS list. This list has 3 RadEditor forms (3 "multipe lines of text" type columns). When saving list item with big texts i have error about script on page causing internet explorer to run slowly.
My question is can each column be 100kb or less html text or both RadEdtiror columns together on list item should be under 100kb?

Best regards from Russia,
Thanks,
Rustam
0
Rumen
Telerik team
answered on 01 Sep 2010, 09:35 AM
Hello Rustam,

My suggestion is to upgrade to the latest version of RadEditor for MOSS 5.8.1 and remove the Undo / Redo commands from the toolbar by editing the ToolsFile.xml / ListToolsFile.xml files. Therefore you should not check the content length and you will fix the problem easier.

Greetings,
Rumen
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
Tags
Editor
Asked by
Jo Bert
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jo Bert
Top achievements
Rank 1
Terri
Top achievements
Rank 1
Tervel
Telerik team
Quangster
Top achievements
Rank 1
Pratheesh
Top achievements
Rank 1
Mike McGovern
Top achievements
Rank 1
Rumen Jekov
Top achievements
Rank 1
Rustam
Top achievements
Rank 1
Share this question
or