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

legacy template support stopped #138

Open
griefertsili opened this issue Oct 8, 2024 · 1 comment
Open

legacy template support stopped #138

griefertsili opened this issue Oct 8, 2024 · 1 comment

Comments

@griefertsili
Copy link

by converting object parameter to JSONTemplate in the below commit
0053156#diff-799ddc34b2296767ac7f9fa14bae6050609a104930ded4de787dfdb7f49e50cbL97

the angular port of unlayer cannot use the legacy template loading as described in the official docs
https://docs.unlayer.com/docs/legacy-templates
https://examples.unlayer.com/web/legacy-template/

@griefertsili
Copy link
Author

griefertsili commented Oct 8, 2024

as a workaround for anyone that comes across this you can use:
this.editor.loadDesign({html: '...', classic: true} as any);

but I think the angular implementation needs to provide the fully typed option with something like that:

loadDesign(design: JSONTemplate | ClassicTemplate): void;

export type ClassicTemplate= {
        html: string;
        classic: boolean;
        //other properties
    };

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

1 participant