Ticket #5184: flash-youtube.patch

File flash-youtube.patch, 660 bytes (added by Patrice Levesque, 14 years ago)
  • flash.

    old new  
    316316                                                                                        validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.flash.validateSrc ),
    317317                                                                                        setup : loadValue,
    318318                                                                                        commit : commitValue,
     319                                                                                        onChange : function()
     320                                                                                        {
     321                                                                                                var newurl;
     322                                                                                                newurl = this.getValue().replace('youtube.com/watch?v=', 'youtube.com/v/');
     323                                                                                                if (this.getValue() != newurl) {
     324                                                                                                        this.setValue(newurl);
     325                                                                                                };
     326                                                                                        },
    319327                                                                                        onLoad : function()
    320328                                                                                        {
    321329                                                                                                var dialog = this.getDialog(),
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy