summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/content_editor/constants.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 07:33:21 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-19 07:33:21 +0000
commit36a59d088eca61b834191dacea009677a96c052f (patch)
treee4f33972dab5d8ef79e3944a9f403035fceea43f /app/assets/javascripts/content_editor/constants.js
parenta1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff)
downloadgitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
Diffstat (limited to 'app/assets/javascripts/content_editor/constants.js')
-rw-r--r--app/assets/javascripts/content_editor/constants.js60
1 files changed, 0 insertions, 60 deletions
diff --git a/app/assets/javascripts/content_editor/constants.js b/app/assets/javascripts/content_editor/constants.js
deleted file mode 100644
index a39a243ec6b..00000000000
--- a/app/assets/javascripts/content_editor/constants.js
+++ /dev/null
@@ -1,60 +0,0 @@
-import { s__, __ } from '~/locale';
-
-export const PROVIDE_SERIALIZER_OR_RENDERER_ERROR = s__(
- 'ContentEditor|You have to provide a renderMarkdown function or a custom serializer',
-);
-
-export const CONTENT_EDITOR_TRACKING_LABEL = 'content_editor';
-export const TOOLBAR_CONTROL_TRACKING_ACTION = 'execute_toolbar_control';
-export const BUBBLE_MENU_TRACKING_ACTION = 'execute_bubble_menu_control';
-export const KEYBOARD_SHORTCUT_TRACKING_ACTION = 'execute_keyboard_shortcut';
-export const INPUT_RULE_TRACKING_ACTION = 'execute_input_rule';
-
-export const TEXT_STYLE_DROPDOWN_ITEMS = [
- {
- contentType: 'heading',
- commandParams: { level: 1 },
- editorCommand: 'setHeading',
- label: __('Heading 1'),
- },
- {
- contentType: 'heading',
- editorCommand: 'setHeading',
- commandParams: { level: 2 },
- label: __('Heading 2'),
- },
- {
- contentType: 'heading',
- editorCommand: 'setHeading',
- commandParams: { level: 3 },
- label: __('Heading 3'),
- },
- {
- contentType: 'heading',
- editorCommand: 'setHeading',
- commandParams: { level: 4 },
- label: __('Heading 4'),
- },
- {
- contentType: 'paragraph',
- editorCommand: 'setParagraph',
- label: __('Normal text'),
- },
-];
-
-export const LOADING_CONTENT_EVENT = 'loading';
-export const LOADING_SUCCESS_EVENT = 'loadingSuccess';
-export const LOADING_ERROR_EVENT = 'loadingError';
-export const ALERT_EVENT = 'alert';
-
-export const PARSE_HTML_PRIORITY_LOWEST = 1;
-export const PARSE_HTML_PRIORITY_DEFAULT = 50;
-export const PARSE_HTML_PRIORITY_HIGHEST = 100;
-
-export const EXTENSION_PRIORITY_LOWER = 75;
-/**
- * 100 is the default priority in Tiptap
- * https://tiptap.dev/guide/custom-extensions/#priority
- */
-export const EXTENSION_PRIORITY_DEFAULT = 100;
-export const EXTENSION_PRIORITY_HIGHEST = 200;