Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Overlapping of code block and editor toolbar #2

Open
Arash1381-y opened this issue Sep 11, 2022 · 8 comments
Open

Overlapping of code block and editor toolbar #2

Arash1381-y opened this issue Sep 11, 2022 · 8 comments

Comments

@Arash1381-y
Copy link

I have tried to use this code block but when i want to use options something like this happens
image

is there any way to fix it?

@yiwanbaimifan
Copy link

.codeflask.codeflask--has-line-numbers:before, .codeflask__lines{
z-index: 0!important;
}

@asevarik
Copy link

it's half working
Screenshot 2023-03-10 at 10 41 47 PM

@calumk
Copy link
Owner

calumk commented Mar 13, 2023

Sorry i dont have time to look into this at this moment - if you find a fix please raise a PR or comment here, and i can try to impliment it

@calumk
Copy link
Owner

calumk commented Mar 13, 2023

looks like adding

 .ce-toolbar{
    z-index: 1000;
  }

resolves this, but its a change to the css of the editorjs not the plugin, so its not a great fix - ill look for a better one

@CKylinMC
Copy link

and also...
image

the language select drop down maybe should have a larger space to show?

@calumk
Copy link
Owner

calumk commented Aug 10, 2023

I agree - the issue is that editorjs doesnt expose any native dropdown tool, it only provides buttons - so this is a extra dependancy in the project.
Ideally editorjs would provide a native dropdown, or i may depreciate it in favour of a non-styled dropdown, that is not as pretty, but more lightweight.

I dont have time to do this at the moment, someone is welcome to PR

@CKylinMC
Copy link

I tried to add two lines of styles to solve the overlapping issue:

.editorjs-codeFlask_Wrapper{
    /* ... */
    z-index: 0;
    position: inherit;
}

image

And due to built-in filtering function works correctly, I flat all languages selects into the menu.

CKylinMC@0fd8d13

image
image

(currently selected state not working properly)

@calumk
Copy link
Owner

calumk commented Jan 11, 2024

Important

This repo will be archived soon. Please upgrade to @calumk/editorjs-codecup

This new repo fixes this (any other issues), and removes dependancy on codeflask, instead using codecup

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

No branches or pull requests

5 participants