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

I have a question about the indent feature

3 Answers 96 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 1
Alan asked on 23 May 2016, 06:22 AM

My company has already bought the license.

 (1) The current indentation as shows in the picture,like AttachFile1

(2) When I press the “RemoveOrderedList”, Second indent was deleted as picture,like AttachFile2.

(3) After that, I press delete key on the keyboard while the cursor position at the end of first “HelloWord!”, then second “HelloWrod!” is combined with first indentation ,like AttachFile3

The question is: Is there any way that pressing delete key on the keyboard while the cursor position at the end of first indentation, then deleting second indentation and combine the content with first indentation without pressing “RemoveOrderedList”, just like picture above. Currently, when I do that the result as picture below. , AttachFile4



Perhaps, a method which can get the next element could solve it, the code below can get the current selected element, is there a method can get next element?

var selElm = editor.getSelectedElement();

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 May 2016, 01:42 PM

Hi,

Creating DOM-based commands is quite difficult (this is, actually, how we implemented the list-related commands, indend and outdent). A primary reason for this is the number of scenarios one should cover. Nevertheless, you can download our source code from your account, inspect it and change/override the built-in command or create your own.

You can see how the current RadEditor version behaves in the demos and this is what is available out of the box: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx. We have aimed at being close to the MS Word behavior people are used to.

There is a way to get old versions of the commands back but we cannot guarantee they will work as expected or that they will result in the behavior you desire. I must also note that we do not support this old version of the code and we provide it as a courtesy to people who wanted the old behavior back. You can read more on the subject here: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/changes-and-backwards-compatibility/inline-and-block-commands-behavior-change.

If you want to see the built-in behavior changed, I suggest you post your idea in our Feedback Portal together with a very detailed description of the new behavior vs the current one: http://feedback.telerik.com/project/108. Having a good description will let other clients evaluate your idea and vote/comment for it. If it gains enough traction with the community, we will consider its implementation.

Regards,

Marin Bratanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Alan
Top achievements
Rank 1
answered on 26 May 2016, 06:47 AM

Hello Marin:

I've download the source code. I wondered, which file suppose to be modified and how to include it to my project.

By the way, once I posted a question about Change Track ins, because the tag inside the ins need to be modify to Chinese character, really no other way could solve it? The only way  solving it is to modify source code by myself?

http://www.telerik.com/forums/change-track-changes-html-tag

 

0
Marin Bratanov
Telerik team
answered on 26 May 2016, 07:11 AM

Hi,

These are the minified files that you will have a hard time working with. You should review the All Product Files section in Your Account and download the full source code zip to find the actual unminified source code. This will also let you track what object and prototype to override with your changes.

As for your other question - the Track Changes functionality is designed as-is and relies on a strict convention for the tags it uses. You can go in the source code and attempt to modify it to fit your needs, but we cannot guarantee this is even possible, and even if it is, it will not be easy.

Regards,

Marin Bratanov
Telerik
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
Alan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Alan
Top achievements
Rank 1
Share this question
or