Comments (5)
- «Плюс» должен быть на одном уровне с редактируемым в данный момент узлом
- При нажатии на TAB открывается панель настройки текущего узла параграфа
- Повторное нажатие на TAB переключает фокус на следующий инструмент в тулбаре по кругу. Также переключаться можно стрелками клавиатуры
- ESCAPE закрывает тулбар
- В один момент времени должен быть виден только один «Плюс», у текущего узла
- Плюс должен поворачиваться на 45 градусов и превращаться в крестик, когда тулбар открыт
from editor.js.
«Плюс» должен быть на одном уровне с редактируемым в данный момент узлом
я так сделал сначала. в таком положении кнопки (при открытии панели) оказываются поверх текста и их не видно. поэтому я опустил "плюс" ниже.
если делать на одном уровне надо будет добавить подложку
from editor.js.
это вопрос дизайна, мы его решим.
from editor.js.
пусть пока будет поверх
from editor.js.
начал делать эту задачу.
просто через css не сделать, тк редактируемый блок не отловить через :focus
решил сделать через js на событиях focus\blur добавлять класс и с ним уже работать в css, но не получается отследить эти события
var _this = this,
selectedNodeClass = "selected";
/** All blur on Window */
window.addEventListener('focus', function (event) {
// check if currently focused in contenteditable element
if ("BODY" == event.target.tagName) return;
event.target.classList.add(selectedNodeClass)
}, false );
но событие никогда не происходит
from editor.js.
Related Issues (20)
- Version 2.25.0 has a bug in the Inline Tool (Only occurs on IOS and MacOS). HOT 3
- Version 2.29+ is not compatible with editorjs-hyperlink
- When setting a block to stretched the toolbar is not stretched as well
- How can I type a question mark into a block? HOT 1
- Implementing Inline Tool Opening on Text Hover in Editor.js HOT 1
- support markdown input? HOT 1
- Chrome error when EditorJs is loaded in an iframe HOT 2
- The best text editor! Good job! But there is a small problem. enableLineBreaks does not remove lines
- CSS `inline-block` in Firefox causes empty hyperlinks
- I18n configuration doesn't seem to work for block tunes
- Scrolls to the top of the page when focused on some select element
- Tunes with wrappers aren't calling didMutated, when changing tune value
- URL is not being treated as a url HOT 2
- Features playground and JSON output
- toc sidebar for navigating through long note
- Empty output if the content is only a single emoji
- keyboard backspace does not work with editor js list. the content gets removed but the numbers still persist. how to overcome this?
- Svelte 5 - 'Element is not defined' HOT 1
- Extend inline tools
- Extend inline tools
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.js.