Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
how can i get the choose file and converted urls on click save button of image upload dialog modal in TINYMCE
  <Editor
    initialValue=""
    value={value}
    onInit={handleInit}
    onEditorChange={handleUpdate}
    onBeforeAddUndo={handleBeforeAddUndo}
    init={{
        selector: "textarea#file-picker",
        file_browser_callback_types: "image",
        file_picker_validator_handler: filePickerValidationCallback,
        images_dataimg_filter: function (img) {
        return !img.hasAttribute("internal-blob"); // blocks the upload of <img> elements with the attribute "internal-blob".
        },
        file_picker_callback: filePickerCallback,
        file_browser_callback: function (field_name, url, type, win) {
        console.log("file_browser_callback", field_name, url);
        },
        automatic_uploads: true,
        pagebreak_separator: `<div class="page-break" style="page-break-after:always;"><span style="display:none;">&nbsp;</span></div><p>&nbsp;</p>`,
        plugins: [
        "imagetools lists link image paste wordcount pagebreak image code fullscreen",
        ],
        draggable_modal: true,
        toolbar:
        "fullscreen | code image pagebreak undo redo | formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent",
    }}
    />;

the above code was my configuration for editor and image upload. i am getting data while input onchange but i need to get the callback and image data on save button event.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!