The invention belongs to the technical field of
data processing, and relates to an online visual demonstration document editing method, which comprises the following steps of: establishing real-time communication connection between a
client and a
server; the operation of the user in the editor is sent to the
server in real time; the
server broadcasts the operation to all users editing the same document; when a user operates in the editor, the front-end script records the version number of the current document; before each operation, the
client sends a current version number to the server, the server checks whether the version numbers are consistent or not, and if the version numbers are not matched, a conflict prompt is returned; for the conflict prompt, the user can choose to abandon the current operation or manually solve the conflict; after each editing operation is completed, the front-end script carries out version control, and a new version number is generated and stored in a
database; and for multiple editing operations in a short time, the front-end script automatically combines the operations, and the combined operations are stored in the version control front-end script as a whole, so that the number of versions is reduced.