question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

table_default_attributes not working as expected?

See original GitHub issue

Package.json

"@tinymce/tinymce-react": "^2.5.0",

Can someone provide an example of how to use the table_default_attributes object in init of TinyMCE-react component?

I have tried something like:

<TinyMCE
    init={{
        table_default_attributes: {
            border: "5",
         }
     }}
 />

But border thickness does not change. Any ideas how to get this to work?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonFccommented, Aug 14, 2019

No worries! If you’re using the paste plugin I think using paste_postprocess might work for you. Perhaps something like this

1reaction
SimonFccommented, Aug 14, 2019

It works alright for me, CodeSandbox. Can you see what’s different?

  1. Insert -> Table
  2. The inserted table will have a border attribute set to 5
Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute table field default value not transfering to new edited ...
Using ESRI ArcMap 10.0, in a versioned environment, we are in a geo-database and have a feature class with a default value populated...
Read more >
The DBMS attribute contains a default value that does not set
If a database management system (DBMS) attribute contains a default value it does not set because the geodatabase sets the attribute to NULL...
Read more >
Block attributes do not display as expected in AutoCAD
Edit the attribute in the Block to have a Default value. Right-click the Block and choose Block Editor. In Block Edit mode, double-click...
Read more >
How to set the default value of an attribute on a Laravel model
You can set Default attribute in Model also> protected $attributes = [ 'status' => self::STATUS_UNCONFIRMED, 'role_id' => self::ROLE_PUBLISHER, ];.
Read more >
Dynamic blocks: default values for attributes aren't converted ...
When an attribute isn't changed, the value will not be written into the serialized html comment, which in fact, makes it unaccessible for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found