!36998 【RichEditor】修改设置typingStyle后输入内容textShadow属性异常

Merge pull request !36998 from xuyue/copystyle
This commit is contained in:
openharmony_ci 2024-07-04 13:08:27 +00:00 committed by Gitee
commit 0541006725
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1265,6 +1265,7 @@ void RichEditorPattern::CopyTextSpanFontStyle(RefPtr<SpanNode>& source, RefPtr<S
COPY_SPAN_STYLE_IF_PRESENT(source, target, LineHeight, PropertyInfo::LINEHEIGHT);
COPY_SPAN_STYLE_IF_PRESENT(source, target, LetterSpacing, PropertyInfo::LETTERSPACE);
COPY_SPAN_STYLE_IF_PRESENT(source, target, FontFeature, PropertyInfo::FONTFEATURE);
COPY_SPAN_STYLE_IF_PRESENT(source, target, TextShadow, PropertyInfo::TEXTSHADOW);
}
void RichEditorPattern::CopyTextSpanLineStyle(
@ -1272,7 +1273,6 @@ void RichEditorPattern::CopyTextSpanLineStyle(
{
CHECK_NULL_VOID(source);
CHECK_NULL_VOID(target);
COPY_SPAN_STYLE_IF_PRESENT(source, target, TextShadow, PropertyInfo::TEXTSHADOW);
COPY_SPAN_STYLE_IF_PRESENT(source, target, TextAlign, PropertyInfo::TEXT_ALIGN);
COPY_SPAN_STYLE_IF_PRESENT(source, target, WordBreak, PropertyInfo::WORD_BREAK);
COPY_SPAN_STYLE_IF_PRESENT(source, target, LineBreakStrategy, PropertyInfo::LINE_BREAK_STRATEGY);