-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implementing apis #18
Comments
Hello |
Oh ok I understand what you want to do, you want to add other fonts in addition to Google fonts I'm not sure that it will work but maybe the best way to do this would be using the options of the plugin. We should add an option with an array of additional fonts or maybe a callback function that the plugin would call to get the list of fonts? I hope the functions to get the html imports will still work properly Would you like to contribute ? |
Hi @lexoyo So as a solution for this what I have done is whenever I add a custom font I will add that to my db via api and on load of the plugin i will add the same on the dropdown. I didn't done much changes on the code, all I have done is like I just added two apis one for posting the selected fonts and one for getting the fonts. I don't know whether I missed anything,
|
Hi
I was trying to implement api for saving the selected fonts and retrieve them on page load.
Now I am able to save the selected fonts on my db, but on load of the page fonts coming from apis are not getting added properly.
I have added the get api in refresh function like this
This is actually working but api is called several times.
Is there any way to get the fonts from the api and set it to the editor from any other functions?
I tried multiple approached but nothing is working properly.
Thanks in advance,
The text was updated successfully, but these errors were encountered: