Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

[ADD] Core: handle basic enter #34

Merged
merged 5 commits into from Nov 26, 2019
Merged

[ADD] Core: handle basic enter #34

merged 5 commits into from Nov 26, 2019

Conversation

Zynton
Copy link
Contributor

@Zynton Zynton commented Nov 6, 2019

No description provided.

@Zynton Zynton requested a review from dmo-odoo November 6, 2019 16:55
@Zynton Zynton force-pushed the master-fixes-age branch 12 times, most recently from d2b1aff to c012d45 Compare November 13, 2019 11:13
@Zynton Zynton force-pushed the master-enter-age branch 2 times, most recently from a712e88 to d351a27 Compare November 13, 2019 12:52
@Zynton
Copy link
Contributor Author

Zynton commented Nov 13, 2019

@dmo-odoo Updated.

@dmo-odoo
Copy link
Collaborator

@Zinston Looks like it's not rebased on master after our merges of last wednesday ;-)

@Zynton Zynton changed the base branch from master-fixes-age to master November 18, 2019 08:08
@Zynton
Copy link
Contributor Author

Zynton commented Nov 18, 2019

@Zinston Looks like it's not rebased on master after our merges of last wednesday ;-)

Now it is ;-)

@Zynton Zynton mentioned this pull request Nov 18, 2019
src/core/stores/VDocument.ts Outdated Show resolved Hide resolved
src/core/stores/VDocument.ts Outdated Show resolved Hide resolved
src/core/stores/VNode.ts Outdated Show resolved Hide resolved
src/core/stores/VDocument.ts Outdated Show resolved Hide resolved
src/core/utils/CorePlugin.ts Outdated Show resolved Hide resolved
src/core/utils/CorePlugin.ts Outdated Show resolved Hide resolved
src/core/utils/EventManager.ts Outdated Show resolved Hide resolved
@Zynton Zynton force-pushed the master-enter-age branch 3 times, most recently from 7d43bef to a11b902 Compare November 25, 2019 11:23
@Zynton
Copy link
Contributor Author

Zynton commented Nov 25, 2019

@dmo-odoo Ready. There were three more fixes I wanted to move here from master-coretests-age, but there were apparently a lot of things to discuss regarding those (038aa57, 8ef1f73 and c70d654).
I included a version of 038aa57 that accounts for your comments. The other two however require discussion.

src/core/stores/VDocument.ts Outdated Show resolved Hide resolved
src/core/stores/VNode.ts Outdated Show resolved Hide resolved
src/core/stores/VNode.ts Outdated Show resolved Hide resolved
Zynton and others added 5 commits November 26, 2019 10:36
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
When implementing SHIFT+ENTER, I needed to inspect the 'insert' intent's
payload value, which had to be a LineBreakNode. However, all I could see
in the DevTools was "Object object". So I implemented an override of
toString on the VNode object so it could be conveniently inspected.
Eg: `<paragraph>[]</paragraph>` <=> `<p>[]<br></p>`
The info component's selection tab was unable to show this, and made the
DevTools crash.
Until this commit, the Parser just added a LINE_BREAK in VDocument for
each <br>. But our own Renderer doesn't render a single <br> for each
LINE_BREAK. This commit makes the Parser consistent with that behaviour.
Also includes tests to account for that.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants