Commit graph

216 commits

Author SHA1 Message Date
gohabereg
8e80021f75 Initial 2018-07-20 23:03:37 +03:00
Peter Savchenko
f45521df65
Term: new icon, new style. + margin between settings buttons (#316)
Resolves #309
2018-07-19 17:56:52 +03:00
Taly
835e698e23
makeSettings -> renderSettings (#315) 2018-07-19 17:50:30 +03:00
Murod Khaydarov
f2ef201a52
Close toolbar after block is removed (#314) 2018-07-19 17:38:09 +03:00
Taly
7a67d38022
Add placeholder to contentEditable elements (#306)
* add placeholder to contentEditable elements

* store selection color in a variable

* add placeholder to header block

* Add placeholder to contenteditable only if attribute data-placeholder exists

* remove tool config
2018-07-19 17:25:16 +03:00
Murod Khaydarov
bc3f193391
Insert new Block when enter pressed on editor area (#307)
* insert new block when enter pressed on editor zone

* extra conditions. Enter must be handled on editors area

* move at editor condition to the Selection method

* closes can return null

* fixing editor area

* do not create new block

* clean example

* updates due to the requested changes
2018-07-19 17:17:17 +03:00
Murod Khaydarov
4b1d9335b2
Set caret at the end if clicked outsite the block (#305)
* Set caret at last block or create new block at end

* update comment

* fix comments
2018-07-18 20:23:26 +03:00
Taly
29d2bae8ec
update toolbar design (#301) 2018-07-18 19:39:14 +03:00
Taly
dc7afd186d
При перемещении по стрелочкам убирать выделение блока (#296)
* При перемещении по стрелочкам убирать выделение блока

* Add comments

* update comments

* update comment
2018-07-18 18:05:25 +03:00
Taly
cbb4746cc9
update editor interface (#293) 2018-07-17 22:09:59 +03:00
Taly
3398383644
Editor Instance config Interface (#285)
* create interface for editor config

* use IEditorConfig

* create some interfaces

* add comments

* editor interface

* updates
2018-07-17 21:33:46 +03:00
Taly
f951ceddf6
hide toolbar and selection on typing (#289)
closes #288
2018-07-17 17:14:56 +03:00
Murod Khaydarov
8696b9cab5
Merging blocks: Restore caret position 🤟🤟💪 (#286)
* Merging blocks: Restore caret position 🤟🤟💪

* requested changes

* update removing shadow caret
2018-07-16 22:57:11 +03:00
Murod Khaydarov
ea64562269
Fix merge function and rename Block's wrapper (#284)
* Fix merge function and rename wrapper

* update

* renew condition

* update

* upd
2018-07-16 20:22:44 +03:00
Murod Khaydarov
9c961bd0bd
"MoveDown" tune (#283)
* move down initial

Swap current block with next block and scroll window screen

* check if block is last

added new method to the blocks API that returns blocks count

* fix comments

* animate tune

* add animation when tune is disabled

* requested changes

* remove unused css
2018-07-16 18:59:39 +03:00
Taly
3d03461dc0
Header plugin (#281)
* header initial

* fix styles

* eslint fix

* add appendCallback

* add comments

* update styles

* add svgs

* highlight settings buttons

* do not show text plugin in the toolbar

* remove svg

* Fixing caret behaviour. (#282)

Plugins can change their state so that affect on Block's pluginsContent property which is in memory.

* remove useless code

* fix merge
2018-07-16 18:51:41 +03:00
George Berezhnoy
1853cfa78a
Eslint --fix for project files (#280) 2018-07-15 16:04:59 +03:00
Murod Khaydarov
640e44b091 Move-up tune (#268)
Co-authored-by: khaydarov <murod.haydarov@gmail.com>

* Move up tune initial
* move up tune initial behaviour
* moving up formula, docs and code cleaned
* do not close the toolbar if moving block up
* move nagivate methods to Caret Module
* navigations returns boolean if caret is set
* code improved
* update comments
* disable tune when block index is zero
* provide API with listener module methods
* caret improvements
* add to docs
* update docs and blocks api methods
* docs changes
* small improvements
* swap instead of moves
* update
* fix swap
* remove unused method
* remove useless return value from setToBlock
* improve caret isAtEnd and isAtStart
* improve swap, fix listeners api@off method
2018-07-14 19:52:03 +03:00
Peter Savchenko
832f0ca0dd
Module Keyboard rewrited to BlockEvents (#279)
* Module Keydown rewrited to BlockEvents

* move keyup and mouseup to the Block Events
2018-07-14 17:40:48 +03:00
Taly
72c2240b4b
do not add block if tool is not exist (#278)
* do not add block if tool is not exist

* show warning

* add todo

* update warning message

* put message into variable

* Revert "put message into variable"

This reverts commit c1f63894d7.

* update comment
2018-07-14 16:34:45 +03:00
Taly
5222fe31a3
rename plugin name field in data object (#276) 2018-07-14 14:41:30 +03:00
Taly
782a6005a5
Clear API (#274)
* blockManager.clear

* upd

* api bez ebanoj knopki api

* fix assignment

* insert empty block with clear method

* clear and render methods improved

* open saver.save()

* add comments

* update comments

* fix data returned by editor
2018-07-13 18:51:46 +03:00
Taly
e21c645ad5
background -> background-color
if `background` has only `color` then use `background-color`
2018-07-11 21:37:11 +03:00
Taly
1bbb1368ec
umd as a library target 2018-07-11 20:53:41 +03:00
Peter Savchenko
4b61ea586a
fix bug 2018-07-11 16:12:21 +03:00
Peter Savchenko
d7d59bf412
fix bugs 2018-07-11 15:42:14 +03:00
Taly
4f46afc296
add line brakes 2018-07-11 14:45:08 +03:00
Peter Savchenko
f898492844
improve code 2018-07-11 14:27:18 +03:00
Taly
a95e236ee1
removing wrapper 2018-07-10 11:45:07 +03:00
Taly
8ef971a7a3
fix cs 2018-07-09 12:44:43 +03:00
Taly
b3723d00b6
add interface selection 2018-07-09 12:44:12 +03:00
Taly
01973978b6
upgrade findParentTag function 2018-07-09 12:43:37 +03:00
Taly
4ab74f300b
update icon size 2018-07-05 17:50:17 +03:00
Taly
5ba9b80ad1
Italic inline tool 2018-07-05 17:46:02 +03:00
Peter Savchenko
a8c5fea1e3
Allow to connect external Inline Tools (#269)
* Allow to connect external Inline Tools

* unhardcode tool's api settings
2018-07-05 17:14:26 +03:00
Murod Khaydarov
65397b758c
upd comments 2018-06-28 13:50:42 +03:00
Murod Khaydarov
c4f49d0520
upd 2018-06-28 13:10:33 +03:00
Murod Khaydarov
088a537397
Delete Tune improvements 2018-06-28 13:00:23 +03:00
Murod Khaydarov
d0126e04e3
Revert "Merge branch 'delete-tune-fixes' into rewriting-version2.0"
This reverts commit 779bf5db9e, reversing
changes made to 972eb87d89.
2018-06-28 12:31:47 +03:00
Murod Khaydarov
779bf5db9e
Merge branch 'delete-tune-fixes' into rewriting-version2.0 2018-06-28 12:26:58 +03:00
Peter Savchenko
972eb87d89
UI: Block Settings, show Plus after Enter keydown (#265)
* Some UI improvements: icons settigns

* Show plus button after split

* decrease autoprefixer

* rename variable
2018-06-28 12:20:41 +03:00
Murod Khaydarov
9c41fc402b
Delete tune fixes 2018-06-27 16:54:09 +03:00
Peter Savchenko
c6656770e5
Link Inline Tool (#264)
* Link Inline Tool

* api injected

* text improved

* Clear input on the reselection

* little improvements
2018-06-25 13:46:53 +03:00
Murod Khaydarov
ad78d12259
small improvements 2018-06-24 05:06:49 +03:00
Murod Khaydarov
242b9b5820
deletion trigger improvements 2018-06-24 04:29:48 +03:00
Murod Khaydarov
4efaf0d561
Event subscription&unsubscription 2018-06-24 03:42:27 +03:00
Murod Khaydarov
1b5260e7d2
Delete block with confirmation 2018-06-24 03:07:40 +03:00
Murod Khaydarov
295e4256c8
Deleting block: Initial 2018-06-24 02:33:40 +03:00
Peter Savchenko
110603a590
API scopes improved 2018-06-23 23:59:54 +03:00
Murod Khaydarov
9d59e9c188
doc fixes and interface improvements 2018-06-23 23:22:49 +03:00