Commit graph

617 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
Peter Savchenko 903093b4f3
Text tool refactored (#277)
Now it returns strict data format.
2018-07-14 15:15:49 +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 73f5de3191
Merge pull request #273 from codex-team/fix-css
background -> background-color
2018-07-11 21:54:05 +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 69b70cc90c
Merge pull request #272 from codex-team/umd
umd as a library target
2018-07-11 21:11:32 +03:00
Taly 1bbb1368ec
umd as a library target 2018-07-11 20:53:41 +03:00
Taly a5c682a7cc
Merge pull request #271 from codex-team/marker
Term inline-tool
2018-07-11 16:17:28 +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 8112e48c7b
remove space 2018-07-11 15:05:11 +03:00
Taly 4f46afc296
add line brakes 2018-07-11 14:45:08 +03:00
Taly 0c918b5a08
add text block to example 2018-07-11 14:41:09 +03:00
Peter Savchenko f1febf7ae4
descrease margin 2018-07-11 14:40:00 +03:00
Peter Savchenko f898492844
improve code 2018-07-11 14:27:18 +03:00
Taly 2428849b79
add comments 2018-07-11 13:20:31 +03:00
Taly 319cabbc98
market -> term 2018-07-10 14:43:05 +03:00
Taly e17ccbf21c
update styles 2018-07-10 13:49:54 +03:00
Taly a95e236ee1
removing wrapper 2018-07-10 11:45:07 +03:00
Taly 97f04e6152
add todo 2018-07-09 13:06:29 +03:00
Taly ff745760ca
bundles 2018-07-09 12:45:13 +03:00
Taly 773ef463a8
save marker 2018-07-09 12:45:05 +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 f72626c4ca
Merge pull request #270 from codex-team/italic-tool
Italic inline tool
2018-07-05 18:38:11 +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 430277e2d7
Merge pull request #267 from codex-team/delete-tune-improvements
Deletion improvements
2018-06-28 15:19:55 +03:00