-
Notifications
You must be signed in to change notification settings - Fork 3
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
add rich UI to display inserted resources in CKEditor #454
Comments
Feel free to split this into separate issues, for images, documents and video, if it makes sense. |
... also website collections. |
for collections we have this issue as well: #317 |
@pdpinch @Ferdi so there's a slight complication to our plans here which I think is probably worth discussing before we continue. It relates to the comment that @gumaerc made here: #475 (comment) Basically, right now we have built a lot of these features out in a totally configurable way, so that, for instance, the UI doesn't expect that a site always has a 'page' or 'resource' content type. When selecting resources to embed via the UI I added in #475, there is actually configuration under the hood, on the Markdown widget, which tells it to fetch site content records of a given type and to display them for embedding there. The problem we run into is that since this is a configurable feature we can't really assume that these records have particular fields, for instance Anyhow, this was raised on the embed UI pr (#475) because there was a question of whether we want to include some UI which would provide more context to the user about the different resources (aka site content records) that they are seeing in the picker. Adding such a piece of UI, for instance switching on the
Anyhow, I think this is a question about how much the implementation of this resource embed feature should be coupled with out standard course configuration, and how much it should be a more general, configurable feature. Wondering your thoughts on this and what direction we should take. |
Is it possible to go ahead with option 2 and then add the configuration support later?
Can I have my cake and eat it too?
… adding configuration where we state, in the site configuration, what field should be access to enrich the resource display or
writing some UI that assumes a given field is there on the site content type we want to embed (i.e. assuming that file_type is set on these objects). this could be hard-coded, or something which tests for this field's presence and falls back to not displaying anything if not present.
|
Definitely - I think something that tries for the field and then doesn't render anything if it's not present is probably the simplest option, so if that sounds alright to you then that's good by me! |
That’s right. I can’t see a good reason to embed a pdf, or any document resource.
|
ok cool, I'm going to go ahead and close then since we've implemented initial support for video and images already |
The text was updated successfully, but these errors were encountered: