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

Change ContentAreaMode in javascript

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 30 Sep 2016, 02:59 PM

    Is there a way for me to change the ContentAreaMode client side?  I see there is a get_contentArea() method, but nowhere in the documentation do I see what you can do with the object returned.  The example just shows how to change styles.  What else can I do with it?  Can I use it to change the ContentAreaMode?

 

Thanks for the help,

Jim

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Oct 2016, 12:53 PM

Hello Jim,

There is no such facility because the value of the ContentAreaMode property changes the rendering of the RadEditor, and a client-side feature has not been implemented yet. I can suggest you add your idea to the Feedback portal and if it gains enough traction in the community, the product management will review it: http://feedback.telerik.com/project/108.

You can look into initiating a partial postback to toggle the property on the server.

As for the use of the get_contentArea() method—it provides you with a reference to the editable area object. You can changes styles, content, traverse the DOM of the current content.

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
Jim
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or