-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP -- inline widgets & block editing modals #301
Conversation
this is too much for one commit, sorry. everything broke, fixed basic text editing and formatting. to fix: * widgets * menu
# Conflicts: # src/components/editable-menu.css # src/components/editable.js # src/menu/menu-media.js
# Conflicts: # package.json # src/components/app.js # src/components/dropdown-group.js
"rules": { | ||
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 1}], | ||
"comma-dangle": [2, "always-multiline"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not have done it in the same PR tho 😳
"babel-eslint": "6.1.2", | ||
"babel-loader": "6.2.4", | ||
"babel-preset-es2015": "6.9.0", | ||
"babel-cli": "6.18.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -26,7 +27,7 @@ export default function (items) { | |||
if (el) container.appendChild(el) | |||
}) | |||
} | |||
return EdSchema.parseDOM(container) | |||
return DOMParser.fromSchema(EdSchema).parse(container) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice naming cleanup
|
||
const rules = inputRules.allInputRules.concat(edRules) | ||
// const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With pm15... https://discuss.prosemirror.net/t/release-0-15-0/519
The main change in this release is that a bunch more things (typing, in-textblock backspacing) are left to the browser, and ProseMirror takes care not to re-render content when it doesn't have to. Which goes exactly against the original concept of ProseMirror ('never trust the browser, we'll do it ourselves'), but more and more issues came up where browser or platform features, such as spell-check, long-press to type character variants on OS, double-space for a period on iOS, were broken because the browser and/or the OS didn't realize what was going on.
So for relatively uncontroversial functionality (there's not too much disagreement on what should happen to your document when you type a character), the editor now takes a hands-off approach.
These are ProseMirror default behaviors. Would there be a better path? |
& iframe and unsupported border
(Though that doesn't help mobile, where OSK disappears on block selection. Menu items for "delete block" & "add paragraph above" would help.) |
# Conflicts: # CHANGES.md # demo/demo.js # package.json # src/components/app.js # src/components/editable.js # src/menu/ed-menu.js # src/plugins/commands-interface.js # src/plugins/widget-base.js # src/plugins/widget-iframe.js # src/plugins/widget.css # src/plugins/widget.js
pr goals... net negative loc
@narrowdesign QA finds:
…
>add X
from images or quotes.”
when focus is inside an image or another quote creates a quote wherever the cursor was before last focus change.I see some jumping in Safari, but it's Safari bugs that I'm working around with the positioning hacks. ~~~Going to roll with it for now.~~~
1/20 @narrowdesign QA:
return
while in an image attribution text input should close the input menuLink must start with http:// or https://
for normals or you'll get a lot of people trying to type http...“
several times before I realized it was creating new boxes w/ an edit button. Should open that edit menu and set focus to the inputNot regressions / not blockers
Webapp issues