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

Update Rich Text editor to support placeholder attribute #1655

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

IrateGod
Copy link

@IrateGod IrateGod commented Dec 8, 2023

This PR adds the already existing placeholder on the multi-line text form field to the Rich Text editor by configuring the Pell onChange function, the SCSS for the .fui-rich-text-content class, and the appropriate Twig template.

This feature emulates a moderately popular PR on the Pell repository, but rather than configuring Pell with different options, I chose to modify the onChange function to handle the empty HTML.

@engram-design engram-design merged commit 37393d0 into verbb:craft-4 Dec 9, 2023
@engram-design
Copy link
Member

Thanks for this! It's a tiny bit hacky, and I'd rather Pell sort this out themselves, but this is pretty much all we can do. Cheers

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.

None yet

2 participants