Results 1 to 5 of 5

Thread: Ckeditor rc1: video bbcode problem

  1. #1

    Default Ckeditor rc1: video bbcode problem

    Using Chrome or Firefox , when I click on the Video icon in CKeditor, nothing happen .

    The background goes blank but no new window with video menu is loading.

    Does anyone else has the same problem?

    Did you know how to solve it?

    Thank you
    Last edited by tintin74; 09-14-2011 at 10:29 AM.

  2. #2

    Default

    This is related to the error reported:

    In videotag.js I get this error only in Firefox & Chrome:

    (function(){
    var exampleDialog = function(editor){
    var phrase = editor.config.vbulletin.phrase;

    CKEDITOR.on('dialogDefinition', function(ev){
    var dialogName = ev.data.name;
    var dialogDefinition = ev.data.definition;

    if (dialogName == 'videotag')
    {
    var dialog = CKEDITOR.dialog.getCurrent();

    var postData = {
    ajax: 1,
    'do': 'getvideoproviders',
    securitytoken: editor.config.vbulletin.securitytoken
    };

    var responseXML = CKEDITOR.vbajax.open({
    url: 'ajax.php',
    type: 'POST',
    data: postData,
    async: false,
    dataType: 'xml'
    }).responseXML;

    var dialog_html = '';
    var providers = responseXML.getElementsByTagName('provider');
    videotag.js:28Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
    for (var i = 0; i < providers.length; i++)
    {
    var provider = providers[i];
    var name = provider.getAttribute('provider');
    var url = provider.getAttribute('url');
    dialog_html += '<a target="_blank" href="'+url+'">'+name+'</a>&nbsp;';
    }
    dialogDefinition.getContents('videotag').elements[2].html = dialog_html;
    }
    });

    return {
    title: phrase.insert_video_clip,
    onOk: function(event){
    var url = this.getValueOf('videotag', 'urlInput');
    if (PHP.trim(url) != '')
    {
    editor.insertText('' + url + '');
    }
    },
    onShow: function(){

    },
    minWidth : '300',
    minHeight: '200',
    contents: [{
    id: 'videotag',
    elements:[{
    type: 'text',
    id: 'urlInput',
    label: phrase.enter_video_url_below,
    labelLayout: 'vertical'
    },{
    type: 'html',
    html: '<div>'+phrase.example_video_url+'</div><br/>' +
    '<div>'+phrase.supported_videos+'</div>'
    },{
    type: 'html',
    id: 'providerslist',
    html: ''
    }]
    }]
    }
    };

    CKEDITOR.dialog.add('videotag', function(editor) {
    return exampleDialog(editor);
    });

    })();

  3. #3

    Default

    Does anyone have check this? Does anyone have tried to click on video icon in ckeditor using Chrome or Firefox? What is happen to you?

    Thank you guys

  4. #4
    Join Date
    Oct 2004
    Posts
    359

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Thank you for pointing this out. I've just applied the fix to the dynamics/ajax.php file in the download package here, so if you will download the files again and update that one on your server, that should correct the issue.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Video not working in BBcode page
    By Bestrafung in forum Troubleshooting & Problems
    Replies: 0
    Last Post: 07-26-2011, 12:34 PM
  2. URGENT: Vbulletin 4 video BBcode on Dynamics (2.0) seems not working
    By tintin74 in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 11-02-2010, 12:23 PM
  3. Embedded Video Size Problem!
    By danswano in forum Troubleshooting & Problems
    Replies: 0
    Last Post: 04-14-2009, 09:40 PM
  4. Strange problem with embedding video
    By ZGeek in forum Module & Modification Discussion & Requests
    Replies: 2
    Last Post: 10-26-2007, 08:52 PM
  5. Clicking video link on left displays video in the centre
    By Renada in forum "How Do I..." Questions
    Replies: 2
    Last Post: 08-16-2005, 11:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •