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

Rich text support. #340

Open
michaelthatsit opened this issue Jan 31, 2024 · 4 comments
Open

Rich text support. #340

michaelthatsit opened this issue Jan 31, 2024 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@michaelthatsit
Copy link
Member

This is a catch all for text. We need:

  • nested text (i.e. <mr-text> parent <mr-text> child </mr-text><mr-text>)
  • nested styling (i.e. <mr-text> parent <mr-text style="color: blue"> child </mr-text><mr-text>)
  • advanced styling (i.e. video textures, variable fonts, essentially support for all typography related CSS properties)
  • ?? @lobau looking to you for more details.
@michaelthatsit michaelthatsit added enhancement New feature or request help wanted Extra attention is needed labels Jan 31, 2024
@michaelthatsit michaelthatsit pinned this issue Jan 31, 2024
@adnanwahab
Copy link
Contributor

adnanwahab commented Feb 1, 2024

#314 These seem to be related

@michaelthatsit
Copy link
Member Author

Yeah there are a couple that relate to this. I'll see if I can dig them up

@lobau
Copy link
Contributor

lobau commented Feb 1, 2024

As input, I would say that I think we should support the basic formating tags like <em>, <strong>, <i>, <b>, etc.
As if you want to bold a word, you really don't want to have to go create a CSS class for this and do something like

<mr-text>This is a <mr-text class="bold">bold</mr-text> word.</mr-text>

I would rather do this:

<mr-text>This is a <b>bold</b> word.</mr-text>

@michaelthatsit
Copy link
Member Author

Yeah this is valid. Ideally we could replace mr-text with any standard HTML tags within an mr-panel or mr-div

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

3 participants