Skip to content
Snippets Groups Projects
user avatar
sam edelsten authored
* internal placeholder plugin

* fix panic on placeholder editor input

* remove autofocus in placeholder example

* make `Placeholder.active` private

* remove placeholder on input

* fix multi-byte char in placeholder

* show placeholder on empty editor

* add guards to placeholder add fns

* fix placeholder displaying incorrectly on input

* fix flash when backspacing empty placeholder

also properly fix the first-char display error

* hacky fix for delete key breaking placeholder

* fix newline issues in placeholder

* fix clippy

* update changelog, bump version

---------

Co-authored-by: default avatarStaffEngineer <111751109+StaffEngineer@users.noreply.github.com>
Co-authored-by: default avatarStaffEngineer <velo.app1@gmail.com>
aa836324

bevy_cosmic_edit

This bevy plugin provides multiline text editing for bevy apps, thanks to cosmic_text crate!

Emoji, ligatures, and other fancy stuff is supported!

bevy_cosmic_edit

Usage

⚠️ Warning: This plugin is currently in early development, and its API is subject to change.

Explore examples folder for basic usage.

Native:

cargo r --example font_per_widget

Wasm:

cargo install wasm-server-runner
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo r --target wasm32-unknown-unknown --example basic_ui

Compatibility

bevy bevy_cosmic_edit
0.13.0 0.16 - latest
0.12.* 0.15
0.11.* 0.8 - 0.14

License

MIT or Apache-2.0