Title: Insert into editor &#8211; deprecated js
Last modified: July 19, 2024

---

# Insert into editor – deprecated js

 *  [vreemt](https://wordpress.org/support/users/vreemt/)
 * (@vreemt)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/insert-into-editor-deprecated-js/)
 * Hi, first off – thanks for an awesome plugin! It’s a breeze to work with, and
   code-wise nicely structured and easy to debug/step through.
 * I’ve patched 1.20 on the WordPress multisite this is being used on, and just 
   re-applied the same patch to 1.21. Is there any chance this can get included 
   in the codebase?
 *     ```wp-block-code
       // file ./wp-content/plugins/mammoth-docx-converter/mammoth-editor.js// Lines 185 to 187  // SK core/editor removed in 6.2, use core/block-editor instead  var block = wp.blocks.createBlock("core/freeform", {content: text});  wp.data.dispatch("core/block-editor").insertBlocks(block); 
       ```
   
 * Thanks!
 * Sandra.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * (@michaelwilliamson)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/insert-into-editor-deprecated-js/#post-17901431)
 * I can’t check against an actual WordPress installation right now, but I can’t
   seem to find any reference in the WordPress docs for `core/editor` being removed
   or deprecated. For instance,
    - [https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-editor/):`
      insertBlocks` is still referenced, and not mentioned as deprecated
    - [https://developer.wordpress.org/block-editor/contributors/code/deprecations/](https://developer.wordpress.org/block-editor/contributors/code/deprecations/):`
      core/editor` is not mentioned in the list of deprecations (at least, that 
      I could see)
 * I only had time to do a very quick search, so it’s entirely possible I’ve missed
   something. Do you have a reference for the deprecation?

Viewing 1 replies (of 1 total)

The topic ‘Insert into editor – deprecated js’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mammoth-docx-converter.svg)
 * [Mammoth .docx converter](https://wordpress.org/plugins/mammoth-docx-converter/)
 * [Support Threads](https://wordpress.org/support/plugin/mammoth-docx-converter/)
 * [Active Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mammoth-docx-converter/reviews/)

## Tags

 * [deprecation](https://wordpress.org/support/topic-tag/deprecation/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/insert-into-editor-deprecated-js/#post-17901431)
 * Status: not resolved