Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

width property works with all types, or just specific ones ? #277

Closed
douglasmatheus opened this issue Sep 4, 2023 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@douglasmatheus
Copy link
Contributor

version

0.4.97

Link to minimal reproduction

No response

Steps to reproduce

I'm setting the data like this:

editor.command.executeSetValue({main: [
	{
      "value": "Prod",
      "font": "Arial",
      "size": 18,
      "bold": true,
      "width": 200
    },
    {
      "value": " sad ",
      "font": "Arial",
      "size": 18,
      "bold": true,
      "width": 400,
      "groupIds": [
        "1"
      ]
    },
    {
      "value": "sadf",
      "font": "Arial",
      "size": 18,
      "bold": true
    }
]})

What is expected?

Define the width for the element, and it will be applied correctly.

What is actually happening?

Trying to set a width for certain elements, I noticed that the defined width is not applied. Is there any correct way to work, or what?

System Info

No response

Any additional comments?

No response

@Hufe921
Copy link
Owner

Hufe921 commented Sep 5, 2023

Currently, only image elements support the width attribute. Consider adding text width configuration

@Hufe921 Hufe921 added the enhancement New feature or request label Sep 5, 2023
@douglasmatheus
Copy link
Contributor Author

douglasmatheus commented Sep 5, 2023

I understand, thanks for clarifying. What would the text width configuration look like?

Hufe921 added a commit that referenced this issue Sep 9, 2023
@Hufe921
Copy link
Owner

Hufe921 commented Sep 9, 2023

{
 value: 'ABC',
 width: 50
}

image

@Hufe921 Hufe921 closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants