-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-29634: ezxmltext -> richtext conversion : <custom> inside <section>
- Loading branch information
Showing
8 changed files
with
108 additions
and
25 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
15 changes: 15 additions & 0 deletions
15
tests/lib/FieldType/Converter/_fixtures/richtext/input/160-eztemplate.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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section | ||
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/" | ||
xmlns:image="http://ez.no/namespaces/ezpublish3/image/" | ||
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"> | ||
<section> | ||
<custom name="linebreak"/> | ||
</section> | ||
<!-- xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"--> | ||
<paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"> | ||
<custom name="mycustomtag" custom:class="templateClass" custom:align="left" custom:title="foobar"> | ||
custom tag content | ||
</custom> | ||
</paragraph> | ||
</section> |
8 changes: 8 additions & 0 deletions
8
tests/lib/FieldType/Converter/_fixtures/richtext/input/170-eztemplateinline.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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section | ||
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/" | ||
xmlns:image="http://ez.no/namespaces/ezpublish3/image/" | ||
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"> | ||
<header>Advisers: | ||
<custom name="linebreak"/>Foobar Corp.</header> | ||
</section> |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/160-eztemplate.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:Custom tag 'linebreak' converted to block custom tag. It might have been inline custom tag in legacy DB where contentobject_attribute.id= |
1 change: 1 addition & 0 deletions
1
tests/lib/FieldType/Converter/_fixtures/richtext/log/170-eztemplateinline.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:Inline custom tag 'linebreak' not supported by editor at the moment. You'll not be able to edit content correctly in editor where contentobject_attribute.id= |
16 changes: 16 additions & 0 deletions
16
tests/lib/FieldType/Converter/_fixtures/richtext/output/160-eztemplate.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,16 @@ | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"> | ||
<eztemplate name="linebreak"/> | ||
<eztemplate name="mycustomtag" ezxhtml:align="left" ezxhtml:class="templateClass"> | ||
<ezcontent> | ||
custom tag content | ||
</ezcontent> | ||
<ezconfig> | ||
<ezvalue key="title">foobar</ezvalue> | ||
</ezconfig> | ||
</eztemplate> | ||
</section> | ||
|
9 changes: 9 additions & 0 deletions
9
tests/lib/FieldType/Converter/_fixtures/richtext/output/170-eztemplateinline.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,9 @@ | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"> | ||
<title ezxhtml:level="2">Advisers: | ||
<eztemplateinline name="linebreak"/>Foobar Corp.</title> | ||
</section> | ||
|