Skip to content

Releases: red-axe/am-editor

@aomao/[email protected]

27 May 08:13
Compare
Choose a tag to compare

Improvements

  • ot optimizes collaborative editing performance
    The cursor change of the collaborator needs to be processed in the ot-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 conversion
  • getSelectionData unable to get data inside editable node
  • markrange cannot comment #178

@aomao/[email protected]

25 May 13:08
Compare
Choose a tag to compare

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 cells
  • card: The editor change event is not triggered after pressing the delete key in the editable area
  • video: collaborative editing status, some parameters are not synchronized

@aomao/[email protected]

23 May 07:58
Compare
Choose a tag to compare

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]

22 May 14:52
Compare
Choose a tag to compare

Improvements

markdown is all parsed using the markdown-it library

Other

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]

13 May 09:08
Compare
Choose a tag to compare

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]

12 May 15:10
Compare
Choose a tag to compare
  • 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]

06 May 02:59
Compare
Choose a tag to compare
  • 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]

27 Apr 12:01
Compare
Choose a tag to compare
  • Card drag button cannot be displayed
  • Codeblock right-click menu doesn't work #151

@aomao/[email protected]

24 Apr 09:42
Compare
Choose a tag to compare
  • 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]

20 Apr 16:35
Compare
Choose a tag to compare

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