Soreine
|
b64681aae0
|
Fix rule INLINE_NO_EMPTY to act on parent block
|
2016-10-24 17:26:19 +02:00 |
|
Soreine
|
25909b7867
|
Remove unreachable code
|
2016-10-24 16:22:12 +02:00 |
|
Samy Pessé
|
b122a2a464
|
Use ByKey instead of NodeOperation in wrapBlockAtRange
|
2016-10-24 12:56:29 +02:00 |
|
Samy Pesse
|
c7f0c655ab
|
Add normalize nodes to transforms bykey
|
2016-10-24 09:33:58 +02:00 |
|
Samy Pesse
|
1377e28bcb
|
Don't normalize when applying transforms
|
2016-10-24 00:22:21 +02:00 |
|
Samy Pesse
|
4f1fc842a8
|
Fix inline void inside an inline node
|
2016-10-23 23:53:01 +02:00 |
|
Samy Pesse
|
4d0f067250
|
Add failing test for schema rule
|
2016-10-23 23:08:01 +02:00 |
|
Samy Pesse
|
1689e6408a
|
Fix stupid error in recursive normalize calls
|
2016-10-23 01:12:44 +02:00 |
|
Samy Pesse
|
d2850870e3
|
Don't call onBeforeChange when emitting new state
|
2016-10-22 20:58:02 +02:00 |
|
Samy Pesse
|
112b7c8406
|
Don't normalize document when selection is changing
|
2016-10-22 20:04:54 +02:00 |
|
Samy Pesse
|
f31ac63e97
|
Use normalizNodeByKey instead of normalizeDocument when possible
|
2016-10-22 19:35:59 +02:00 |
|
Samy Pesse
|
7ed21fde63
|
Add more unit tests for normalize of "text around isVoid"
|
2016-10-22 18:13:29 +02:00 |
|
Samy Pesse
|
7d1279ffe9
|
Refactor tests for schema
|
2016-10-22 18:04:31 +02:00 |
|
Samy Pesse
|
f73f63e6b9
|
Normalize children before normalizing a node itself
|
2016-10-22 18:03:49 +02:00 |
|
Samy Pesse
|
798a0a90f8
|
Adapt test for unwrapInline across blocks
|
2016-10-22 01:07:55 +02:00 |
|
Samy Pesse
|
0682f59954
|
Adapt tests for setBlock/setInline with isVoid
|
2016-10-22 01:03:52 +02:00 |
|
Samy Pesse
|
3c7914b354
|
Enforce selection to be correct after final normalization
|
2016-10-22 00:48:55 +02:00 |
|
Samy Pesse
|
1dbc90604d
|
Add utils/warning.js
|
2016-10-22 00:36:42 +02:00 |
|
Samy Pesse
|
8ed3f12aba
|
Remove no longer existant normalize operation
|
2016-10-20 23:48:42 +02:00 |
|
Samy Pesse
|
a0a57f36f9
|
Use node level normalization in transform "removeTextByKey"
|
2016-10-20 00:17:39 +02:00 |
|
Samy Pesse
|
8346bfc72f
|
Normalize selection after normalizing document
|
2016-10-19 22:54:38 +02:00 |
|
Samy Pesse
|
a67f612065
|
Fix normalization to prevent extra empty text nodes
|
2016-10-19 18:44:08 +02:00 |
|
Samy Pesse
|
d9669f73b5
|
Add rule to remove empty extra text nodes
|
2016-10-19 17:43:42 +02:00 |
|
Samy Pesse
|
8402df138e
|
Add rules to prevent empty inline nodes
|
2016-10-19 13:45:14 +02:00 |
|
Samy Pesse
|
4c5ce86333
|
Add schema rule to ensure that inline nodes have a space as content
|
2016-10-19 12:49:06 +02:00 |
|
Samy Pesse
|
0f80230776
|
Remove transform "unwrapInlineByKey" done by another PR
|
2016-10-19 12:01:52 +02:00 |
|
Samy Pesse
|
a51061f094
|
Improve normalize and validation to be recursive
|
2016-10-19 11:52:55 +02:00 |
|
Samy Pesse
|
d2d7122ffc
|
Move normalize logic to src/transforms/normalize.js
|
2016-10-19 00:41:01 +02:00 |
|
Samy Pesse
|
808ae3c1fb
|
Fix rule NO_ADJACENT_TEXT_RULE
|
2016-10-18 22:43:18 +02:00 |
|
Samy Pesse
|
0246c3085b
|
Remove normalization from transform calls
|
2016-10-18 22:00:50 +02:00 |
|
Samy Pesse
|
a49f8e1bfa
|
Fix normalization to join adjacent text nodes
|
2016-10-18 21:50:42 +02:00 |
|
Samy Pesse
|
d4dfdacdc3
|
Merge PR #354
|
2016-10-18 21:40:01 +02:00 |
|
Samy Pesse
|
e591efae98
|
Fix normalize to join text nodes
|
2016-10-18 21:34:19 +02:00 |
|
Tyler Johnson
|
5eda68e4df
|
fix deleteing across inlines for remove-normalize
|
2016-10-18 13:22:02 -06:00 |
|
Samy Pesse
|
bf8504b8bb
|
Add transform.normalizeWith
|
2016-10-18 21:18:17 +02:00 |
|
Samy Pesse
|
8f6a534bc9
|
Change signature of Node.normalize to be recursive
|
2016-10-18 20:40:36 +02:00 |
|
Samy Pesse
|
8164bb8ce2
|
Add rules to prevent adjacent text and min one text
|
2016-10-18 19:31:35 +02:00 |
|
Samy Pesse
|
6f0a31c90f
|
Refactor to move all normalization rules in "plugins/schema.js"
|
2016-10-18 18:47:45 +02:00 |
|
Samy Pesse
|
7091c9489e
|
Merge branch 'pr392' into schema-normalize
|
2016-10-18 18:35:28 +02:00 |
|
Ian Storm Taylor
|
8150df24be
|
Merge branch 'master' into fix-normalize-with-schema
|
2016-10-18 09:02:24 -07:00 |
|
Ian Storm Taylor
|
4242392099
|
updates
|
2016-10-18 09:02:21 -07:00 |
|
Samy Pesse
|
d5357cab44
|
Merge remote-tracking branch 'origin/master'
|
2016-10-18 09:41:07 +02:00 |
|
Samy Pesse
|
f716a9f042
|
Merge remote-tracking branch 'ianstormtaylor/master'
|
2016-10-18 09:41:02 +02:00 |
|
Samy Pessé
|
582603a7e8
|
Fix #385: Re-render when selection state changed for a node (#387)
* Re-render when selection state changed for a node
* Change condition to be an OR (focus or selection changed)
|
2016-10-17 16:33:21 -07:00 |
|
Samy Pesse
|
fc318ec78b
|
Add transform .unwrapInlineByKey with test and documentation
|
2016-10-17 01:14:47 +02:00 |
|
Ian Storm Taylor
|
81bb5ea800
|
Merge branch 'master' into remove-normalize
|
2016-10-14 17:40:20 -07:00 |
|
Ian Storm Taylor
|
8213bb089f
|
remove normalizeDocument transform
|
2016-10-14 17:24:03 -07:00 |
|
Ian Storm Taylor
|
1443968b83
|
handle joining text nodes with insertFragment
|
2016-10-14 17:22:45 -07:00 |
|
Ian Storm Taylor
|
8cf0a05926
|
handle splitting for fragments
|
2016-10-14 16:46:12 -07:00 |
|
Ian Storm Taylor
|
fa5d59c063
|
handle lots of splitting cases
|
2016-10-14 16:40:45 -07:00 |
|