Marton Langa
6608a5df39
Remove controlled value state ( #3153 )
2019-11-28 17:21:12 -05:00
Marton Langa
5de91cb4ee
Fix variable name ( #3156 )
2019-11-28 17:20:54 -05:00
Ian Storm Taylor
7f2bbcfef2
fix linter
2019-11-28 12:38:12 -05:00
Matt Mazzola
d457bc52b9
Docs fixes for 0.50.0 ( #3133 )
...
* docs: typos
* docs: markdown inline code formatting
https://meta.stackexchange.com/questions/82718/how-do-i-escape-a-backtick-within-in-line-code-in-markdown
* docs: remove unused value, move comment, add deps to callback
* docs: add deps to renderMark callback
2019-11-28 10:37:35 -05:00
tepythai
15a8e0ee72
Fix typo in XX-migrating.md ( #3136 )
...
In ### Hooks section, I suppose it is "they use React's Context API" rather than "the use React's Content API". Please ignore this if it is not a typo. Thanks.
2019-11-28 10:31:54 -05:00
Charley DAVID
b2c5d57788
Add Slite.com as example of usage ( #3142 )
2019-11-28 10:30:15 -05:00
Ian Storm Taylor
4ff6972096
Next ( #3093 )
...
* remove some key usage from core, refactor Operations.apply
* undeprecate some methods
* convert more key usage to paths
* update deprecations
* convert selection commands to use all paths
* refactor word boundary selection logic
* convert many at-range commands to use paths
* convert wrapBlock and wrapInline to not use keys
* cleanup
* remove chainability from editor
* simplify commands, queries and middleware
* convert deleteAtRange
* remove key usage from schema, deprecate *ByKey methods
* migrate *ByKey tests, remove index from *ByPath signatures
* rename at-current-range tests
* deprecate mode key usage, migrate more tests away from keys
* deprecate range and point methods which rely on keys to work
* refactor insertBlock, without fixing warnings
* add pathRef/pointRef, fix insertBlock/Inline deprecations, work on insertFragment
* refactor insertFragment
* get rich-text example rendering
* fix lint
* refactor query files, fix more tests
* remove unused queries, refactor others
* deprecate splitDescendantsByPath
* merge master
* add typescript, convert slate, slate-hyperscript, slate-plain-serializer
* add Point, Path, Range, Annotation tests
* add Annotation, Change, Element, Fragment, Mark, Range, Selection, Value interfaces tests
* add Operation and Text tests
* add Node tests
* get operations and normalization tests working for slate
* get *AtPath command tests passing
* rename *AtPath command tests
* rename
* get *AtPoint tests working
* rename
* rename
* add value queries tests
* add element, mark and path queries tests
* convert most on-selection tests
* convert on-selection commands
* rename
* get addMarks and delete commands working
* rename
* rename
* rename
* refactor value.positions(), work on delete tests
* progress on delete tests
* more delete work
* finish delete tests
* start converting to at-based commands
* restructure query tests
* restructure operations tests
* more work converting to multi-purpose commands
* lots of progress on converting to at-based commands
* add unwrapNodes
* remove setValue
* more progress
* refactor node commands to use consistent matching logic
* cleanup, get non-fragment commands passing
* remove annotations and isAtomic
* rename surround/pluck to cover/uncover
* add location concept, change at-path to from-path for iterables
* refactor batches
* add location-based queries
* refactor hanging logic
* more location query work
* renaming
* use getMatch more
* add split to wrap/unwrap
* flip levels/ancestors ordering
* switch splitNodes to use levels
* change split to always:false by default
* fix tests
* add more queries tests
* fixing more delete logic
* add more splitNodes tests
* get rest of delete tests passing
* fix location-based logic in some commands
* cleanup
* get previous packages tests passing again
* add slate-history package
* start slate-schema work
* start of react working
* rendering fixes
* get rich and plain text examples working
* get image example working with hooks and dropping
* refactor onDrop to be internal
* inline more event handlers
* refactor lots of event-related logic
* change rendering to use render props
* delete unused stuff
* cleanup dom utils
* remove unused deps
* remove unnecessary packages, add placeholder
* remove slate-react-placeholder package
* remove unused dep
* remove unnecessary tests, fix readonly example
* convert checklists example
* switch to next from webpack
* get link example working
* convert more examples
* preserve keys, memoized leafs/texts, fix node lookup
* fix to always useLayoutEffect for ordering
* fix annotations to be maps, memoize elements
* remove Change interface
* remove String interface
* rename Node.entries to Node.nodes
* remove unnecessary value queries
* default to selection when iterating, cleanup
* remove unused files
* update scroll into view logic
* fix undoing, remove constructor types
* dont sync selection while composing
* add workflows
* remove unused deps
* convert mentions example
* tweaks
* convert remaining examples
* rename h to jsx, update schema
* fix schema tests
* fix slate-schema logic and tests
* really fix slate-schema and forced-layout example
* get start of insertFragment tests working
* remove Fragment interface
* remove debugger
* get all non-skipped tests passing
* cleanup deps
* run prettier
* configure eslint for typescript
* more eslint fixes...
* more passing
* update some docs
* fix examples
* port windows undo hotkey change
* fix deps, add basic firefox support
* add event overriding, update walkthroughs
* add commands, remove classes, cleanup examples
* cleanup rollup config
* update tests
* rename queries tests
* update other tests
* update walkthroughs
* cleanup interface exports
* cleanup, change mark transforms to require location
* undo mark transform change
* more
* fix tests
* fix example
* update walkthroughs
* update docs
* update docs
* remove annotations
* remove value, move selection and children to editor
* add migrating doc
* fix lint
* fix tests
* fix DOM types aliasing
* add next export
* update deps, fix prod build
* fix prod build
* update scripts
* update docs and changelogs
* update workflow and pull request template
2019-11-27 20:54:42 -05:00
Kamil Kamiński
88b7efa975
Change renderNode docs to renderBlock and renderInline ( #3083 )
2019-11-09 17:59:31 -05:00
Stewart Sum
6fc0bc85e6
Update saving-and-loading-html-content.md ( #3064 )
...
Change the name of the first argument of the serialize function from 'object' to 'obj' in the description to match what is used in the code.
2019-11-09 17:56:18 -05:00
Yue
d134f64cd7
Added onMouseUp into available hooks. ( #3047 )
2019-10-06 09:08:25 -04:00
Sebastian Seilund
7f201f139b
Fixed typo in docs: addMarkAt_Ar_ange -> addMarkAt_R_ange ( #3033 )
2019-10-06 09:03:49 -04:00
Tim Saunders
549359d19e
Capitalise references to Mark for consistency ( #3031 )
2019-10-06 09:03:29 -04:00
往日。
03ee011834
Correct the document mentioned by #3029 ( #3035 )
2019-09-30 09:25:59 -07:00
Akumatus
3fa6ff17e1
fix broken core-plugin link in doc and add one item to the products list ( #3017 )
2019-09-21 13:46:21 -04:00
Mitchell Donaldson
58b0f9f1a3
Remove range parameter from getTexts documentation ( #3016 )
2019-09-21 13:45:50 -04:00
Brent Farese
ca73f2a671
Update range.md ( #2996 )
...
It appears that references to point.normalize(document) should be range.normalize(document).
2019-09-08 10:07:24 -07:00
Dragos Bulugean
8d0899fee9
Add Archbee to resources.md ( #2994 )
2019-09-08 10:04:36 -07:00
Sunny Hirai
7a6cd1ea2d
Improve data model docs ( #2992 )
...
* Improve data model docs
* Fix linting
2019-08-30 22:19:57 -07:00
Lionel
1aa1783c9c
Update installing-slate.md ( #2975 )
...
Just noticed a missing word in this doc, thought I'd add a quick fix.
2019-08-21 22:40:18 -04:00
Devin Morgan
9d9d6067e4
Update glossary.md with definition of match
( #2964 )
...
`match` get's used a number of times within the slate/schema.md but it does not appear to be explicitly defined anywhere. This term seems like a great candidate for the Glossary.
2019-08-19 10:20:46 -06:00
John Isaac
09807df24f
Fix typo in marks ( #2929 )
2019-08-08 07:10:26 -05:00
Brent Farese
767812cad3
Update plugins.md ( #2950 )
...
renderMark function signature is missing from the initial description of Hooks.
2019-08-08 07:03:49 -05:00
Zixiang Li
799df414a5
[Doc] Add missing previous
property in rules
( #2957 )
2019-08-08 07:03:01 -05:00
Zixiang Li
7a434ca881
Add missing next property in rules ( #2953 )
2019-08-05 10:01:24 -05:00
Charley DAVID
7377266b43
Fix slate-react plugin documentation ( #2910 )
...
* Re-add removed renderMark
* Fix renderAnnotation & renderDecoration props
2019-07-05 09:28:43 -07:00
Jorge Valdez
a0b2aa3d4f
replaced renderNode and renderMark documentations in slate-react with 0.22.0 changes ( #2898 )
2019-07-03 12:56:54 -07:00
Victor Pontis
cfa693411a
Fix typo on Data Model docs page ( #2849 )
2019-06-07 18:57:36 +01:00
Daniil Khanin
5f26890ff9
Update applying-custom-formatting.md ( #2843 )
2019-06-07 18:56:36 +01:00
Ken Powers
e4c6beaab4
Remove leaves from walkthough docs ( #2831 )
2019-06-07 18:53:33 +01:00
Jon Portella
fbe70a1f28
Fix: prop name ( #2780 )
...
Nodes weren't properly rendering because the Editor was trying to call the function prop renderBlock but instead another called renderNode was passed.
2019-05-20 13:34:30 -07:00
Ralph Feltis
fd8e18b9cf
Fix typo in commands.md ( #2791 )
...
* Adding Guilded to Products list
* Fixing typo
* Fixing typo
2019-05-16 16:25:49 -07:00
Matthew Steedman
f76a00acdc
Replace renderNode with renderBlock ( #2762 )
2019-05-11 18:52:09 -07:00
Dan Schuman
376015df6c
Text documentation update ( #2758 )
...
`text` property is no longer computed. Add `marks` field.
2019-05-10 10:47:58 -07:00
fchenTelus
7cbf15e3cc
insertBlock is missing description ( #2682 )
2019-04-24 17:09:15 -07:00
Bryan Haakman
bb5d6beffa
Make all ops invertible and remove value
from ops ( #2225 )
2019-04-02 06:34:06 -07:00
Dominik Serafin
071424cda0
Use <s> for strikethrough example ( #2676 )
...
`<strike>` is obsolete and discouraged https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike
`<s>` is better alternative https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s
2019-04-02 06:26:05 -07:00
Tom Locke
2380aa094f
Clarify semantics of return from deserialize ( #2665 )
...
This can trip folks up who are using compile-to-JS languages (ClojureScript in my case), where return semantics may be different.
2019-03-26 07:29:41 -07:00
Aaron Greenlee
edbafa6fcb
Glossary Enhancements ( #2663 )
...
* Rephrased to removed idiom and better describe Slate.
* Added links to educate folks about the core DOM concepts
* Renamed headline to `Slate Mirrors the Dom`
* Rephrased immutable js introduction
* Corrected spelling error
* Simplified language introducing how one can change values.
* Simplified statement about collection methods
* Added encouraging language for Immutable JS learning suggestion
* Quoted mozilla links
* Suggestions to improve readability of data-model documentation
* Added serialized example value
* Resolved one prettier complaints
* `yarn run prettier`
* anchor/focus point glossary content
* normalized term identifiers
* added mark
* Added plugin
* Added schema
* `yarn run prettier` and enhancements to collapsed, focus, and value
2019-03-26 07:27:48 -07:00
Ivan Ha
b3107fc142
docs: fix immutablejs doc domain ( #2655 )
2019-03-25 19:23:53 -07:00
Mate Paiva
bd7ee85c9b
Fix missing break in last example ( #2629 )
...
In the last chunk of code, it was missing the `break` (or `return`). So, if used as is, the bold key will toggle the `code` feature as well.
2019-03-06 16:45:08 -05:00
Brendan
646ff2a80f
Fix onCommand docs that referenced query instead of command ( #2625 )
2019-03-06 15:44:41 -06:00
Mate Paiva
e5e1e570b8
Remove return true on key down function ( #2628 )
...
Correct me if I am wrong, but I believe that this `return true` is a no-op. I removed it and everything kept working as usual. And, when I was following the tutorial, that particular line created an interrogation mark in my brain. So, my suggestion is to remove that line to avoid creating entropy for no reason.
2019-03-06 16:44:35 -05:00
Brendan
a3f91e139f
Add @convertkit/slate-lists to plugins page ( #2615 )
2019-02-28 12:08:34 -08:00
Bryan Haakman
8e659dbd28
Small doc fix for isNodeInRange ( #2580 )
2019-02-04 16:29:18 -08:00
Brendan
58709123dd
Add @convertkit/slate-code to docs ( #2568 )
2019-01-30 12:12:05 -08:00
Konrad Lisiczyński
63cbfb3266
Clarify children access in renderEditor in docs ( #2286 )
...
* Clarify children access in renderEditor in docs
* Applied review changes of renderEditor doc update
* Updated renderEditor docs to match Slate 0.43
* Prettified plugins.md
2019-01-29 16:05:03 -08:00
Vritant Bhardwaj
6bf36a35d4
Update link to source ( #2497 )
...
The link to the package directory previously lead to a 404 page.
2019-01-29 16:04:05 -08:00
Nandu
7a6de8725c
Add break in the Switch statement for Custom Formatting Walkthrough ( #2550 )
...
The Custom Formatting Walkthrough does not work as expected. When
Ctrl + B is pressed it applies both Bold and Code styles to the
content. This is because of the case statement running beyond
the Bold case due to the absence of a break keyword.
2019-01-21 18:27:43 -08:00
Tom Moor
43ee38e39d
Update commands.md ( #2551 )
...
Fixed incorrect documentation for `moveToRangeOfNode`
2019-01-21 18:25:09 -08:00
Dundercover
76a88a649a
Add editor.HasCommand
and editor.HasQuery
( #2438 )
...
* Add `editor.hasCommand` method
* Add `editor.hasQuery` method
* Rename directories `hasCommand` and `hasQuery` to kebab case
* Add tests for `editor.hasCommand` of React component
* Add tests for `editor.hasQuery` of React component
2018-12-11 11:25:53 -08:00