diff --git a/readme.txt b/readme.txt index c7aabbd6..7d967c1c 100644 --- a/readme.txt +++ b/readme.txt @@ -106,11 +106,14 @@ e.g. == Changelog == += 1.90.1 = +[ Bug fix ][ Cover ] Fixed inline styles not being retained when adding a link. + = 1.90.0 = [ Add function ][ Outer (Pro) ] Add book and pyramid in divider style. [ Bug fix ] The split loading option is now supported for core/heading, core/image, and core/table styles for block editor. [ Bug fix ][ Cover ] Fixed an issue where, after setting a link in the Cover block and adding two unstyled headings inside it, the content positioning would not apply upon returning to the editing screen (editing screen only). -[ Bug fix ][ Slider ] Add alert message. +[ Other ][ Slider ] Add alert message. = 1.89.0 = [ Add function ][ Outer (Pro) ] Added support for core text color settings. diff --git a/src/extensions/core/cover/style.js b/src/extensions/core/cover/style.js index c1fd2d1e..eab2980c 100644 --- a/src/extensions/core/cover/style.js +++ b/src/extensions/core/cover/style.js @@ -81,13 +81,14 @@ const insertLinkIntoCoverBlock = (element, blockType, attributes) => { const existingClassName = element.props.className || ''; const classNameWithLink = `${existingClassName} ${linkUrl ? 'has-link' : ''}`.trim(); + const existingStyle = element.props.style || {}; // rel 属性の設定 const relAttribute = linkTarget === '_blank' ? 'noopener noreferrer' : 'noopener'; return ( -