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

WIP fix(coeditor): Allow configuring CKEditor via view extension #8080

Closed
wants to merge 1 commit into from

Conversation

mrclay
Copy link
Member

@mrclay mrclay commented Mar 18, 2015

Fixes #7131

  • move to master if there's sufficient interest in this

*/
config: (function () {

<?php elgg_view('js/elgg/ckeditor/config') ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd strongly prefer not mixing php and js -- why can't we just do a require('elgg/ckeditor/config')?

@ewinslow
Copy link
Contributor

Requirejs always requests files with a .js appended. That is why you need to name your files module.js.php if you need PHP (but really, you shouldn't need PHP...)

@ewinslow
Copy link
Contributor

Ah ok, I see, the point is to extend the view.

eeeehhh.... don't like. :(

@jdalsem
Copy link
Member

jdalsem commented Mar 24, 2015

This is BC breaking as .php wins over .js.php, so previous overrides of the js file will fail... This should go to 2.x then

eeeehhh.... don't like. :(

suggestions?

@mrclay mrclay closed this Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants