Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] support background config in the text of richtext #1657

Open
xiaoluoHe opened this issue Dec 27, 2024 · 0 comments
Open

[Feature] support background config in the text of richtext #1657

xiaoluoHe opened this issue Dec 27, 2024 · 0 comments

Comments

@xiaoluoHe
Copy link
Contributor

What problem does this feature solve?

富文本中文字支持背景相关配置,包括: background,backgroundOpacity,backgroundCornerRadius

What does the proposed API look like?

export type IRichTextParagraphCharacter = IRichTextBasicCharacter & {
 ...
  // Add these attributes:
  backgroundShowMode?: 'always' | 'hover' | 'never';
  backgroundFill?: boolean | IColor; // 背景矩形填充颜色
  backgroundFillOpacity?: number; // 背景矩形填充透明度
  backgroundStroke?: boolean | IColor; // 背景矩形边框颜色
  backgroundStrokeOpacity?: number; // 背景矩形边框透明度
  backgroundRadius?: number; // 背景矩形圆角
  backgroundWidth?: number;
  backgroundHeight?: number;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant