Opened 6 years ago

Closed 6 years ago

#10913 closed Bug (fixed)

Plugins added with CKEDITOR.plugins.addExternal do not work

Reported by: Wiktor Walc Owned by: Frederico Caldeira Knabben
Priority: Normal Milestone: CKEditor 4.2.2
Component: General Version: 4.0
Keywords: Cc:

Description

I moved the smiley folder out of the ckeditor/plugins folder and put it into a separate location. To use the extra plugin:

CKEDITOR.replace( 'editor1', { extraPlugins : 'smiley' } );

I'm trying to register an external plugin.

This one works:

CKEDITOR.plugins.addExternal( 'smiley', '/plugins/smiley/', 'plugin.js' );

while this method doesn't fully work:

CKEDITOR.plugins.addExternal( 'smiley', '/plugins/smiley/plugin.js', '' );

According to the documentation, both should work.

The result for the latter is that the English translation is not properly loaded, as a result the editor does not start at all.

The requested URL for the language file is:

/plugins/smiley/plugin.jslang/en.js

Change History (5)

comment:1 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Version: 4.0

This issue was fixed in 3.x with ticket: #5250. It was workinhg fine till 3.6.6 and got broken again in version 4.x.

comment:2 Changed 6 years ago by Wiktor Walc

Milestone: CKEditor 4.2.2

comment:3 Changed 6 years ago by Frederico Caldeira Knabben

Owner: set to Frederico Caldeira Knabben
Status: confirmedreview

Pushed fixes on t/10913 on both dev and tests.

comment:4 Changed 6 years ago by Piotrek Koszuliński

Status: reviewreview_passed

R+.

comment:5 Changed 6 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: review_passedclosed

Fixed with git:cec1019.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy