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

how to add plugins or skin ? #193

Closed
n37r06u3 opened this issue Jun 3, 2015 · 7 comments
Closed

how to add plugins or skin ? #193

n37r06u3 opened this issue Jun 3, 2015 · 7 comments

Comments

@n37r06u3
Copy link

n37r06u3 commented Jun 3, 2015

I want to add some more plugin to django-ckeditor.
But found that the plugin directory was located at site-packages dir..

@SalahAdDin
Copy link

well, i asked long time ago and @riklaunim say me that they don't put other plugins if aren't necesseary, so, i download the skin or plugin in the site package directory and unzip it, it's all. Ah, you need put in the ckeditor config :D

@riklaunim
Copy link
Contributor

static files go into static files directory. If you put plugin ins a ckeditor/ckeditor/plugins subfolder it will work. Collectstatic will merge all files and folders and you will get typical ckeditor setup.

@n37r06u3
Copy link
Author

n37r06u3 commented Jun 3, 2015

thx , I put them to static/ckeditor/ckeditor/plugins and it works.
But I got a new problem .
How to config more extraPlugins in settings.py

CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'Custom',
'toolbar_Custom': [
['Bold', 'Italic', 'Underline'],
['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
['Link', 'Unlink'],
['RemoveFormat', 'Source', 'CodeSnippet','pbckcode']
],
'height': 300,
'extraPlugins': ['pbckcode', 'codesnippet']
},
}

it not work with
'extraPlugins': ['pbckcode', 'codesnippet']

it seems extraPlugins can not parse the list config string..

@riklaunim
Copy link
Contributor

What's the JS output of it?

@n37r06u3
Copy link
Author

n37r06u3 commented Jun 3, 2015

if extra_plugins:
self.config['extraPlugins'] = ','.join(extra_plugins)

I found the parse code, solve my problem.

@n37r06u3 n37r06u3 closed this as completed Jun 3, 2015
@BhuwanPandey
Copy link

I had used youtube plugin, it show on ckeditor but after saving the object.
I didnot get that video. what might be the problem?

@SalahAdDin
Copy link

SalahAdDin commented Jan 5, 2023

I used the youtube plugin, and it shows on CKEditor but after saving the object. I didn't get that video. what might be the problem?

It is better if you create a new issue so people can focus on it and help you better.

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

4 participants