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

How to append new text and keep existing as read only ?

1 Answer 85 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ankool
Top achievements
Rank 1
ankool asked on 16 Mar 2010, 12:33 PM
Hi,

I want my editor to also behave in "AppendOnly" mode. When you save text in editor for the first time it act normally and save data. But when I load this editor, then I want to load previous text in read only format and user can only add / append text below the old text.

In this append only mode ,the editor is not readonly but already saved text is readonly. How can I load editor with edit enabled and  editor text as read only ?

I only want to give option to user to append more text at the bottom, they can't edit or delete previously saved text. Thus, I am looking for something similar to RichTextBox properties of SelProtectedSelStart , and SelLength in RadEditor.

Please let me know how to achieve this.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Mar 2010, 01:56 PM
Hi Ankool,

Please, note that RadEditor is DHTML web editor, but not an ActiveX control as RichTextBox.
If you want to have non editable areas in RadEditor please, look at the following help article: Editable and Non-editable Areas.

If you experience any problems, implement your scenario using an editable DIV element ( <div contenteditable="true" style="1px solid red;width:300px;height:300px;">sample content</div> ) as the editor. If you are able to implement a fully functional solution, we will help you integrate it into the editor and use the editor content area as a source area.

Kind regards,
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
ankool
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or