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

Fix shortcode button with easy mde editor #15741

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

Skrypt
Copy link
Contributor

@Skrypt Skrypt commented Apr 12, 2024

shortcode-button

Fixes #15738

Copy link
Member

@MikeAlhayek MikeAlhayek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Suggestion: maybe it is better to put these 2 files in assets and add a task that would copy them over to the wwwroot file. I am not sure if it is a good idea to add the files directly to the wwwroot.

@Skrypt
Copy link
Contributor Author

Skrypt commented Apr 12, 2024

I will take a look but then we need to fix this in other places where we did the same too. I need to check if the wwwroot folder is added to the assembly or not else it's a none-issue.

@MikeAlhayek
Copy link
Member

Yea it's not an issue which is why I approved it. But typically we leave the wwwroot folder to get populated by gulp. I think our gulpfile has a task to copy files like fonts and others from assets to wwwroot. This way we don't accidentally delete these file and expect them to be regenerated.

@Skrypt
Copy link
Contributor Author

Skrypt commented Apr 12, 2024

Here see the assembly and all that is in the wwwroot folder:

image

@Skrypt
Copy link
Contributor Author

Skrypt commented Apr 12, 2024

Here is the Workflows module as anothe example:

image

@Skrypt
Copy link
Contributor Author

Skrypt commented Apr 12, 2024

Yeah, we copy when we have a /Assets/vendor folder that needs to be used for building assets in that folder. Or we want to archive a specific version of that vendor lib.

Else, we also copy often directly from /node_modules/
So, here, we keep the Assets because we need to build a minified/unminified version of them. Also the Assets folder is never bundled. But if we explicitly want to bundle something as part of the assembly then it should go directly to the wwwroot folder. The Assets folder can still be used for archiving a file but in this case we have Git to keep history of these files so I'm not sure if that makes sense to have another build step just to copy 2 files in that wwwroot folder.

Don't worry I had that same thought about having it in the Assets folder but after thinking I decided to not do it.

@MikeAlhayek MikeAlhayek merged commit de7cd68 into main Apr 12, 2024
5 checks passed
@MikeAlhayek MikeAlhayek deleted the skrypt/15738-sc-button branch April 12, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shortcode icon not aligned properly
2 participants