• Hi.
    Somebody, please, give me advice.
    I am preparing my plugin for new WP 5.0.
    My Task is make widget-block in Gutenberg
    1. User can add widget to Editor
    2. Chooses and paste custom shortcode

    I created a block with two elements: screenshot: https://joxi.ru/eAOlEBksxJkROr
    – button{Add shortcode}
    – RichText {field where will be pasted chosed shortcode by user}

    When the user click button{Add shortcode} – it is opened new popup window with set of settings that lets user to make choose of shortcode he wants.
    Screenshot: https://joxi.ru/nAyBpk7SYZwBpr

    When the user click the button{Add shortcode} in popup window – it is closed and choosed shortcode is pasting to the RichText (field).
    Screenshot: https://joxi.ru/KAgk5eQS4oKygA

    The problem is when I save the post and refresh window my shortcode is not saved. Saved only my block and it is empty.
    The RichText does not see new content when I am pasted it using jQuery.
    How to save my block with new content after I past shortcode using jQuery?
    Thanks a lot for the answer.

  • The topic ‘How to make visible pasted content for RichText using jQuery().text()’ is closed to new replies.