@@ -521,7 +521,7 @@ class CMSEditor {
521521 cms_history : 0 ,
522522 } ;
523523 const url = `${ settings . add_plugin_url } ?${ new URLSearchParams ( data ) . toString ( ) } ` ;
524- return this . loadForm ( url , iframe , el , onLoad , onSave ) ;
524+ return this . loadPluginForm ( url , iframe , el , onLoad , onSave ) ;
525525 }
526526
527527 // CMS Editor: addPluginForm
@@ -535,10 +535,10 @@ class CMSEditor {
535535 cms_history : 0 ,
536536 } ;
537537 url = `${ url } ?${ new URLSearchParams ( data ) . toString ( ) } ` ;
538- return this . loadForm ( url , iframe , el , onLoad , onSave ) ;
538+ return this . loadPluginForm ( url , iframe , el , onLoad , onSave ) ;
539539 }
540540
541- loadForm ( url , iframe , el , onLoad , onSave ) {
541+ loadPluginForm ( url , iframe , el , onLoad , onSave ) {
542542 iframe . addEventListener ( 'load' , ( ) => {
543543 const form = iframe . contentDocument ;
544544 const heading = form . querySelector ( '#content h1' ) ;
@@ -565,9 +565,7 @@ class CMSEditor {
565565 // Hook into the django CMS dataBridge to get the details of the newly created or saved
566566 // plugin. For new plugins we need their id to get the content.
567567
568- if ( ! this . CMS . API . Helpers . dataBridge ) {
569- this . processDataBridge ( form ) ;
570- }
568+ this . processDataBridge ( form ) ;
571569 // Needed to update StructureBoard
572570 if ( onSave && this . CMS . API . Helpers . dataBridge ) {
573571 onSave ( el , form , this . CMS . API . Helpers . dataBridge ) ;
0 commit comments