better support for mailchimp emails
[Pman.Core] / Pman.Dialog.CoreEmail.js
index 280b803..0cd9182 100644 (file)
@@ -76,7 +76,7 @@ Pman.Dialog.CoreEmail = {
 
   this.callback = cb;
   this.data = data;
-  this.dialog.show(this.data._el);
+  this.dialog.show.apply(this.dialog,  Array.prototype.slice.call(arguments).slice(2));
   if (this.form) {
    this.form.reset();
    this.form.setValues(data);
@@ -797,42 +797,50 @@ Pman.Dialog.CoreEmail = {
                  },
                  clearUp : false,
                  cwhite : [ 
-                     'margin',
-                     'padding',
-                     'text-align',
                      'background',
-                     'height',
-                     'width',
                      'background-color',
+                     'border',
+                     'border-bottom',
+                     'border-collapse',
+                     'clear',
+                     'color',
+                     'cursor',
+                     'display',
+                     'float' ,
+                     'font-family',
                      'font-size',
+                     'font-weight',
+                     'height',
+                     'left',
                      'line-height',
-                     'color',
-                     'outline',
-                     'text-decoration',
-                     'position',
-                     'clear',
-                     'overflow',
-                     'margin-top',
-                     'border-bottom',
-                     'top',
                      'list-style',
+                     'margin',
+                     'margin-bottom',
                      'margin-left',
-                     'border',
-                     'float' ,
                      'margin-right',
-                     'padding-top',
+                     'margin-top',
+                     'max-width',
                      'min-height',
-                     'left',
-                     'padding-left',
-                     'font-weight',
-                     'font-family',
-                     'display',
-                     'margin-bottom',
+                     '-ms-interpolation-mode',
+                     'mso-table-rspace',
+                     '-ms-text-size-adjust',
+                     'outline',
+                     'overflow',
+                     'padding',
                      'padding-bottom',
+                     'padding-left',
+                     'padding-right',
+                     'padding-top',
+                     'position',
+                     'right',
+                     'text-align',
+                     'text-decoration',
+                     'top',
                      'vertical-align',
-                     'cursor',
-                     'z-index',
-                     'right'
+                     '-webkit-text-size-adjust',
+                     'width',
+                     'width',
+                     'z-index'
                   ],
                  height : 250,
                  name : 'bodytext',