diff --git a/src/blocks/slider-item/deprecated/index.js b/src/blocks/slider-item/deprecated/index.js index 0860881bd..c3ec193f6 100644 --- a/src/blocks/slider-item/deprecated/index.js +++ b/src/blocks/slider-item/deprecated/index.js @@ -108,7 +108,7 @@ const blockAttributes6 = { }, } -// 1.73.0 で linkUrl, linkTarget を追加 +/* 次回対応おねがいします const blockAttributes7 = { ...blockAttributes6, relAttribute: { @@ -120,11 +120,18 @@ const blockAttributes7 = { default: '' }, } - +*/ export default [ { - attributes: blockAttributes7, + attributes: blockAttributes6, save: save1_94_0, + migrate: (attributes) => { + return { + ...attributes, + relAttribute: '', + linkDescription: '', + }; + }, }, { attributes: blockAttributes6, diff --git a/test/e2e-tests/fixtures/blocks/vk-blocks__slider__default.html b/test/e2e-tests/fixtures/blocks/vk-blocks__slider__default.html index 5ff6db866..eaa39f764 100644 --- a/test/e2e-tests/fixtures/blocks/vk-blocks__slider__default.html +++ b/test/e2e-tests/fixtures/blocks/vk-blocks__slider__default.html @@ -1,37 +1,37 @@ - -
-
+ +
+

スライド1

- -
+ +

スライド2

diff --git a/test/e2e-tests/fixtures/blocks/vk-blocks__slider__deprecated-1-94-2.html b/test/e2e-tests/fixtures/blocks/vk-blocks__slider__deprecated-1-94-2.html new file mode 100644 index 000000000..5ff6db866 --- /dev/null +++ b/test/e2e-tests/fixtures/blocks/vk-blocks__slider__deprecated-1-94-2.html @@ -0,0 +1,38 @@ + +
+
+

スライド1

+
+ + + +
+

スライド2

+
+
+ \ No newline at end of file