Integrating with WP UserFrontend Forms
-
Congrats on an awesome plugin & Editor.
I’m using wpuserfrontend forms for members to create a post from frontend utilising the default upload image button.
I can get the Editor to trigger on my domain with this following code & correct API Key<input type="file" name="image" /> <script src="https://pixoeditor.com/editor/scripts/bridge.m.js"></script> <script> //create new Pixo instance const pixo = new Pixo.Bridge({ apikey: 'abc123xyz000', }); //the editor will observe the "onchange" event of the file input, //and on save will update it with the new image; then the new image //then the new file is ready to be uploaded - no more actions required! pixo.attachToFileInput(document.querySelector('input[type=file]')); </script>
However, I have tried many different things in this shortcode to trigger the Pixo Editor on that page for creating a post, and to no avail, am I missing something, appreciate any help? Below is just some I have tried.
[pixoeditor fileinput="wpuf-insert-image_35"] or [pixoeditor fileinput="wpuf-featured_image-35-pickfiles"]
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Integrating with WP UserFrontend Forms’ is closed to new replies.