Releases: red-axe/am-editor
Releases · red-axe/am-editor
@aomao/[email protected]
Improvements
ot
optimizes collaborative editing performance
The cursor change of the collaborator needs to be processed in theot-server
if (action === 'broadcast') {
if (data.type === 'select') {
if ('remove' in data.body) {
const index = doc.selection.findIndex(
(selection) =>
selection.uuid === data.body.uuid,
);
if (index > -1) {
doc.selection.splice(index, 1, data.body);
} else {
doc.selection.push(data.body);
}
}
}
doc.broadcast(
'broadcast',
data,
(m) => m.uuid !== uuid,
);
}
change
adjust the timing of the select cursor change event
Fixed
link
Insert character link duplicates with markdown conversiongetSelectionData
unable to get data inside editable nodemarkrange
cannot comment #178
@aomao/[email protected]
Improvements
- Refactor the algorithm for generating
ops
to ensure the uniqueness of data updates - Optimize the parsing of
markdown
Fixed
table
: cannot paste after copying multiple cellscard
: The editor change event is not triggered after pressing the delete key in the editable areavideo
: collaborative editing status, some parameters are not synchronized
@aomao/[email protected]
Fixed
- List pasting may result in nested text directly under ul or ol tags
- The getSelectionData api cannot get the contents of multiple cells selected in the table
- scrollbar may appear infinite loop
- the isFocused state is not properly set after the blur api call
- markdown transition detection precision issues https://editor.aomao.com/config#markdown
@aomao/[email protected]
Improvements
markdown is all parsed using the markdown-it library
- Remove
paste:markdown-before
paste:markdown
paste:markdown-after
paste:markdown-check
events - Added
markdown-it
markdown-it-token
event https://editor.aomao.com/docs/faq#disablecustomize-markdown - The pasted markdown is automatically converted by default, and the pasted content can be restored by undoing https://editor.aomao.com/config#markdownmode
Other
- fontsize configured with
defaultSize
will add default font size style to .am-engine node - The card plugin can configure the method of filtering the card toolbar https://editor.aomao.com/config#markdownmode #163
Fixed
- Cursor positioning is incorrect after list modification #167
- If the img tag contains onload or onerror events during the pasting process, an error will be reported
- The hr plugin will report an error during the conversion of html
- The table cell cannot be selected by clicking on the blank space
- some errors generated by the synergistic command
@aomao/[email protected]
Improvements
- message : Refactored messageSuccess & messageError & messageConfirm methods. add type parameter
- ot: After the collaborative command is executed incorrectly, reset the collaborative data on the collaborative server (delete it, then overwrite it with the current value). In order to avoid errors in the collaborative data structure and collaboration exceptions.
Full Changelog: https://github.com/red-axe/am-editor/compare/@aomao/[email protected]...@aomao/[email protected]
@aomao/[email protected]
- feat(card): Enter the mark style after the card with the mark style #155
- feat(ot): add opsChange event
- feat(request): Asynchronous data and headers can be added to the request
- fix(delete): list is merged incorrectly after deletion
- fix(input): firefox cannot enter spaces continuously
- fix(inline): warp will cause card exception #154
- fix(list): fix delete list merge error and infinite loop #157
- fix(range): History status is not updated in time
- fix(paste): paste missing paragraph centering style
- fix(card): Entering Chinese on the left and right sides of the card will delete the card
@aomao/[email protected]
- fix(link): read-only disable link editing #153
- refactor(card): The editable card cannot be edited after the updateNode method is called
@aomao/[email protected]
- Card drag button cannot be displayed
- Codeblock right-click menu doesn't work #151
@aomao/[email protected]
- Upgrade sharedb version to 2.2.5
- Switch to edit mode under readonly model ot error #150
- Cutting block nodes accidentally caused data-id duplication
@aomao/[email protected]
Improvements
- Added onDownload & onPreview optional configuration for file plugin
- Refactored code block paste parsing and syntax parsing
Fixed
- pasting into nests that cause some errors
- Regular expression matching and re-entering after conversion will be associated with the style