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

[WIP] EventNormalizer: prevent backspace flickering #216

Open
wants to merge 51 commits into
base: master-odoo-integration-age-dmo-chm-nby
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b8b8ea7
[IMP] Core: add execCustomCommand
Goaman Apr 27, 2020
5794b5f
integration
Goaman Jun 5, 2020
34d9877
[FIX] Divider: Odoo Website's Divider is unbreakable
Zynton Jun 5, 2020
819c278
[FIX] Link: apply classes to LinkFormat, not CharNode
Zynton Jun 8, 2020
6e2e2e4
[IMP] dispatch hook when execBatch
Goaman Jun 8, 2020
a1cf426
[CLEAN] rename dispaching id
Goaman Jun 8, 2020
12f2071
move BasicEditor to subfolder
Zynton Jun 8, 2020
e0971b5
move OdooWebsiteEditor to subfolder
Zynton Jun 8, 2020
5f298fa
move odoo-integration to OdooWebsiteEditor bundle
Zynton Jun 8, 2020
ad3ddd7
rename plugin-odoo-snippets to plugin-odoo
Zynton Jun 8, 2020
681fdb2
rename OdooBindings into OdooCommands
Zynton Jun 8, 2020
05d4793
odoo image html renderer to dom object renderer
Zynton Jun 8, 2020
43ed807
OdooSnippet, OdooCommands: VElement -> VNode
Zynton Jun 8, 2020
ee53e7c
move bundles to separate packages
Zynton Jun 9, 2020
078b1fa
fix BasicFields imports after rebase
dmo-odoo Jun 9, 2020
3c934a3
[FIX] Image: fix missing formats in image rendering
dmo-odoo Jun 9, 2020
78c94e6
move odoo snippet commands to dom helpers
Zynton Jun 9, 2020
1b7b87e
remove hasVNode
Zynton Jun 9, 2020
d90cae4
handle addClass
Zynton Jun 9, 2020
32b78d5
handle removeClass
Zynton Jun 9, 2020
1d3a71d
fix and rename _getVNodes
Zynton Jun 9, 2020
bb9f98e
fix add/remove undefined class
Zynton Jun 9, 2020
40b28e2
handle toggleClass
Zynton Jun 9, 2020
9f220d1
fix savedAttach
Zynton Jun 9, 2020
80a4420
remove addClassToLink
Zynton Jun 9, 2020
42241d2
handle setAttribute
Zynton Jun 9, 2020
ded6719
handle setStyle
Zynton Jun 9, 2020
a65ebc5
[FIX] Odoo: remove broken imports
dmo-odoo Jun 9, 2020
fdf60bf
[FIX] Image: fix image classses cobbled together
dmo-odoo Jun 9, 2020
0ccc7cd
[FIX] Char,Image: fixes following rebase
dmo-odoo Jun 10, 2020
2ff267d
[FIX] build-odoo: do not use promises with fs
Goaman Jun 10, 2020
379e174
[DOC] default port is now 80
Goaman Jun 10, 2020
d6f6cb1
[FIX] draw only when necessary
Goaman Jun 10, 2020
601363e
[FIX] getRecordCover
Goaman Jun 10, 2020
a9f8fac
[FIX] await when dispatch customHook
Goaman Jun 11, 2020
8d000ea
handle remove
Zynton Jun 11, 2020
26fbc70
handle empty (not used yet)
Zynton Jun 11, 2020
f7603ef
handle replace
Zynton Jun 11, 2020
3c71bae
handle wrap
Zynton Jun 11, 2020
7443ed3
handle move
Zynton Jun 11, 2020
629b2cb
handle getStructures
Zynton Jun 11, 2020
0098fc0
handle getRecordCover
Zynton Jun 11, 2020
63a4c1b
handle getLinkInfo
Zynton Jun 11, 2020
0b6ee6b
handle insertHtml
Zynton Jun 11, 2020
5c35055
various little fixups
Zynton Jun 11, 2020
2cd8226
remove OdooCommands
Zynton Jun 11, 2020
bfff55c
dom helpers: commands -> functions
Zynton Jun 11, 2020
e9a4fd1
dom helpers: params -> arguments
Zynton Jun 11, 2020
5c7f85f
redraw after dom helper call
Zynton Jun 11, 2020
23f1e41
fix import in devtools test
Zynton Jun 11, 2020
f93acb0
[WIP] EventNormalizer: prevent backspace flickering
dmo-odoo Jun 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] Link: apply classes to LinkFormat, not CharNode
Zynton authored and dmo-odoo committed Jun 10, 2020
commit 819c27842dcb732085ab18618e8209f19ae37a26
5 changes: 3 additions & 2 deletions packages/plugin-odoo-snippets/src/OdooSnippet.ts
Original file line number Diff line number Diff line change
@@ -182,8 +182,9 @@ export class OdooSnippet<T extends JWPluginConfig = JWPluginConfig> extends JWPl
}
addClassToLink(params: AddClassToLinkParams): void {
const nodes = params.context.range.targetedNodes(InlineNode);
for (const node of nodes) {
node.modifiers.get(Attributes).set('class', params.classes);
const links = nodes.map(node => node.modifiers.find(LinkFormat)).filter(f => f);
for (const link of links) {
link.modifiers.get(Attributes).set('class', params.classes);
}
}
toggleClass(params: ToggleClassParams): void {