Dotclear

Changeset 4040:6f54ca9d1431


Ignore:
Timestamp:
09/19/19 17:18:10 (5 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.15
Message:

No more flash we said!

Location:
plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/js/popup_media.js

    r4010 r4040  
    110110      // Video media 
    111111      const oplayer = $(`<div>${$('#public_player').val()}</div>`); 
    112       let flashvars = $('[name=FlashVars]', oplayer).val(); 
    113112 
    114113      const align_video = $('input[name="alignment"]:checked', insert_form).val(); 
    115  
    116       const title = insert_form.elements.title.value; 
    117       if (title) { 
    118         flashvars = `title=${encodeURI(title)}&amp;${flashvars}`; 
    119       } 
    120114 
    121115      const vw = $('#video_w').val(); 
     
    125119        $('video', oplayer).attr('width', vw); 
    126120        $('object', oplayer).attr('width', vw); 
    127         flashvars = flashvars.replace(/(width=\d*)/, 'width=' + vw); 
    128121      } else { 
    129122        $('video', oplayer).removeAttr('width'); 
    130123        $('object', oplayer).removeAttr('width'); 
    131         flashvars = flashvars.replace(/(width=\d*)/, ''); 
    132124      } 
    133125      if (vh > 0) { 
    134126        $('video', oplayer).attr('height', vh); 
    135127        $('object', oplayer).attr('height', vh); 
    136         flashvars = flashvars.replace(/(height=\d*)/, 'height=' + vh); 
    137128      } else { 
    138129        $('video', oplayer).removeAttr('height'); 
    139130        $('object', oplayer).removeAttr('height'); 
    140         flashvars = flashvars.replace(/(height=\d*)/, ''); 
    141131      } 
    142132 
    143       $('[name=FlashVars]', oplayer).val(flashvars); 
    144133      let player_video = oplayer.html(); 
    145134 
  • plugins/dcLegacyEditor/js/jsToolBar/popup_media.js

    r4010 r4040  
    6969    { 
    7070      var oplayer = $(`<div>${$('#public_player').val()}</div>`); 
    71       var flashvars = $('[name=FlashVars]', oplayer).val(); 
    7271 
    7372      align = $('input[name="alignment"]:checked', insert_form).val(); 
    74  
    75       var title = insert_form.elements.title.value; 
    76       if (title) { 
    77         flashvars = 'title=' + encodeURI(title) + '&amp;' + flashvars; 
    78       } 
    7973 
    8074      var vw = $('#video_w').val(); 
     
    8478        $('video', oplayer).attr('width', vw); 
    8579        $('object', oplayer).attr('width', vw); 
    86         flashvars = flashvars.replace(/(width=\d*)/, 'width=' + vw); 
    8780      } else { 
    8881        $('video', oplayer).removeAttr('width'); 
    8982        $('object', oplayer).removeAttr('width'); 
    90         flashvars = flashvars.replace(/(width=\d*)/, ''); 
    9183      } 
    9284      if (vh > 0) { 
    9385        $('video', oplayer).attr('height', vh); 
    9486        $('object', oplayer).attr('height', vh); 
    95         flashvars = flashvars.replace(/(height=\d*)/, 'height=' + vh); 
    9687      } else { 
    9788        $('video', oplayer).removeAttr('height'); 
    9889        $('object', oplayer).removeAttr('height'); 
    99         flashvars = flashvars.replace(/(height=\d*)/, ''); 
    10090      } 
    10191 
    102       $('[name=FlashVars]', oplayer).val(flashvars); 
    10392      player = oplayer.html(); 
    10493 
Note: See TracChangeset for help on using the changeset viewer.

Sites map