Forum
Perch 3 and MarkItUp Customisation
Hi,
Recently we upgraded to Perch 3 and want to carry over our text editor customisation.
There is an example in the documentation for Redactor on how to do this. https://docs.grabaperch.com/api/editors/
I'm trying to locate an example for MarkItUp. Does anyone have any idea how to implement and if there are any differences?
Thanks
You need to write your
Perch.UserConfig.markitup.get()
function to return the MarkItUp configuration you want to use.Ok - I guess what I'm saying is it isn't clear how to write the configuration inside the function for Markdown. Is there any examples or documentation that I can follow?
We originally had the following amends in our configuration file for Markdown which we want to retain across to Perch 3:
Yes, that's right - you'd keep it basically the same. Just return the config object. An example would be the
markdownSettings
var in the default config.Ok thanks - I'll take a shot at it and see where I get.
I'm not getting this... am I on the right track here? Full code below removes the buttons from my markdown editors.
Not really. Try: