Changes
Page history
Update custom plugins
authored
Dec 01, 2017
by
Thimo Kraemer
Hide whitespace changes
Inline
Side-by-side
custom-plugins.md
View page @
94a2d7fb
...
@@ -16,7 +16,7 @@ Creating an action
...
@@ -16,7 +16,7 @@ Creating an action
==================
==================
An action is a Javascript function that is called when the action
An action is a Javascript function that is called when the action
is executed. It receives the node and a parameter object:
:
is executed. It receives the node and a parameter object:
```
js
```
js
kss
.
registerActionProvider
(
'
replaceInnerHTML
'
,
function
(
node
,
params
)
{
kss
.
registerActionProvider
(
'
replaceInnerHTML
'
,
function
(
node
,
params
)
{
...
@@ -28,7 +28,7 @@ Creating a parameter provider
...
@@ -28,7 +28,7 @@ Creating a parameter provider
=============================
=============================
A parameter provider is a Javascript function that is called for each
A parameter provider is a Javascript function that is called for each
parameter for an action. It receives the node and all arguments:
:
parameter for an action. It receives the node and all arguments:
```
js
```
js
kss
.
registerParameterProvider
(
'
nodeAttr
'
,
function
(
node
,
name
)
{
kss
.
registerParameterProvider
(
'
nodeAttr
'
,
function
(
node
,
name
)
{
...
...
...
...