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

RichTextEdit Node #8764

Closed
cyb3rkun opened this issue Jan 1, 2024 · 3 comments
Closed

RichTextEdit Node #8764

cyb3rkun opened this issue Jan 1, 2024 · 3 comments

Comments

@cyb3rkun
Copy link

cyb3rkun commented Jan 1, 2024

Describe the project you are working on

I've made a very simplistic and minimalistic text editor. though I would like to add more features like formatting text and adding images to the rtf file.

Describe the problem or limitation you are having in your project

there is no node that allows the end user to edit RichText with formatting and and other more advanced features

Describe the feature / enhancement and how it helps to overcome the problem or limitation

this would add great potential for godot to be used as a stand alone app development environment.
which I honostly think a lot of people including myself are using it for.

Godot has great UI design elements and nodes. and is very simplistic to use. therefore I believe it's honestly one of the simplest ways for beginners, who don't know much about programming, to be able to make an application quite quickly and speedily.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I'll use diagram since I'm not to sure about how the code would actually look.

just like TextEdit/CodeEdit: GetUserInput> then I assume you would parse BBCode > Display Output

this is much simplified but I think it's the basic Idea. otherwise you could add ui for formatting text like increasing font size, changing text color, adding image. although those are not strictly necessary to be part of the built in RichTextEdit node as the programmer could manually implement those features. Which would probably be better on a per use-case basis

If this enhancement will not be used often, can it be worked around with a few lines of script?

I believe it could but It would end up being more han a few. it would also be inefficient and unnecessarily time consuming to do so. not to mention it would be completely Impractical.

you'd have to use textEdit overlayed on a RichTextLabel. then everytime the user inputs text, copy that text from the TextEdit to the RichTextLaybel. then delete the text from the TextEdit node.

then you'd have to make sure that the text in the RTL and the TE is perfectly alligned so that there are no visual bugs.

at the end of the day it's completely impractical

Is there a reason why this should be core and not an add-on in the asset library?

I believe this could be useful in many use-cases when using Godot for building applications. which Honestly it has no right being, as good at as it is. Being a game engine

@Calinou
Copy link
Member

Calinou commented Jan 1, 2024

Thanks for the proposal! Consolidating in #1781.

@cyb3rkun
Copy link
Author

cyb3rkun commented Jan 6, 2024

yeah #1781 doesn't include pasting images in the file like a rich text editor would. I don't think it's really the same thing. #1781 just wants more features in the textEdit. I want a RichTextEditor that also allows to show images like RichTextLabel or Microsoft Word would allow user to add image to the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants