Completed
Last Updated: 12 May 2020 09:37 by ADMIN
Plamen Ratchev
Created on: 30 Mar 2020 12:44
Category: Editor
Type: Feature Request
4
Support for non-paragraphed text

Currently all text is wrapped inside a P tag, which is very inconvenient in many cases. Couple of examples:

  • You want to insert a new line inside a paragraph w/o having spacing before it. This is currently not possible. As soon as you hit [Enter] a new paragraph is added. In the jQuery version of the control it was possible to use [Shift] + [Enter] to insert a "simple" new line w/o adding a new paragraph. This doesn't work in the Angular version. 
  • Items in LI is wrapped inside a P tag. This adds unnecessary spaces between the LI and makes it really hard to render this content in a report insde HtmlTextBox as it is rendered with huge spacing between. There should be an ability to omit P inside LI. 
4 comments
ADMIN
Dimiter Topalov
Posted on: 12 May 2020 09:36

Hi,

Support for adding a BR tag on pressing shift+enter is available in v.1.1.0 of the Editor package.

Regards,
Dimiter Topalov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Martin
Posted on: 07 Apr 2020 08:19

Hi Plamen,

Thank you for the provided screencast.

Indeed you are right. I discussed this behavior with the assigned developers and I can assure you that inserting <br> tag capability on Shift + Enter keystroke will be addressed and it will be documented in the Editor Change Log page:

https://www.telerik.com/kendo-angular-ui-develop/components/editor/changelog/

Please let me know in case you would like me to ping you once the enhancement is added.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Plamen Ratchev
Posted on: 06 Apr 2020 14:06

Hi Marin, 

Actually you are only partially correct. The ProseMirror lib supports the [Shift]+[Enter] keystroke and it correctly adds a BR tag. See the following screencast taken on the ProseMirror site: https://screencast-o-matic.com/watch/cYf1IHa1bg 

If you could add at least this capability to the Angular Editor it will help end users a lot!

Thanks!

ADMIN
Martin
Posted on: 06 Apr 2020 08:56

Hi Plamen,

Thank you for the provided feedback.

In general, Angular and jQuery are quite different technologies. That is why the Kendo controls, built on top of these technologies, are also used in different ways. 

The default behavior of the ProseMirror library, that the Editor uses under the hood, puts everything that is on a new line in a <p> tag:

http://somup.com/cYefjyhwOQ

Currently, we are considering our options to provide more flexibility for customizing the default behavior, but up to now, I am afraid that the desired functionality cannot be changed as the described behavior comes from the ProseMirror library which is out of our control.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.