fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: tweaking some action descriptions
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
core.js
diff --git
a/src/editor/plugins/core/core.js
b/src/editor/plugins/core/core.js
index
b678ca3
..
ed0cf28
100644
(file)
--- a/
src/editor/plugins/core/core.js
+++ b/
src/editor/plugins/core/core.js
@@
-158,7
+158,7
@@
var commentAction = {
params.fragment instanceof params.fragment.NodeFragment && !params.fragment.node.isRoot()
};
if(state.allowed) {
params.fragment instanceof params.fragment.NodeFragment && !params.fragment.node.isRoot()
};
if(state.allowed) {
- state.description = gettext('Insert comment
after current node
');
+ state.description = gettext('Insert comment');
}
return state;
}
}
return state;
}
@@
-310,7
+310,12
@@
var linkAction = {
if(params.fragment instanceof params.fragment.CaretFragment) {
if(params.fragment.node.isInside('link')) {
if(params.fragment instanceof params.fragment.CaretFragment) {
if(params.fragment.node.isInside('link')) {
- return {allowed: true, toggled: true, execute: editLink};
+ return {
+ allowed: true,
+ toggled: true,
+ description: gettext('Edit link'),
+ execute: editLink
+ };
}
}
return {allowed: false};
}
}
return {allowed: false};