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

ReferenceError: Redactor is not defined #19

Closed
hybridinteractive opened this issue Apr 3, 2018 · 4 comments
Closed

ReferenceError: Redactor is not defined #19

hybridinteractive opened this issue Apr 3, 2018 · 4 comments

Comments

@hybridinteractive
Copy link

I'm trying to add alignment to the redactor plugin.

According to the docs:

just place their JS file (and CSS file if there is one) in config/redactor/plugins/. Both files should have the exact same name as the plugin ID that you will be typing into the plugins array in your Redactor config JSON.

In my config/redactor/Simple.json I have:

{
	"buttons": ["bold", "italic"],
	"plugins": ["source", "alignment"],
	"toolbarFixed": true
}

I downloaded script and added it here: config/redactor/plugins/alignment.js but then I get this: Uncaught ReferenceError: Redactor is not defined at Alignment.js:54

I don't have to modify any js do I?

@jsunsawyer
Copy link

I saw this in Slack and tested it on my install. I'm not getting an error and the js file is loading, but I'm not seeing the alignment options on my redactor field.

@hybridinteractive
Copy link
Author

hybridinteractive commented Apr 4, 2018 via email

@jsunsawyer
Copy link

Oops, yes. Uncaught ReferenceError: Redactor is not defined at alignment.js:54

@brandonkelly
Copy link
Member

I'm guessing this issue is due to the fact that the documentation is all geared for Redactor 3.

We just released v2.0.0 which is powered by Redactor 3, so you should have better luck now.

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