(function(Modules) { "use strict"; if ( !('oninput' in document.createElement('input')) ) return; const tagPattern = /\(\(([^\)\((\?)]+)(\?\?)?([^\)\(]*)\)\)/g; Modules.EnhancedTextbox = function() { this.start = function(textarea) { let visibleTextbox; this.highlightPlaceholders = ( typeof textarea.data('highlightPlaceholders') === 'undefined' || !!textarea.data('highlightPlaceholders') ); this.$textbox = $(textarea) .wrap(`
`) .after(this.$background = $(`