Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.js.coffee overridden by template config.js when placed in mounted engine #69

Open
JakeTheSnake3p0 opened this issue Sep 7, 2015 · 1 comment

Comments

@JakeTheSnake3p0
Copy link

I wish to provide a default configuration inside my Rails engine that mounting apps can implicitly accept (by not writing any CKEDITOR js in their application). However with the absence of app/assets/javascripts/ckeditor/config.js in the mounting app, the following config.js file is served after the engine's config.js.coffee and effectively overwrites the method definition:

/**
 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */


CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
};

Here's a screencap of the network requests in the Inspector panel:

network-requests

@prepsaKayastha
Copy link

Hi @JakeTheSnake3p0
I'm facing the same issue. Were you able to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants