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

can not set toolbar or balloonToolbar will appear fixed above the cursor #17754

Open
Barnette-ao opened this issue Jan 14, 2025 · 3 comments
Open
Labels
domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. domain:ui/ux This issue reports a problem related to UI or UX. package:ui type:improvement This issue reports a possible enhancement of an existing feature.

Comments

@Barnette-ao
Copy link

📝 Provide detailed reproduction steps

I want to set the toolbar or balloonToolbar will appear fixed above the cursor. then I set it as follows:

balloonToolbar: {
	items: ['bold', 'underline', 'fontColor'],
	shouldNotGroupWhenFull: true,
	position: 'above',
	viewportTopOffset: 50
},

toolbar: {
	items: [
		'fontSize',
		'fontColor',
		'|',
		'bold',
		'underline',
		'|',
		'uploadImage',
		'mediaEmbed'
	],
	shouldNotGroupWhenFull: false,
	position: 'above',
	viewportTopOffset: 50
},

✔️ Expected result

I expect that setting the position to above will let the toolbar or balloonToolbar appear fixed above the cursor.

❌ Actual result

If you use the mouse cursor to select content from left to right, the toolbar will appear below the cursor.
If you use the mouse cursor to select content from right to left, the toolbar will appear above the cursor.
If the height of the editor is greater than 50px, the toolbar will appear below the selected content by default.

❓ Possible solution

Forced modification of CSS

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Barnette-ao Barnette-ao added the type:bug This issue reports a buggy (incorrect) behavior. label Jan 14, 2025
@Barnette-ao
Copy link
Author

the possible solution just like #9205 mentioned.

@Witoso
Copy link
Member

Witoso commented Jan 15, 2025

Hey, changing to improvement, as AFAIK the API you showed doesn't exist yet :)

@Witoso Witoso added type:improvement This issue reports a possible enhancement of an existing feature. package:ui domain:ui/ux This issue reports a problem related to UI or UX. domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. and removed type:bug This issue reports a buggy (incorrect) behavior. labels Jan 15, 2025
@Barnette-ao
Copy link
Author

Is there any setting in the free version that can achieve the effect I want? for example, another API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:integration-dx This issue reports a problem with the developer experience when integrating CKEditor into a system. domain:ui/ux This issue reports a problem related to UI or UX. package:ui type:improvement This issue reports a possible enhancement of an existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants