Welcome to mirror list, hosted at ThFree Co, Russian Federation.

loading.js « extensions « content_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0115fb10d5d843a01c2b4f74908fc7064fe9360a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Node } from '@tiptap/core';

export default Node.create({
  name: 'loading',
  inline: true,
  group: 'inline',

  addAttributes() {
    return {
      id: {
        default: null,
      },
    };
  },

  renderHTML() {
    return [
      'span',
      { class: 'gl-display-inline-flex gl-align-items-center' },
      ['span', { class: 'gl-dots-loader gl-mx-2' }, ['span']],
    ];
  },
});