From 2b85a279d17df983e54b69734c076b4365ec1c57 Mon Sep 17 00:00:00 2001 From: Vidar Date: Fri, 6 Jul 2018 15:06:09 +0200 Subject: [PATCH 1/2] EZP-29385: Richtext : blockquote does not allow multiple titles on the same level (#2381) --- .../Resources/schemas/docbook/ezpublish.rng | 9 +++++++++ .../Tests/RichText/Validator/DocbookTest.php | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng b/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng index 01293fc1f6c..c3045eb6c70 100644 --- a/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng +++ b/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng @@ -22,6 +22,15 @@ + + + Needed by the LIBXML engine to allow for multiple title elements on the same level below blockquote + + + + + + A list in which each entry is marked with a sequentially incremented label diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php b/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php index 83d426ccc4c..a64bc2717a2 100644 --- a/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php +++ b/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php @@ -54,6 +54,25 @@ public function providerForTestValidate()
Nada Surf - Happy Kid
+', + array(), + ), + array( + ' +
+
+ Some comments to people\'s comments! +
+
+ Header level 3 + Header level 4 + foobar quotehttp://ez.no for more info. +
+
', array(), ), From 5228e934927ff5aec8d72228eb68e232dabed99a Mon Sep 17 00:00:00 2001 From: Vidar Date: Fri, 6 Jul 2018 15:13:14 +0200 Subject: [PATCH 2/2] EZP-29391: Richtext : superscript/subscript does not support and tag Closes #2386 --- .../Resources/schemas/docbook/ezpublish.rng | 21 ++++++++++ .../Tests/RichText/Validator/DocbookTest.php | 38 +++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng b/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng index c3045eb6c70..c413c02d619 100644 --- a/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng +++ b/eZ/Publish/Core/FieldType/RichText/Resources/schemas/docbook/ezpublish.rng @@ -22,6 +22,7 @@
+ Needed by the LIBXML engine to allow for multiple title elements on the same level below blockquote @@ -31,6 +32,26 @@ + + + + + + + + + + + + + + + + + + + + A list in which each entry is marked with a sequentially incremented label diff --git a/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php b/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php index a64bc2717a2..a96035d9f5b 100644 --- a/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php +++ b/eZ/Publish/Core/FieldType/Tests/RichText/Validator/DocbookTest.php @@ -76,6 +76,44 @@ public function providerForTestValidate() ', array(), ), + array( + ' +
+ test + 1 + bold + italic + underline superscript + link + strikedthrough + + +
', + array(), + ), + array( + ' +
+ test + 1 + bold + italic + underline subscript + link + strikedthrough + + +
', + array(), + ), ); }