Skip to content
Snippets Groups Projects
Commit f87db70c authored by chris's avatar chris
Browse files

set focus on activeview

parent e5fc8824
No related branches found
No related tags found
1 merge request!161Connect ui
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror UI components", "description": "Wax prosemirror UI components",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -73,6 +73,7 @@ export default ({ comment, top, commentId, recalculateTops }) => { ...@@ -73,6 +73,7 @@ export default ({ comment, top, commentId, recalculateTops }) => {
), ),
); );
}); });
activeView.focus();
recalculateTops(); recalculateTops();
}; };
......
...@@ -151,6 +151,7 @@ const LinkComponent = ({ mark, setPosition, position }) => { ...@@ -151,6 +151,7 @@ const LinkComponent = ({ mark, setPosition, position }) => {
.setMeta('addToHistory', false) .setMeta('addToHistory', false)
.removeMark(mark.from, mark.to, state.schema.marks.link), .removeMark(mark.from, mark.to, state.schema.marks.link),
); );
activeView.focus();
return false; return false;
} }
setLinkHref(lastLinkMark.attrs.href); setLinkHref(lastLinkMark.attrs.href);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror core", "description": "Wax prosemirror core",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror layouts", "description": "Wax prosemirror layouts",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror plugins", "description": "Wax prosemirror plugins",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror schema", "description": "Wax prosemirror schema",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror services", "description": "Wax prosemirror services",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror themes", "description": "Wax prosemirror themes",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"version": "0.0.16", "version": "0.0.16",
"description": "Wax prosemirror utilities", "description": "Wax prosemirror utilities",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "BABEL_ENV=production rollup -c" "build": "BABEL_ENV=production rollup -c"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment