I have a question about the indent feature

4 posts, 0 answers
  1. Alan
    Alan avatar
    6 posts
    Member since:
    Feb 2012

    Posted 23 May Link to this post

    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();

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 May Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alan
    Alan avatar
    6 posts
    Member since:
    Feb 2012

    Posted 26 May in reply to Marin Bratanov Link to this post

    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

     

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 26 May Link to this post

    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.
Back to Top