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
Allow customization of redactor plugins #38
Comments
It’s up to Imperavi to make their plugins configurable, so I’ll pass this feedback on to them. That said if you need to make a change to one of the bundled plugins, you can just copy the plugin into your |
Ah ok cool, didn't realize that we could make a copy in |
@brandonkelly I didn't realize it either and it's a great feature! |
@davist11 I wrote the Custom Styles plugin that does exactly what you’re after. Have a look at the example JSON file https://github.com/carlcs/craft-redactorcustomstyles/blob/v3/_examples/redactor/Example.json |
@carlcs I'm having this same issue with your plugin too:
|
@davist11 yeah, I can replicate, it appends a new anchor tag instead of applying the format to the selected tag. Unfortunatelly there’s nothing I can do, as this seems to be a bug with the |
Yup, that’s what I was experiencing too when creating a direct copy of the plugin file and modifying. |
Just wanted to chime in here and second the comment made by @iMoses . Spent the better part of a day trying to put together a craft php plugin to add redactor functionality without knowing about the |
@bryantwells Done: 06fbff6 |
Is it possible to do a similar thing with the redactor js files? I want to modify CraftCMS's original configuration for images. I can modify these lines in imagePosition: !1,
imageResizable: !1, to imagePosition: !0,
imageResizable: !0, to get what I want. But this obviously isn't a good idea because now I can't run updates. I tried creating a copy here If not, what do you think would be the easiest solution? |
Have you tried to set the relevant options in the Redactor config? |
@andris-sevcenko |
@nickolasjadams I'm just glad you got what you needed :) |
The newest version of the Craft Redactor plugin comes with all of the Redactor plugins bundled in it, which is awesome!
But, these plugins don't give you the ability to customize with options passed from the Redactor configs. For example, the inlinestyles plugin, forces you to be locked into the styles provided (unless I'm missing something).
It would be awesome if we could pass in options from the Redactor config JSON files to override these.
The text was updated successfully, but these errors were encountered: