abumalick
e23f7e69dd
warnings/proptypes: use oneOfType to support object and string
2017-06-05 13:56:25 -07:00
Shawn Erquhart
2a1e9b40b9
Merge pull request #395 from netlify/visual-tweaks
...
Small update to the UI's look and feel
2017-05-18 11:26:19 -04:00
Shawn Erquhart
62a8de98da
improve theme color control via variables
2017-05-18 11:12:37 -04:00
David Francoeur
aac5339ac0
boolean widget & some documentation ( #396 )
2017-05-18 07:37:41 -07:00
Rafael Conde
e2120910f6
Update border on image widget, tweak the copy
2017-05-11 08:45:19 -07:00
Rafael Conde
cb45997c24
Increase contrast of popovers on editor
2017-05-10 08:58:21 -07:00
Shawn Erquhart
3ee5a5e172
update rich text toolbar styling
2017-05-05 12:58:42 -04:00
Shawn Erquhart
e21a33986f
further improve ui contrast and consistency
2017-05-05 12:58:11 -04:00
Rafael Conde
5adbecad77
Increase contrast and focus of input fields
2017-05-05 12:57:41 -04:00
Shawn Erquhart
fdd44c88cb
prevent rte scroll, improve code display
2017-04-28 15:40:54 -07:00
Benaiah Mischenko
9cdc39154a
Prevent long code lines from breaking visual entry editor
...
Previously, long lines of preformatted text would cause the lines to
run off the side of the ProseMirror edit box and give the entire entry
editor a scrollbar. This commit makes the edit box itself scroll,
which looks and feels much less broken.
2017-04-26 12:23:37 -07:00
Shawn Erquhart
7a66dd4dcb
remove superfluous rawMode editor prop
2017-04-24 22:39:37 -04:00
Shawn Erquhart
902134c4e8
add autosizing for markdown editor
2017-04-24 17:52:06 -04:00
Shawn Erquhart
ba2f092dc3
document Sticky microlib
2017-04-24 17:52:06 -04:00
Shawn Erquhart
9ff4e25736
move editor components to dropdown menu
2017-04-24 17:52:06 -04:00
Shawn Erquhart
fdd85486d8
update Toolbar proptypes
2017-04-24 17:52:06 -04:00
Shawn Erquhart
a3b487aaeb
use React Toolbox Switch for rte mode selection
2017-04-24 17:52:06 -04:00
Shawn Erquhart
1a12c6f5aa
fix rte markdown toggle position for small screens
2017-04-24 17:52:06 -04:00
Shawn Erquhart
86b7b84637
fold ToolbarPlugins into Toolbar
2017-04-24 17:52:06 -04:00
Shawn Erquhart
b8dce2fb4b
split out ToolbarPluginForm
2017-04-24 17:52:05 -04:00
Shawn Erquhart
dd29658abb
split out ToolbarPluginFormControl
2017-04-24 17:52:05 -04:00
Shawn Erquhart
c7d3de0fc8
use ToolbarButton for plugins
2017-04-24 17:52:05 -04:00
Shawn Erquhart
c5d9f44de2
split out ToolbarButton component
2017-04-24 17:52:05 -04:00
Shawn Erquhart
192afe2ec5
make markdown toggle purpose more obvious
...
The "< >" button on the toolbar should format selected
text as code, but its serving as a visual mode toggle.
This commit switches out the code icon for a text label,
and moves it to the right side of the rich text toolbar.
2017-04-24 17:52:05 -04:00
Shawn Erquhart
fc5d935e53
use Context for sticky, support multiple stickies
2017-04-24 17:52:05 -04:00
Shawn Erquhart
ec29a04089
implement initial working sticky rte toolbar
2017-04-24 17:52:05 -04:00
Shawn Erquhart
33fe2b820c
add active state to rich text raw toggle
2017-04-24 17:52:04 -04:00
Shawn Erquhart
b2fd96c12e
condense rich text functionality to static toolbar
2017-04-24 17:52:04 -04:00
Shawn Erquhart
d250b1cef3
fix list item deletion
2017-04-20 15:22:04 -04:00
Joseph Earl
e2f471e863
Remove webpack footer
2017-04-14 13:56:24 +01:00
Luis Correia
b75f86f4c2
#359 - Delete metadata by key of deleted value (previously harcoded)
2017-04-13 12:45:32 +01:00
Luis Correia
805f958165
#359 - Handle metadata for all children of a list field
2017-04-13 11:02:06 +01:00
Shawn Erquhart
3096b4617e
improve entry editor UI
2017-03-15 21:18:16 -04:00
Cássio Souza
0e10c3f984
Local search ( #220 )
...
* Version Bump
* local search skeleton
* Added WaitService middleware
* Return matching queries
* wait action middleware rename/refactor
* bigger debounce time
* Fix: Initialize state using Immutable
* Local Search without integrations
* Local Search refactor: Keep state in closure, recurse
* “string” should be treated as the default widget by the inference. Closes #199
2017-01-19 15:50:26 -02:00
Cássio Zen
f5d1fa7314
Makes input fields easier to click. Closes #173
2017-01-19 14:26:49 -02:00
Cássio Zen
11f7c1e047
bugfix in proptype
2017-01-16 16:52:59 -02:00
Cássio Zen
7b755d5839
Bugfix: List with basic string should call onChange
2017-01-16 16:52:24 -02:00
Cássio Zen
63ae669507
more variety of presence check
2017-01-16 16:51:53 -02:00
Cássio Souza
3306670459
Validation ( #216 )
...
* Field config options: 'required' and 'pattern'
* Widget controls can implement it's own isValid
* Validation errors store in redux & displayed
* Support for returned Promises in isValid
* Allow widget controls to return either a boolean, an error object or a promise from isValid
2017-01-13 19:30:40 -02:00
Cássio Souza
a4d7622ade
Asset API ( #204 )
...
Asset API
2017-01-10 22:23:22 -02:00
Mathias Biilmann
112bdd348a
Merge pull request #198 from netlify/prosemirror-polishing
...
An assortment of Markdown Editor fixes
2016-12-30 09:49:36 -08:00
Cássio Souza
ddfdc59941
Add metadata to draft entry fields ( #196 )
...
* Add metadata to draft entry fields
* Do not render widget if value is null
* Pass along metadata
* Namespace queries to avoid conflict
* Query relational field on mount (for when editing entries)
* Make sure metadata is Immutable
* Added collection name as metadata keys
2016-12-29 17:18:24 -02:00
Mathias Biilmann Christensen
b8e04f72a3
Treat lists as tight in code mirror so we don't get Ps inside them
2016-12-27 23:19:00 -08:00
Mathias Biilmann Christensen
75100eaa3a
Support for drag and drop image uploads in both rte and raw editor mode
2016-12-27 23:18:37 -08:00
Mathias Biilmann Christensen
2ed2160c92
Persist richtext vs raw setting in localstorage
2016-12-27 23:17:33 -08:00
Mathias Biilmann Christensen
1e1ec76407
Make MarkupItReactRenderer use media proxies when rendering image paths
2016-12-27 23:16:46 -08:00
Mathias Biilmann Christensen
06218e55eb
Update prosemirror
2016-12-27 23:13:31 -08:00
Cássio Souza
05337ff232
Relation search widget ( #186 )
...
* search action/reducer refactor
* Relation widget skeleton
* search clearing
* query action + reducer
* Autocomplete component for RelationControl
2016-12-07 15:44:07 -02:00
Cássio Zen
782c386d3e
Widget should set default values through onChange
...
Otherwise, default value may not get persisted
2016-12-01 16:28:33 -02:00
Cássio Zen
aea6d38121
Limit responsive images in default preview to maxWidth 100%
2016-11-30 15:56:54 -02:00