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

Populate Block UI with an Ajax call #535

Closed
scriptamanent opened this issue May 22, 2017 · 1 comment
Closed

Populate Block UI with an Ajax call #535

scriptamanent opened this issue May 22, 2017 · 1 comment

Comments

@scriptamanent
Copy link

Hello everybody, we start to use SirTrevor in a new project instead of CKEditor.
I'm creating some custom blocks to add galleries, videos and pictures from our database.
Is possible to call an api inside the Block UI? So we can search for an image, get the image list and choose the image or the element di inset into the editor?

Thank you

@SgtOddball
Copy link
Contributor

So long as you can serve up a list of files from the server, you can create a new custom block to handle this (I've done this myself using a previous project I'd written for CKEditor to serve a gallery up so I could select images so I know it's possible) but it does require some effort on your side since you need to build the custom block (quite easy) with a gallery (I recall using image picker ) and getting it to pull a list of files from your server, if you have an API that serves up a list of images then great use that, if not develop one yourself (after all we don't know what/how your server can provide image wise and we're not going to do all of your work for you).

@raffij raffij closed this as completed Dec 24, 2018
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

3 participants