Expand all

abstract mw.editcheck.ContentBranchNodeCheck

Constructor

new mw.editcheck.ContentBranchNodeCheck()abstract #

Abstract mixin for any Edit Check that works on a per-paragraph basis, independent of the content in other nodes. It handles:

  • checking paragraph-by-paragraph
  • caching the results of each paragraph on a per-node basis
  • filtering to show actions only for modified paragraphs
  • filtering to show actions only for ranges that have not been dismissed
Source:

Abstract mixin for any Edit Check that works on a per-paragraph basis, independent of the content in other nodes.

Properties

checkNodeabstract #

Find any ranges in the node that contain content that should trigger this edit check

Source:
Find any ranges in the node that contain content that should trigger this edit check

Methods

onDocumentChange(surfaceModel) → {Array.<Promise>}abstract #

Get actions to show when document changed

Parameters:

Name Type Description
surfaceModel ve.dm.Surface

Returns:

Action, Promises that resolve with a mw.editcheck.EditCheckAction or null

Type
Array.<Promise>
Source:
Get actions to show when document changed