Skip to content

Commit b6b85a6

Browse files
committed
997757: Need to provide documentation for the line height feature
1 parent 7fec35b commit b6b85a6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/tools/text-formatting.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,35 @@ You can add the `LineHeight` tool to the toolbar in the Rich Text Editor using [
496496

497497
The Rich Text Editor comes with a pre-configured set of [`lineHeight`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditor.html#lineheight) property.
498498

499+
### Custom line height
500+
501+
The Rich Text Editor supports custom line height along with the existing line height dropdown list. To add additional line height to the line height dropdown, you can configure the items field of the [`lineHeight`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditor.html#lineheight) property. This allows you to extend the available line height options beyond the default selection.
502+
503+
The [`supportAllValues`](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditor.html#supportAllValues) setting enables the line height dropdown to display and retain line-height values that are not part of the predefined options. When `supportAllValues` property is turned on, the dropdown will show the current line-height value from the selection, even if that value is not present in the configured lineHeights array. By default, `supportAllValues` will be set to false.
504+
505+
{% if page.publishingplatform == "aspnet-core" %}
506+
507+
{% tabs %}
508+
{% highlight cshtml tabtitle="CSHTML" %}
509+
{% include code-snippet/rich-text-editor/line-height-cs1/tagHelper %}
510+
{% endhighlight %}
511+
{% highlight c# tabtitle="Controller.cs" %}
512+
{% include code-snippet/rich-text-editor/line-height-cs1/controller.cs %}
513+
{% endhighlight %}
514+
{% endtabs %}
515+
516+
{% elsif page.publishingplatform == "aspnet-mvc" %}
517+
518+
{% tabs %}
519+
{% highlight razor tabtitle="CSHTML" %}
520+
{% include code-snippet/rich-text-editor/line-height-cs1/razor %}
521+
{% endhighlight %}
522+
{% highlight c# tabtitle="Controller.cs" %}
523+
{% include code-snippet/rich-text-editor/line-height-cs1/controller.cs %}
524+
{% endhighlight %}
525+
{% endtabs %}
526+
{% endif %}
527+
499528
## Horizontal line
500529

501530
The Rich Text Editor enables users to insert horizontal dividers using the `HorizontalLine` tool available in the toolbar. Horizontal lines (<hr>) help visually separate sections of content, enhancing readability and structural clarity.

0 commit comments

Comments
 (0)