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

Adding More Templates to Canva Editor #13

Open
Dushyant-Khoda opened this issue May 9, 2024 · 3 comments
Open

Adding More Templates to Canva Editor #13

Dushyant-Khoda opened this issue May 9, 2024 · 3 comments

Comments

@Dushyant-Khoda
Copy link

Hello Canva Editor Team,

I've been using your npm package for Canva Editor, and I'm really impressed with its functionality so far. However, I'm interested in extending it by adding more templates. I noticed that the current templates are stored as JSON data, but I'm unsure about the process of adding new templates or how to convert template data into the required format.

Questions:

Could you provide some guidance on how I can add more templates to Canva Editor using the npm package?
What is the process for converting template data into the JSON format required by Canva Editor?
Are there any specific guidelines or best practices I should follow when adding new templates?
Additional Context:
I've explored the package documentation and codebase, but I couldn't find detailed instructions on extending the template library. Any help or pointers you can provide would be greatly appreciated.

Thank you for your time and assistance!

@Dushyant-Khoda Dushyant-Khoda changed the title Adding More Templates to Canva Editor via npm Package Adding More Templates to Canva Editor May 9, 2024
@kenvinlu
Copy link
Owner

Hello @Dushyant-Khoda,

To create new template, open the DevTools > Console tab to copy the template data from the console log.
Screenshot 2024-05-10 at 11 36 28

Next, go to the API source code > templates.json file and use the copied data to create a new object from the template list.
Screenshot 2024-05-10 at 11 39 06

I appreciate your interest!

@kenvinlu
Copy link
Owner

Additionally, you can stringify and minify the object using an online tool such as https://onlinejsontools.com/stringify-json.

@Dushyant-Khoda
Copy link
Author

@kenvinlu  Thanks for the quick reply! I'm excited about discovering what Canva has to offer. I wanted to share this cool trick with you: did you realise that uploading.psd files to Canva is easy? That implies those beautiful designs can be converted into Canva-editor files with ease! I would love to use the wonderful collection of templates I have now for our project. I'd like to know if there's a method to include our customised Photoshop and Illustrator templates into our Canva project without having to start from scratch. Any advice or thoughts would be highly appreciated!

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