Closed zzxming closed 1 month ago
The changes introduced in this pull request focus on enhancing the functionality of the Fluent Editor by adding new attributors for text styling, such as font size, font style, line height, and text indent. Additionally, the management of inner HTML in the editor is improved through the introduction of a reactive reference and an update function. Some deprecated configurations related to font settings are removed, indicating a shift towards a more modular and dynamic approach to styling.
File Path | Change Summary |
---|---|
packages/docs/fluent-editor/demos/get-html.vue |
Added articleRef and updateHTML function for managing inner HTML reactively. |
packages/fluent-editor/src/attributors/font-size.ts |
Introduced SizeStyle attributor for manipulating font size in the Quill editor. |
packages/fluent-editor/src/attributors/font-style.ts |
Introduced FontStyle attributor for managing font family in the Quill editor. |
packages/fluent-editor/src/attributors/line-height.ts |
Introduced LineHeightStyle attributor for managing line height in the Quill editor. |
packages/fluent-editor/src/attributors/text-indent.ts |
Introduced TextIndentStyle attributor for managing text indentation in the Quill editor. |
packages/fluent-editor/src/attributors/index.ts |
Created central export file for text styling attributors. |
packages/fluent-editor/src/config.ts |
Removed FONT_FAMILY_CONFIG and FONT_SIZE_CONFIG constants. |
packages/fluent-editor/src/fluent-editor.ts |
Updated imports and registration of modules; removed old font configurations. |
packages/fluent-editor/src/table/table-config.ts |
Expanded CELL_ATTRIBUTES to include a new 'list' attribute. |
packages/fluent-editor/src/lineheight.ts |
Removed lineheight.ts file, eliminating previous line height management functionality. |
get-html.vue
, which relates to managing the inner HTML and integrating syntax highlighting features.refactoring
🐰 In the garden of code, we hop and play,
With new styles and functions, brightening the day.
Font sizes and indents, all neatly aligned,
A tapestry of text, beautifully designed.
So let’s celebrate changes, both big and small,
For in this editor, we’ll style it all! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@zzxming text-indent
未生效,其他的都OK了
@zzxming
text-indent
未生效,其他的都OK了
text-indent 设置的是首行缩进,文本前后缩进是另外的格式,quill本身也没有实现文本前后的缩进,需要吗?
@zzxming
text-indent
未生效,其他的都OK了text-indent 设置的是首行缩进,文本前后缩进是另外的格式,quill本身也没有实现文本前后的缩进,需要吗?
了解,我觉得不着急,Word 粘贴本身就比较复杂,后续根据业务需求再逐渐完善吧
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #61
What is the new behavior?
paste correct format about
line-height
/text-indent
/font-size
/font-style
/list
.Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores