Skip to content

Commit 79340f8

Browse files
docs(Editor): Document empty values and stripped custom tags (#2546)
Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com>
1 parent f362ab7 commit 79340f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/editor/overview.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ The <a href = "https://www.telerik.com/blazor-ui/editor" target="_blank">Blazor
5252

5353
## Get/Set Content
5454

55-
The Blazor HTML Editor interacts with its content (value) like all standard components - through its `Value` parameter. You can use it to get and set the HTML string the editor will work with. [Read more about value binding and data binding...]({%slug get-started-value-vs-data-binding%})
55+
The Blazor HTML Editor has a `Value` parameter, similar to other input components. Use the `Value` parameter to get or set the HTML string that shows inside the Editor content area.
56+
57+
An empty string is a valid initial Editor `Value`, but after the user interacts with the component, the minimal component `Value` is at least an empty element (usually `"<p></p>"`). Note that [the Editor and the browser treat empty paragraphs differently]({%slug editor-kb-missing-br-tags-in-value%}).
58+
59+
The Editor manages its content and `Value` depending on a [customizable schema](#prosemirror-schema-and-plugins), which defines the allowed HTML tags and attributes. The component strips all other tags and attributes for compliance and security reasons.
5660

57-
Be aware that [the Editor and the browser treat empty paragraphs differently]({%slug editor-kb-missing-br-tags-in-value%}).
5861

5962
## Security
6063

0 commit comments

Comments
 (0)