-
Notifications
You must be signed in to change notification settings - Fork 571
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
oembed bug when used on the options-page #542
Comments
Is it |
You're right, it does not work after saving. We'll need to look into this. |
I've done it already :) It's fine but doesn't display preview after pasting URL (with Ajax) only after saving. The Ajax call (probably) doesn't hit the correct CMB2 method. |
Thanks @jmarceli , It's worked for me, |
Hello CMB2 users and dev! new user here. I have encountered a problem that seem to be related, maybe not worth opening a new bug for now so I will comment here. I am evaluating CMB2 as a form solution to be used outside of the dashboard and support a post / edit worflow. I have assigned a default value while calling add_group_fieldand then object is not instanciated completely (I dont see the visual, but it's get updated after a cut and paste).
As a temporary workaround, I have patched init with something like this:
And then commented out this code (assume that the object is in focus (true when updating after a url paste, but not in this case), I guess there could be a extra parameter to differentiate the use case.
The visual refresh (cm.maybeOembed in javascript file) seem to be binded on focusout, keyup and paste only. |
Oembed field doesn't display preview image when it is used to create
options-page
(even after saving). Is there any workaround for that, or this is unknown bug?The text was updated successfully, but these errors were encountered: