From 15f35256af15b97d2298cc44e76ffcafe73a1c88 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 May 2021 11:01:42 +0200 Subject: Add help to custom markdown textarea --- .../shared/shared-custom-markup/custom-markup-help.component.html | 3 +++ .../shared/shared-custom-markup/custom-markup-help.component.ts | 8 ++++++++ client/src/app/shared/shared-custom-markup/index.ts | 1 + .../shared/shared-custom-markup/shared-custom-markup.module.ts | 8 +++++--- 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 client/src/app/shared/shared-custom-markup/custom-markup-help.component.html create mode 100644 client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts (limited to 'client/src/app/shared/shared-custom-markup') diff --git a/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html new file mode 100644 index 000000000..dd7a56d7d --- /dev/null +++ b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.html @@ -0,0 +1,3 @@ + + Markdown compatible that also supports custom PeerTube HTML tags + diff --git a/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts new file mode 100644 index 000000000..0a5a67794 --- /dev/null +++ b/client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts @@ -0,0 +1,8 @@ +import { Component } from '@angular/core' + +@Component({ + selector: 'my-custom-markup-help', + templateUrl: './custom-markup-help.component.html' +}) +export class CustomMarkupHelpComponent { +} diff --git a/client/src/app/shared/shared-custom-markup/index.ts b/client/src/app/shared/shared-custom-markup/index.ts index 14bde3ea9..a9ac2516c 100644 --- a/client/src/app/shared/shared-custom-markup/index.ts +++ b/client/src/app/shared/shared-custom-markup/index.ts @@ -1,3 +1,4 @@ export * from './custom-markup.service' export * from './dynamic-element.service' +export * from './custom-markup-help.component' export * from './shared-custom-markup.module' diff --git a/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts b/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts index d03aa856f..66f6b98f6 100644 --- a/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts +++ b/client/src/app/shared/shared-custom-markup/shared-custom-markup.module.ts @@ -1,4 +1,3 @@ - import { CommonModule } from '@angular/common' import { NgModule } from '@angular/core' import { SharedActorImageModule } from '../shared-actor-image/shared-actor-image.module' @@ -8,6 +7,7 @@ import { SharedVideoMiniatureModule } from '../shared-video-miniature' import { SharedVideoPlaylistModule } from '../shared-video-playlist' import { ButtonMarkupComponent } from './button-markup.component' import { ChannelMiniatureMarkupComponent } from './channel-miniature-markup.component' +import { CustomMarkupHelpComponent } from './custom-markup-help.component' import { CustomMarkupService } from './custom-markup.service' import { DynamicElementService } from './dynamic-element.service' import { EmbedMarkupComponent } from './embed-markup.component' @@ -32,7 +32,8 @@ import { VideosListMarkupComponent } from './videos-list-markup.component' ChannelMiniatureMarkupComponent, EmbedMarkupComponent, VideosListMarkupComponent, - ButtonMarkupComponent + ButtonMarkupComponent, + CustomMarkupHelpComponent ], exports: [ @@ -41,7 +42,8 @@ import { VideosListMarkupComponent } from './videos-list-markup.component' ChannelMiniatureMarkupComponent, VideosListMarkupComponent, EmbedMarkupComponent, - ButtonMarkupComponent + ButtonMarkupComponent, + CustomMarkupHelpComponent ], providers: [ -- cgit v1.2.3