Skip to content

Block breaks when highlighting text across multiple blocks #11

@claytoncollie

Description

@claytoncollie

Hi. I submitted this support thread and also thought it could go here. I am running into a problem with your plugin. When this plugin is activated, and you have a post with multiple paragraphs, then do a simple text highlight across multiple blocks, the first block where you started your selection breaks. You need to refresh the page without a save to get them working again. In my console there are some deprecation warnings and also an error by react-dom.


wp.components.IconButton is deprecated. Please use wp.components.Button instead.c @ 
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2 

wp.data.select( 'core/editor' ).getBlocks` is deprecated. 
Please use `wp.data.select( 'core/block-editor' ).getBlocks` instead.c @ 
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2 

Using custom components as toolbar controls is deprecated. 
Please use ToolbarItem or ToolbarButton components instead. See: https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols c @ 
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2 

Using Toolbar without label prop is deprecated. Please use ToolbarGroup component instead. See: https://developer.wordpress.org/block-editor/components/toolbar/ c @ 
deprecated.min.js?ver=be1d4376501c21d85ba98dd28ca2d7ea:2

react-dom.min.js?ver=16.13.1:125 TypeError: Cannot read property 'name' of null
    at script.js?ver=d253bec9f726baa0adf9f8a3da958145:1
    at we (react-dom.min.js?ver=16.13.1:84)
    at He (react-dom.min.js?ver=16.13.1:97)
    at zj (react-dom.min.js?ver=16.13.1:228)
    at Th (react-dom.min.js?ver=16.13.1:152)
    at tj (react-dom.min.js?ver=16.13.1:152)
    at Te (react-dom.min.js?ver=16.13.1:146)
    at react-dom.min.js?ver=16.13.1:61
    at unstable_runWithPriority (react.min.js?ver=16.13.1:25)
    at Da (react-dom.min.js?ver=16.13.1:60)
Me @ react-dom.min.js?ver=16.13.1:125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions