core/modules/filter/src/Plugin/Filter/FilterAlign.php | 6 +++--- core/modules/filter/src/Plugin/Filter/FilterCaption.php | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/core/modules/filter/src/Plugin/Filter/FilterAlign.php b/core/modules/filter/src/Plugin/Filter/FilterAlign.php index 02681e8..168d0d6 100644 --- a/core/modules/filter/src/Plugin/Filter/FilterAlign.php +++ b/core/modules/filter/src/Plugin/Filter/FilterAlign.php @@ -57,16 +57,16 @@ public function process($text, $langcode) { public function tips($long = FALSE) { if ($long) { return $this->t(' -
You can align images left, right or centered. Examples:
+You can align images, videos, blockquotes and so on to the left, right or center. Examples:
<img src="" data-align="left" /><img src="" data-align="center" /><img src="" data-align="right" /><blockquote>Llamas are awesome<blockquote;><video src="" data-align="center" />data-align="center"code>), but also video, blockquotes, and so on.');
+ return $this->t('You can align images (data-align="center"code>), but also videos, blockquotes, and so on.');
}
}
diff --git a/core/modules/filter/src/Plugin/Filter/FilterCaption.php b/core/modules/filter/src/Plugin/Filter/FilterCaption.php
index 8fbbe0f..5b74f43 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterCaption.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterCaption.php
@@ -97,10 +97,16 @@ public function process($text, $langcode) {
public function tips($long = FALSE) {
if ($long) {
return $this->t('
- You can add caption images. Example: <img src="" data-caption="This is a caption" />.
You can caption images, videos, blockquotes, and so on. Examples:
+<img src="" data-caption="This is a caption" /><video src="" data-caption="The Drupal Dance" /><blockquote data-caption="Dries Buytaert">Drupal is awesome!</blockquote><code data-caption="Hello world in JavaScript.">alert("Hello world!");</code>data-caption="Text"), but also video, blockquotes, and so on.');
+ return $this->t('You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.');
}
}