) }
{ ! RichText.isEmpty( caption ) && (
-
+
) }
);
diff --git a/packages/e2e-tests/specs/editor/blocks/__snapshots__/table.test.js.snap b/packages/e2e-tests/specs/editor/blocks/__snapshots__/table.test.js.snap
index fc9d85e415e5c..27f0619a4de24 100644
--- a/packages/e2e-tests/specs/editor/blocks/__snapshots__/table.test.js.snap
+++ b/packages/e2e-tests/specs/editor/blocks/__snapshots__/table.test.js.snap
@@ -2,7 +2,7 @@
exports[`Table allows a caption to be added 1`] = `
"
-
+
"
`;
diff --git a/packages/react-native-editor/src/initial-html.js b/packages/react-native-editor/src/initial-html.js
index 7c1cb67a5cc9b..9c2c53618f428 100644
--- a/packages/react-native-editor/src/initial-html.js
+++ b/packages/react-native-editor/src/initial-html.js
@@ -80,7 +80,7 @@ else:
-
+
@@ -88,7 +88,7 @@ else:
-
+
diff --git a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap
index 6e3a6b8a84795..a06654d89078a 100644
--- a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap
+++ b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap
@@ -85,19 +85,19 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan
exports[`rawHandler should convert a caption shortcode 1`] = `
"
-
+
"
`;
exports[`rawHandler should convert a caption shortcode with caption 1`] = `
"
-
+
"
`;
exports[`rawHandler should convert a caption shortcode with link 1`] = `
"
-
+
"
`;
diff --git a/test/integration/fixtures/blocks/core__embed.html b/test/integration/fixtures/blocks/core__embed.html
index f9a539f22a0c9..5df79b888f32b 100644
--- a/test/integration/fixtures/blocks/core__embed.html
+++ b/test/integration/fixtures/blocks/core__embed.html
@@ -3,6 +3,6 @@
https://example.com/
- Embedded content from an example URL
+ Embedded content from an example URL
diff --git a/test/integration/fixtures/blocks/core__embed.parsed.json b/test/integration/fixtures/blocks/core__embed.parsed.json
index e5eb6716d2e73..c75e10780ae14 100644
--- a/test/integration/fixtures/blocks/core__embed.parsed.json
+++ b/test/integration/fixtures/blocks/core__embed.parsed.json
@@ -5,9 +5,9 @@
"url": "https://example.com/"
},
"innerBlocks": [],
- "innerHTML": "\n\n",
+ "innerHTML": "\n\n",
"innerContent": [
- "\n\n"
+ "\n\n"
]
}
]
diff --git a/test/integration/fixtures/blocks/core__embed.serialized.html b/test/integration/fixtures/blocks/core__embed.serialized.html
index 3906dd45ee541..af25e3c4acb67 100644
--- a/test/integration/fixtures/blocks/core__embed.serialized.html
+++ b/test/integration/fixtures/blocks/core__embed.serialized.html
@@ -1,5 +1,5 @@
+Embedded content from an example URL
diff --git a/test/integration/fixtures/blocks/core__gallery-with-caption.html b/test/integration/fixtures/blocks/core__gallery-with-caption.html
index 0ec3003092d8b..498c7752e3a2f 100644
--- a/test/integration/fixtures/blocks/core__gallery-with-caption.html
+++ b/test/integration/fixtures/blocks/core__gallery-with-caption.html
@@ -21,6 +21,6 @@
/>
- Gallery Caption
+ Gallery Caption
diff --git a/test/integration/fixtures/blocks/core__gallery-with-caption.parsed.json b/test/integration/fixtures/blocks/core__gallery-with-caption.parsed.json
index bb43e7abcd7f8..9c2b7f082846b 100644
--- a/test/integration/fixtures/blocks/core__gallery-with-caption.parsed.json
+++ b/test/integration/fixtures/blocks/core__gallery-with-caption.parsed.json
@@ -42,13 +42,13 @@
]
}
],
- "innerHTML": "\n\n",
+ "innerHTML": "\n\n",
"innerContent": [
"\n\n"
+ "\n\tGallery Caption\n\n"
]
}
]
diff --git a/test/integration/fixtures/blocks/core__gallery-with-caption.serialized.html b/test/integration/fixtures/blocks/core__gallery-with-caption.serialized.html
index f67c8682af23e..0eeab028d199d 100644
--- a/test/integration/fixtures/blocks/core__gallery-with-caption.serialized.html
+++ b/test/integration/fixtures/blocks/core__gallery-with-caption.serialized.html
@@ -5,5 +5,5 @@
-Gallery Caption
+Gallery Caption
diff --git a/test/integration/fixtures/blocks/core__image__center-caption.html b/test/integration/fixtures/blocks/core__image__center-caption.html
index 046800a80bc98..1a221343202d0 100644
--- a/test/integration/fixtures/blocks/core__image__center-caption.html
+++ b/test/integration/fixtures/blocks/core__image__center-caption.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__image__center-caption.parsed.json b/test/integration/fixtures/blocks/core__image__center-caption.parsed.json
index 27b4e57ed4588..1875086370f42 100644
--- a/test/integration/fixtures/blocks/core__image__center-caption.parsed.json
+++ b/test/integration/fixtures/blocks/core__image__center-caption.parsed.json
@@ -5,9 +5,9 @@
"align": "center"
},
"innerBlocks": [],
- "innerHTML": "\n\n",
+ "innerHTML": "\n\n",
"innerContent": [
- "\n\n"
+ "\n\n"
]
}
]
diff --git a/test/integration/fixtures/blocks/core__image__center-caption.serialized.html b/test/integration/fixtures/blocks/core__image__center-caption.serialized.html
index 785def42a5d91..75f992e1c441b 100644
--- a/test/integration/fixtures/blocks/core__image__center-caption.serialized.html
+++ b/test/integration/fixtures/blocks/core__image__center-caption.serialized.html
@@ -1,3 +1,3 @@
-
+
diff --git a/test/integration/fixtures/blocks/core__table__caption.html b/test/integration/fixtures/blocks/core__table__caption.html
index a22436c55bdb1..110d0695e5a93 100644
--- a/test/integration/fixtures/blocks/core__table__caption.html
+++ b/test/integration/fixtures/blocks/core__table__caption.html
@@ -1,3 +1,3 @@
-Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing
+Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing
diff --git a/test/integration/fixtures/blocks/core__table__caption.parsed.json b/test/integration/fixtures/blocks/core__table__caption.parsed.json
index 030ced272fcab..531c2d7e605c6 100644
--- a/test/integration/fixtures/blocks/core__table__caption.parsed.json
+++ b/test/integration/fixtures/blocks/core__table__caption.parsed.json
@@ -3,9 +3,9 @@
"blockName": "core/table",
"attrs": {},
"innerBlocks": [],
- "innerHTML": "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing \n",
+ "innerHTML": "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing \n",
"innerContent": [
- "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing \n"
+ "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing \n"
]
}
]
diff --git a/test/integration/fixtures/blocks/core__table__caption.serialized.html b/test/integration/fixtures/blocks/core__table__caption.serialized.html
index ff5add7f856b2..66246c83295a9 100644
--- a/test/integration/fixtures/blocks/core__table__caption.serialized.html
+++ b/test/integration/fixtures/blocks/core__table__caption.serialized.html
@@ -1,3 +1,3 @@
-Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing
+Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
A table for testing
diff --git a/test/integration/fixtures/blocks/core__table__deprecated-1.html b/test/integration/fixtures/blocks/core__table__deprecated-1.html
index 3b748a37a4eda..ee205fffa4010 100644
--- a/test/integration/fixtures/blocks/core__table__deprecated-1.html
+++ b/test/integration/fixtures/blocks/core__table__deprecated-1.html
@@ -1,3 +1,3 @@
-Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption
+Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption
diff --git a/test/integration/fixtures/blocks/core__table__deprecated-1.json b/test/integration/fixtures/blocks/core__table__deprecated-1.json
index daa672bebc678..f7c6f4790244f 100644
--- a/test/integration/fixtures/blocks/core__table__deprecated-1.json
+++ b/test/integration/fixtures/blocks/core__table__deprecated-1.json
@@ -138,11 +138,7 @@
}
],
"foot": [],
- "style": {
- "color": {
- "background": "#e7f5fe"
- }
- }
+ "backgroundColor": "subtle-pale-blue"
},
"innerBlocks": []
}
diff --git a/test/integration/fixtures/blocks/core__table__deprecated-1.parsed.json b/test/integration/fixtures/blocks/core__table__deprecated-1.parsed.json
index d2cfc5e4ca5c0..3499ffab32b2f 100644
--- a/test/integration/fixtures/blocks/core__table__deprecated-1.parsed.json
+++ b/test/integration/fixtures/blocks/core__table__deprecated-1.parsed.json
@@ -5,9 +5,9 @@
"backgroundColor": "subtle-pale-blue"
},
"innerBlocks": [],
- "innerHTML": "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption \n",
+ "innerHTML": "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption \n",
"innerContent": [
- "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption \n"
+ "\nVersion | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption \n"
]
}
]
diff --git a/test/integration/fixtures/blocks/core__table__deprecated-1.serialized.html b/test/integration/fixtures/blocks/core__table__deprecated-1.serialized.html
index e3eb1805f8a91..061aa7a2248b1 100644
--- a/test/integration/fixtures/blocks/core__table__deprecated-1.serialized.html
+++ b/test/integration/fixtures/blocks/core__table__deprecated-1.serialized.html
@@ -1,3 +1,3 @@
-
-Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption
+
+Version | Musician | Date |
---|
.70 | No musician chosen. | May 27, 2003 |
1.0 | Miles Davis | January 3, 2004 |
Lots of versions skipped, see the full list | … | … |
4.4 | Clifford Brown | December 8, 2015 |
4.5 | Coleman Hawkins | April 12, 2016 |
4.6 | Pepper Adams | August 16, 2016 |
4.7 | Sarah Vaughan | December 6, 2016 |
Table Caption