86 Commits

Author SHA1 Message Date
Andrey Okonetchnikov
e644104542 Added drag'n'drop image adding to VisualEditor.
Removed StylesMenu and BlockTypesMenu positioning code since it didn't work
with adding images using DnD.
2016-09-29 18:53:47 +02:00
Andrey Okonetchnikov
e454144d31 Use HoC withPortalAtCursorPosition for StylesMenu and BlockTypesMenu to DRY 2016-09-29 18:51:39 +02:00
Andrey Okonetchnikov
cfc8be3f36 Removed console.log call 2016-09-29 18:48:23 +02:00
Andrey Okonetchnikov
47512001ec Implement image uploading for the raw editor 2016-09-28 14:05:51 +02:00
Andrey Okonetchnikov
0a3676204e Localized CSS 2016-09-28 12:46:39 +02:00
Andrey Okonetchnikov
2b5a987945 WIP on drag'n'drop image uploading 2016-09-28 11:19:12 +02:00
Andrey Okonetchnikov
4020dfc912 Refactored MarkdownControl to not use constructor and simplified render method 2016-09-27 13:08:25 +02:00
Andrey Okonetchnikov
107e8f7104 Moved MarkupItReactRenderer to /components. Added a story for it. 2016-09-27 12:57:41 +02:00
Andrey Okonetchnikov
78eb65bca2 Renamed component 2016-09-27 12:24:52 +02:00
Andrey Okonetchnikov
f38e6b6f25 Use dangerouslySetInnerHTML since the react parser wasn't working with inline styles correctly. 2016-09-27 12:18:52 +02:00
Andrey Okonetchnikov
05913d4a1b Omit not allowed attributes instead of white-listing them 2016-09-27 11:33:28 +02:00
Andrey Okonetchnikov
e0724aa1bd Use react-htmlparser2 to render HTML to React VDOM 2016-09-27 11:26:28 +02:00
Andrey Okonetchnikov
0a9eb3d688 Fixed a typo 2016-09-27 11:14:41 +02:00
Andrey Okonetchnikov
71c638bc27 Integrated MD Preview component with mediaproxy 2016-09-26 15:59:49 +02:00
Andrey Okonetchnikov
cdc71a2bbf Sanitize unsupported props. This removes all React warnings. Refactored renderToken. 2016-09-26 15:37:25 +02:00
Andrey Okonetchnikov
af8ea80142 Added support for custom renderers 2016-09-26 13:31:36 +02:00
Andrey Okonetchnikov
20e681e7ec Added support for rendering inlined HTML in MD documents 2016-09-26 13:18:22 +02:00
Andrey Okonetchnikov
1860a2389d Use Immutable data structure without converting to JSON for speed and profit. Added more tests. 2016-09-23 19:56:35 +02:00
Andrey Okonetchnikov
57688af42e Support more elements. Import dicitonaries from markup-it. Added more tests. 2016-09-22 22:34:43 +02:00
Andrey Okonetchnikov
9392fdbe30 Integrated MarkitupReactRenderer with Preview pane 2016-09-22 21:53:57 +02:00
Andrey Okonetchnikov
04c9780ee1 Better implementation 2016-09-22 21:53:11 +02:00
Andrey Okonetchnikov
c928fbccaf Switched to enzyme 2016-09-22 21:52:43 +02:00
Andrey Okonetchnikov
c243a62a32 Generate keys for arrays of elements to remove React warnings. Pass only a single child if possible. 2016-09-22 18:23:44 +02:00
Andrey Okonetchnikov
7fe1a6f8b6 Extracted renderToken function from class. Do not render additional <div>. 2016-09-22 17:44:25 +02:00
Andrey Okonetchnikov
95008d8607 WIP on React renderer for any Markit-up syntax 2016-09-22 17:36:02 +02:00
Andrey Okonetchnikov
d351f10a9b Fixed formatting of richText.js 2016-09-22 10:03:02 +02:00
Andrey Okonetchnikov
eb14200643 Fixed ESLint errors and warning that could be fixed with eslint --fix 2016-09-13 15:30:58 +02:00
Mathias Biilmann Christensen
8221c9c170 Maor UI polish for editing with live preview 2016-09-12 11:14:21 +02:00
Mathias Biilmann Christensen
bbbf3c5621 Add datetime widget 2016-09-11 23:07:48 +02:00
Mathias Biilmann Christensen
8d63ff0a88 Expose methods for installations to create custom preview components 2016-09-11 17:53:44 +02:00
Mathias Biilmann Christensen
c51f42658e Get rid of double connect in markdown control 2016-09-09 17:32:23 +02:00
Mathias Biilmann Christensen
1065bcf0cc Merge remote-tracking branch 'origin/react' into react-ui-updates 2016-09-08 20:47:11 +02:00
Frances Berriman
55e1644711 Merge pull request #66 from netlify/apply-theme
Apply theme
2016-08-31 13:26:18 -07:00
Frances Berriman
d805cb67cb Add a bit of padding to inputs 2016-08-31 13:18:18 -07:00
Frances Berriman
c49cfc5fce Knock back tip text 2016-08-31 13:08:14 -07:00
Frances Berriman
74a0c8c602 Copy drag image style a bit more from ember version 2016-08-31 13:06:23 -07:00
Frances Berriman
81e27632be Made the image upload button stand out as a drag target 2016-08-31 12:11:14 -07:00
Cássio Zen
704bc41b59 bugfix, closes #59 2016-08-29 17:26:47 -03:00
Cássio Zen
6eec0feb72 Small refactor preparing for branch creating/editing. Also closes #58 2016-08-29 17:09:04 -03:00
Cássio Zen
b717874e7b Allow the creation of new entries 2016-08-24 21:37:22 -03:00
Cássio Zen
fd79381160 include mediaproxy block 2016-08-23 15:25:44 -03:00
Cássio Zen
b4f3a38bd5 Preview using MarkupIt 2016-08-18 17:26:01 -03:00
Cássio Zen
95fdba9953 plugin fields have with distinct name and label 2016-08-18 15:30:28 -03:00
Cássio Zen
e52ccc0dbc Editor plugin architecture skeleton 2016-08-18 15:13:22 -03:00
Cássio Zen
ae52a14cb1 plugin parsing for rich text editors 2016-08-18 10:51:38 -03:00
Cássio Zen
dea734ec21 updated slate version 2016-08-17 09:52:06 -03:00
Cássio Zen
474abd8f78 Markdown editor switching 2016-08-11 18:21:32 -03:00
Cássio Zen
994d969247 Raw text editor (with markdown highlight) 2016-08-11 17:06:01 -03:00
Cássio Zen
7405ae8f63 Refactored the markdown visual/block editor into it's own component 2016-08-11 14:17:47 -03:00
Cássio Zen
2e40e12f18 Make images selectable on editor 2016-08-11 10:57:24 -03:00