Skip to content

setHTML Table Tag #3038

@mjdeslongchamps

Description

@mjdeslongchamps

My previous issue was closed. It was here: #3036

I applied the plugin but I still cannot create a table via setHTML. Here is the code I am using.

$url = $EtherPadURL."api/1/setHTML";
                // Create map with request parameters
                $params = array ('apikey' => $EtherPadAPI, 'padID' => $padId,'html'=>$SheetGrid);
                $query = http_build_query ($params);
                $contextData = array (
                    'method' => 'POST',
                    'header' => "Connection: close\r\n".
                        "Content-Length: ".strlen($query)."\r\n",
                    'content'=> $query );
                $context = stream_context_create (array ( 'http' => $contextData ));
                $result =  file_get_contents (
                    $url,  // page url
                    false,
                    $context);

When viewing the pad you can see all the text that would have been in the table. But the table structure has been stripped out.

Here is the link to the pad.

http://104.238.110.63:9001/p/356a192b7913b04c54574d18c28d46e6395428ab

So you can see what is happening.

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