forked from ezsystems/ezplatform-xmltext-fieldtype
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EZP-29339: ezxmltext -> ricktext conversion : links with object_r…
…emote_id="..." not suppor (ezsystems#51) * EZP-29339: ezxmltext -> ricktext conversion : links with object_remote_id="..." not supported * Fixed regression in RichText::checkEmptyEmbedTags() * Added support for links with node_remote_id="..." in conversion tool
- Loading branch information
Showing
16 changed files
with
184 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/lib/FieldType/Converter/_fixtures/richtext/input/042-link_object_remote_id.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph>foobartext | ||
<link object_remote_id="my_remote_id">link</link> | ||
</paragraph> | ||
</section> |
6 changes: 6 additions & 0 deletions
6
tests/lib/FieldType/Converter/_fixtures/richtext/input/043-link_object_remote_id_invalid.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph>foobartext | ||
<link object_remote_id="my_invalid_remote_id">link</link> | ||
</paragraph> | ||
</section> |
6 changes: 6 additions & 0 deletions
6
tests/lib/FieldType/Converter/_fixtures/richtext/input/044-link_unhandled_link_type.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph>foobartext | ||
<link not_supported="foobar">link</link> | ||
</paragraph> | ||
</section> |
6 changes: 6 additions & 0 deletions
6
tests/lib/FieldType/Converter/_fixtures/richtext/input/045-link_node_remote_id.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph>foobartext | ||
<link node_remote_id="my_remote_id">link</link> | ||
</paragraph> | ||
</section> |
6 changes: 6 additions & 0 deletions
6
tests/lib/FieldType/Converter/_fixtures/richtext/input/046-link_node_remote_id_invalid.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph>foobartext | ||
<link node_remote_id="my_invalid_remote_id">link</link> | ||
</paragraph> | ||
</section> |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/043-link_object_remote_id_invalid.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
warning:Unable to find content object with remote_id=my_invalid_remote_id (so rewriting to href="#"), when converting link where contentobject_attribute.id=. |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/044-link_unhandled_link_type.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
warning:Unknown linktype detected when converting link where contentobject_attribute.id=. |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/046-link_node_remote_id_invalid.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
warning:Unable to find node with remote_id=my_invalid_remote_id (so rewriting to href="#"), when converting link where contentobject_attribute.id=. |
10 changes: 10 additions & 0 deletions
10
tests/lib/FieldType/Converter/_fixtures/richtext/output/042-link_object_remote_id.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para>foobartext | ||
<link xlink:href="ezcontent://42" xlink:show="none">link</link> | ||
</para> | ||
</section> |
10 changes: 10 additions & 0 deletions
10
...s/lib/FieldType/Converter/_fixtures/richtext/output/043-link_object_remote_id_invalid.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para>foobartext | ||
<link xlink:href="#" xlink:show="none">link</link> | ||
</para> | ||
</section> |
10 changes: 10 additions & 0 deletions
10
tests/lib/FieldType/Converter/_fixtures/richtext/output/044-link_unhandled_link_type.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para>foobartext | ||
<link xlink:href="#" xlink:show="none">link</link> | ||
</para> | ||
</section> |
10 changes: 10 additions & 0 deletions
10
tests/lib/FieldType/Converter/_fixtures/richtext/output/045-link_node_remote_id.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para>foobartext | ||
<link xlink:href="ezlocation://4242" xlink:show="none">link</link> | ||
</para> | ||
</section> |
10 changes: 10 additions & 0 deletions
10
tests/lib/FieldType/Converter/_fixtures/richtext/output/046-link_node_remote_id_invalid.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para>foobartext | ||
<link xlink:href="#" xlink:show="none">link</link> | ||
</para> | ||
</section> |