Add default text to Markdown card editor (#3960)

This commit is contained in:
akargl 2019-10-08 09:58:37 +02:00 committed by Bram Kragten
parent 0cb0525516
commit d2a95e9f06

View File

@ -26,7 +26,10 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
}
public static getStubConfig(): object {
return { content: " " };
return {
content:
"The **Markdown** card allows you to write any text. You can style it **bold**, *italicized*, ~strikethrough~ etc. You can do images, links, and more.\n\nFor more information see the [Markdown Cheatsheet](https://commonmark.org/help).",
};
}
@property() private _config?: MarkdownCardConfig;