PluginProbe
Hello Plus / 1.7.3
Hello Plus v1.7.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7.0 1.7.1 1.7.2 1.7.3 All 30 releases
hello-plus / modules / forms / assets / js / editor / module.js

module.js in Hello Plus 1.7.3, at modules/forms/assets/js/editor/module.js

32 lines 962 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import Component from './component';
2 import FieldsMapControl from './fields-map-control';
3 import FieldsRepeaterControl from './fields-repeater-control';
4
5 export default class FormsModule extends elementorModules.editor.utils.Module {
6 onElementorInit() {
7 const ReplyToField = require( './reply-to-field' );
8
9 this.replyToField = new ReplyToField();
10
11 // Form fields
12 const AcceptanceField = require( './fields/acceptance' ),
13 TelField = require( './fields/tel' );
14
15 this.Fields = {
16 tel: new TelField( 'ehp-form' ),
17 acceptance: new AcceptanceField( 'ehp-form' ),
18 };
19
20 elementor.addControlView( 'Fields_map', FieldsMapControl );
21 elementor.addControlView( 'form-fields-repeater', FieldsRepeaterControl );
22
23 if ( typeof elementorPromotionsData !== 'undefined' ) {
24 elementorPromotionsData.collect_submit = window.ehpFormsPromotionData;
25 }
26 }
27
28 onElementorInitComponents() {
29 $e.components.register( new Component( { manager: this } ) );
30 }
31 }
32