summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/editor/source_editor_extension.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/editor/source_editor_extension.js')
-rw-r--r--app/assets/javascripts/editor/source_editor_extension.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/editor/source_editor_extension.js b/app/assets/javascripts/editor/source_editor_extension.js
index f6bc62a1c09..6d47e1e2248 100644
--- a/app/assets/javascripts/editor/source_editor_extension.js
+++ b/app/assets/javascripts/editor/source_editor_extension.js
@@ -5,10 +5,10 @@ export default class EditorExtension {
if (typeof definition !== 'function') {
throw new Error(EDITOR_EXTENSION_DEFINITION_ERROR);
}
- this.name = definition.name; // both class- and fn-based extensions have a name
this.setupOptions = setupOptions;
// eslint-disable-next-line new-cap
this.obj = new definition();
+ this.extensionName = definition.extensionName || this.obj.extensionName; // both class- and fn-based extensions have a name
}
get api() {