Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlEdtior: remove valueType #6721

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions api-reference/10 UI Components/Errors and Warnings/E1051.md

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions api-reference/10 UI Components/dxHtmlEditor/9 Types/MarkupType.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
The HtmlEditor can output markup in HTML or Markdown. Use the [valueType](/api-reference/10%20UI%20Components/dxHtmlEditor/1%20Configuration/valueType.md '/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#valueType') property to define the language. If you use Markdown, add the <a href="https://www.npmjs.com/package/turndown" target="_blank">turndown</a> and <a href="https://www.npmjs.com/package/showdown" target="_blank">showdown</a> libraries to your project. In this tutorial, HTML is used as the output language.

The control stores the document markup in the [value](/api-reference/10%20UI%20Components/dxHtmlEditor/1%20Configuration/value.md '/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#value') property. If you use this property to specify the document's initial content, the language should match **valueType**. You can also declare HTML content inside the HtmlEditor element. In this case, the language (HTML) and **valueType** can differ.
The control stores the document markup in the [value](/api-reference/10%20UI%20Components/dxHtmlEditor/1%20Configuration/value.md '/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/#value') property. You can also declare HTML content inside the HtmlEditor element.

---
##### jQuery

<!-- tab: index.js -->
$(function () {
$("#html-editor").dxHtmlEditor({
valueType: "html"
});
});

<!-- tab: index.html -->
<html>
<head>
Expand Down Expand Up @@ -105,7 +96,7 @@ To update the value at the runtime, call the [option(optionName, optionValue)](/
##### Angular

<!-- tab: app.component.html -->
<dx-html-editor valueType="html">
<dx-html-editor>
<h2>
<img src="assets/images/HtmlEditor.svg" alt="HtmlEditor">
Rich Text Editor (HTML Editor)
Expand Down Expand Up @@ -177,7 +168,7 @@ To update the value at the runtime, call the [option(optionName, optionValue)](/

<!-- tab: App.vue -->
<template>
<DxHtmlEditor value-type="html">
<DxHtmlEditor>
<div>
<h2>
<img src="./HtmlEditor.svg" alt="HtmlEditor">
Expand Down Expand Up @@ -314,7 +305,7 @@ To update the value at the runtime, call the [option(optionName, optionValue)](/

const App = () => {
return (
<HtmlEditor defaultValue={markup} valueType="html">
<HtmlEditor defaultValue={markup}>
</HtmlEditor>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- [Inline Formats](/concepts/05%20UI%20Components/HtmlEditor/10%20Formats '/Documentation/Guide/UI_Components/HtmlEditor/Formats/'):
- **Bold**, *italic*, <s>strikethrough</s>, and <u>underscore</u> text formatting attributes
- Typeface, font size, and text color changes (HTML only)
- Typeface, font size, and text color changes

- [Block Formats](/concepts/05%20UI%20Components/HtmlEditor/10%20Formats '/Documentation/Guide/UI_Components/HtmlEditor/Formats/'):
- Headers
Expand All @@ -10,8 +10,6 @@

- [Built-in Format Customization](/concepts/05%20UI%20Components/HtmlEditor/10%20Formats/33%20Customize%20Built-In%20Formats%20and%20Modules '/Documentation/Guide/UI_Components/HtmlEditor/Formats/#Customize_Built-In_Formats_and_Modules')

- [HTML and Markdown Support](/concepts/05%20UI%20Components/HtmlEditor/00%20Getting%20Started%20with%20HtmlEditor/10%20Set%20the%20Output%20Markup%20Language.md '/Documentation/Guide/UI_Components/HtmlEditor/Getting_Started_with_HtmlEditor/#Set_the_Output_Markup_Language')

- [Mail Merge](/api-reference/10%20UI%20Components/dxHtmlEditor/1%20Configuration/variables '/Documentation/ApiReference/UI_Components/dxHtmlEditor/Configuration/variables/')

- [Adaptive Toolbar](/concepts/05%20UI%20Components/HtmlEditor/00%20Getting%20Started%20with%20HtmlEditor/20%20Configure%20the%20Toolbar.md '/Documentation/Guide/UI_Components/HtmlEditor/Getting_Started_with_HtmlEditor/#Configure_the_Toolbar') designed to work with images, links, and color formats.
Expand Down
Loading