? Pending

User tests: Successful: Unsuccessful:

avatar piotrmocko
piotrmocko
30 Nov 2015

To test it install OneDrive extension and enable editor buttons plugins.
Go to article edit view and hit OneDrive button. Check you browser console to see the error.
https://www.perfect-web.co/joomla-extensions/microsoft-onedrive-gallery-file

When button plugin has onclick property with JavaScript code it is being added after
editor.windowManager.open({...});
So there can not be a coma (,) between above code and onclick code define in plugin.
Below is code rendered by TinyMCE plugin which contains a coma (line before SkyDriveButton...) which leads to JavaScript error

editor.addButton("OneDriveFile", {
    text: "OneDrive File",
    title: "OneDrive File",
    icon: "none icon-flag-2", 
    onclick: function () {
        editor.windowManager.open({
            title : "OneDrive File",
            url : 'http://localhost/administrator/index.php',
            buttons: [{ text : "Close", onclick: "close" }] 
        });,
        SkyDriveButton.browseFile('tinymce');
        return false;
    }
});
avatar piotrmocko piotrmocko - open - 30 Nov 2015
avatar piotrmocko piotrmocko - change - 30 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Nov 2015
Labels Added: ?
avatar Fedik
Fedik - comment - 30 Nov 2015

please check if that #8420 fixed your problem :wink:

avatar piotrmocko
piotrmocko - comment - 30 Nov 2015

Yes that is the same fix.

avatar piotrmocko piotrmocko - change - 30 Nov 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-11-30 10:46:02
Closed_By piotrmocko
avatar piotrmocko piotrmocko - close - 30 Nov 2015

Add a Comment

Login with GitHub to post a comment