• Resolved alienfactory

    (@alienfactory)


    Hi i am getting a “Error loading block: the response is a not valid JSON response”
    in the editor when generating a preview of the block
    to be far i am using a the textarea and putting html code in it.

    I am not even using those fields in the preview state. all i realy need
    for the preview is the image is there any way to bypass this error

Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Closing as there’s no immediate action, but will keep in mind.

    Thread Starter alienfactory

    (@alienfactory)

    i would like to purpose another field type of “html code”

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    OK, would it be different from the Textarea field?

    Thread Starter alienfactory

    (@alienfactory)

    wordpress has a custom html block i would think you could do the same thing

    here is what the code looks like in the database for wordpress html bock

    
    <!-- wp:html -->
    <div>Test 1</div>
    <div>Test 2</div>
    <div>Test 3</div>
    <div>Test 4</div><div>Test 5</div><div>custon field</div>
    <!-- /wp:html -->
    

    vs
    block labs textarea code looks like
    <!– wp:block-lab/homepage {“category-one”:”\u003cdiv\u003eTest 1\u003c/div\u003e\n\u003cdiv\u003eTest 2\u003c/div\u003e\n\u003cdiv\u003eTest 3\u003c/div\u003e\n\u003cdiv\u003eTest 4\u003c/div\u003e\u003cdiv\u003eTest 5\u003c/div\u003e”} /–>

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    OK, thanks. I’ll keep that in mind.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘text area getting error in admin page when using custom preview’ is closed to new replies.