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

Add plugins from option doesn't work #5

Open
phuynh opened this issue Nov 5, 2013 · 1 comment
Open

Add plugins from option doesn't work #5

phuynh opened this issue Nov 5, 2013 · 1 comment

Comments

@phuynh
Copy link

phuynh commented Nov 5, 2013

I've tried to add a plugin in option by add into 'options'=>array(plugin'=>'fontsize',) but it doesn't work.

The first try return 404 not found because the registerScriptFile don't have folder name of plugin while the default of Redactor is set to that, so it should have variable $plugin as foldername and script file as well.

foreach ($plugins as $plugin) {
$cs->registerScriptFile($this->assetsUrl . '/plugins/' . $plugin .'/'. $plugin . '.js');
}

Second try with the plugin script has been successfully loaded, it doesn't work too.

Don't know the reason why, while using same script on example HTML works perfectly.

@besnovatyj
Copy link

Уродство! Припилите плагины!

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