diff --git a/assets/javascripts/discourse/initializers/custom-wizard-edits.js b/assets/javascripts/discourse/initializers/custom-wizard-edits.js index aa31fcf98..d96e0e5a7 100644 --- a/assets/javascripts/discourse/initializers/custom-wizard-edits.js +++ b/assets/javascripts/discourse/initializers/custom-wizard-edits.js @@ -45,9 +45,12 @@ export default { api.modifyClass("component:d-editor", { pluginId: "custom-wizard", - init() { - this._super(...arguments); - this.editorComponent = CustomWizardTextareaEditor; + setupEditorMode() { + if (this.wizardComposer) { + this.editorComponent = CustomWizardTextareaEditor; + return; + } + return this._super(...arguments); }, didInsertElement() { diff --git a/plugin.rb b/plugin.rb index 09f509b8a..feb91a02d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.13.4 +# version: 2.13.5 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Marcos Gutierrez # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech