• Hello,

    I really appreciate your plugin.

    However, I have a bug in non-admin mode.

    Here is the default code before the update:

    
    <!-- wp:lazyblock/button {"title_url":"Test1","url":"https:\/\/","color":"btn--reverse","blockId":"1hjAMT","blockUniqueClass":"lazyblock-button-1hjAMT"} /-->
    

    When I publish in non-administrator mode, the code is updated as follows (see revisions):

    
    <!-- wp:lazyblock/button {"title_url":"Test1","url":"https://","color":"btn\u002d\u002dreverse","blockId":"1hjAMT","blockUniqueClass":"lazyblock-button-1hjAMT"} /-->
    

    towards

    
    <!-- wp:lazyblock/button {"title_url":"Test1","url":"https:\/\/","color":"btn-reverse","blockId":"1hjAMT","blockUniqueClass":"lazyblock-button-1hjAMT"} /-->
    

    But, if I am an admin, the code is updated like this :

    
    <!-- wp:lazyblock/button {"title_url":"Test1","url":"https://","color":"btn\u002d\u002dreverse","blockId":"1hjAMT","blockUniqueClass":"lazyblock-button-1hjAMT"} /-->
    

    towards

    
    <!-- wp:lazyblock/button {"title_url":"Test1","url":"https:\/\/","color":"btn--reverse","blockId":"1hjAMT","blockUniqueClass":"lazyblock-button-1hjAMT"} /-->
    

    It works perfectly in this case!

    Look at the problem with btn--reverse.
    In non-admin mode, a filter is added to replace this by btn-reverse

    Do you have an idea to solve it?

    Thank you very much,

    Best regards

    • This topic was modified 5 years, 1 month ago by gmesnard.
Viewing 1 replies (of 1 total)
  • Plugin Author nK

    (@nko)

    Hi.

    I can’t repeat the problem. Could you give some more info, what type of controls have you added?

    I have tested with these controls (screenshot clickable):

    test custom button class

    Rendered on the page (screenshot clickable):

    test custom button class

    I see such escaping only in Code Editor mode of the Gutenberg, but for all users (Administrator and Editor the same).

    Regards, nK.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug filter in non-admin mode’ is closed to new replies.