Support

Account

Home Forums Gutenberg Big problem with texteditor

Helping

Big problem with texteditor

  • Hello,

    When saving my custom gutenberg block content, with a full texteditor

    The blocks content get’s encoded with characters like u003c

    <!-- wp:acf/testimonialtest {"id":"block_5c824a2777270","data":{"field_5c824a1398ca3":"\u003cp\u003edit is een test huge as problem?\u003c/p\u003e\r\n\u003cp\u003edwdwqwdwd\u003c/p\u003e\r\n\u003cp\u003edwqdwpdwd\u003c/p\u003e\r\n\u003cp\u003eSUper dit\u003c/p\u003e"},"name":"acf/testimonialtest","align":"","mode":"preview"} /--

    When I use other plugins..like duplicating pages or translations
    the block content shows all of the encoded characters

    Like

    u003cpu003edit is een test huge problemu003c/pu003ernu003cpu003edwdwqwdwdu003c/pu003ernu003cpu003edwqdwpdwdu003c/pu003ernu003cpu003eSUper ditu003c/pu003e

    I use InnoDB with utf8mb4_unicode_ci
    No other plugins are used, except any of those duplicate content plugins, or translations

    Like
    https://wordpress.org/plugins/wp-multilang/

    or
    https://wordpress.org/plugins/duplicate-page/

    This happens one a clean install with no custom themes

  • I openened a support ticket and the suggestion of Elliot is :
    Use wp_slash before inserting data..
    When duplicating a page

    wp_insert_post( wp_slash($my_post) );

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Big problem with texteditor’ is closed to new replies.