Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bibliossimo
opacce
Commits
7d53a8d1
Commit
7d53a8d1
authored
Dec 15, 2017
by
efalcy
Browse files
dev #56107 : change bokehsample plugins names
parent
ed95c02b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
ckeditor/plugins/bokeh-kiosk/dialogs/kiosk.js
ckeditor/plugins/bokeh-kiosk/dialogs/kiosk.js
+9
-9
ckeditor/plugins/bokeh-kiosk/icons/basket.png
ckeditor/plugins/bokeh-kiosk/icons/basket.png
+0
-0
ckeditor/plugins/bokeh-kiosk/plugin.css
ckeditor/plugins/bokeh-kiosk/plugin.css
+0
-0
ckeditor/plugins/bokeh-kiosk/plugin.js
ckeditor/plugins/bokeh-kiosk/plugin.js
+9
-9
library/ZendAfi/View/Helper/CkEditor.php
library/ZendAfi/View/Helper/CkEditor.php
+2
-2
No files found.
ckeditor/plugins/bokeh
sample
/dialogs/
basket
.js
→
ckeditor/plugins/bokeh
-kiosk
/dialogs/
kiosk
.js
View file @
7d53a8d1
CKEDITOR
.
dialog
.
add
(
'
basket
Dialog
'
,
function
(
editor
)
{
CKEDITOR
.
dialog
.
add
(
'
kiosk
Dialog
'
,
function
(
editor
)
{
return
{
title
:
'
Bokeh
Widget
Properties
'
,
title
:
'
Bokeh
Kiosk
Properties
'
,
minWidth
:
400
,
minHeight
:
200
,
contents
:
[
...
...
@@ -12,7 +12,7 @@ CKEDITOR.dialog.add( 'basketDialog', function ( editor ) {
elements
:
[
{
type
:
'
html
'
,
className
:
'
bokeh-
widget
-form
'
,
className
:
'
bokeh-
kiosk
-form
'
,
html
:
''
,
setupForm
:
function
()
{
...
...
@@ -24,7 +24,7 @@ CKEDITOR.dialog.add( 'basketDialog', function ( editor ) {
data
:
this
.
getValue
(),
datatype
:
'
json
'
,
success
:
function
(
data
)
{
$
(
'
.bokeh-
widget
-form
'
).
html
(
data
[
'
content
'
]);
$
(
'
.bokeh-
kiosk
-form
'
).
html
(
data
[
'
content
'
]);
},
error
:
function
(
xhr
,
status
)
{
alert
(
status
);
...
...
@@ -48,8 +48,8 @@ CKEDITOR.dialog.add( 'basketDialog', function ( editor ) {
var
selection
=
editor
.
getSelection
();
var
element
=
selection
.
getStartElement
();
this
.
insertMode
=
true
;
if
(
$
(
element
.
$
).
hasClass
(
'
bokeh-
widget
'
)
||
$
(
element
.
$
).
closest
(
'
bokeh-
widget
'
).
size
)
{
element
=
$
(
element
.
$
).
closest
(
'
bokeh-
widget
'
);
if
(
$
(
element
.
$
).
hasClass
(
'
bokeh-
kiosk
'
)
||
$
(
element
.
$
).
closest
(
'
bokeh-
kiosk
'
).
size
)
{
element
=
$
(
element
.
$
).
closest
(
'
bokeh-
kiosk
'
);
this
.
insertMode
=
false
;
}
this
.
element
=
element
;
...
...
@@ -69,12 +69,12 @@ CKEDITOR.dialog.add( 'basketDialog', function ( editor ) {
}
widget
.
setText
(
'
KIOSQUE
'
);
$
(
'
.bokeh-
widget
-form form
'
).
triggerHandler
(
'
submit
'
);
$
(
'
.bokeh-
kiosk
-form form
'
).
triggerHandler
(
'
submit
'
);
setTimeout
(
function
()
{
$
(
widget
)
.
attr
(
'
data-form
'
,
$
(
'
.bokeh-
widget
-form form
'
).
serialize
())
.
attr
(
'
class
'
,
'
bokeh-
widget
'
);
.
attr
(
'
data-form
'
,
$
(
'
.bokeh-
kiosk
-form form
'
).
serialize
())
.
attr
(
'
class
'
,
'
bokeh-
kiosk
'
);
},
10
);
}
...
...
ckeditor/plugins/bokeh
sample
/icons/basket.png
→
ckeditor/plugins/bokeh
-kiosk
/icons/basket.png
View file @
7d53a8d1
File moved
ckeditor/plugins/bokeh
sample
/plugin.css
→
ckeditor/plugins/bokeh
-kiosk
/plugin.css
View file @
7d53a8d1
File moved
ckeditor/plugins/bokeh
sample
/plugin.js
→
ckeditor/plugins/bokeh
-kiosk
/plugin.js
View file @
7d53a8d1
CKEDITOR
.
plugins
.
add
(
'
bokeh
sample
'
,
{
icons
:
'
basket
'
,
CKEDITOR
.
plugins
.
add
(
'
bokeh
-kiosk
'
,
{
icons
:
'
kiosk
'
,
init
:
function
(
editor
)
{
CKEDITOR
.
dialog
.
add
(
'
basket
Dialog
'
,
this
.
path
+
'
dialogs/
basket
.js
'
);
editor
.
addCommand
(
'
insert
Basket
'
,
new
CKEDITOR
.
dialogCommand
(
'
basket
Dialog
'
));
editor
.
addCommand
(
'
edit
Basket
'
,
new
CKEDITOR
.
dialogCommand
(
'
basket
Dialog
'
));
CKEDITOR
.
dialog
.
add
(
'
kiosk
Dialog
'
,
this
.
path
+
'
dialogs/
kiosk
.js
'
);
editor
.
addCommand
(
'
insert
Kiosk
'
,
new
CKEDITOR
.
dialogCommand
(
'
kiosk
Dialog
'
));
editor
.
addCommand
(
'
edit
Kiosk
'
,
new
CKEDITOR
.
dialogCommand
(
'
kiosk
Dialog
'
));
editor
.
addContentsCss
(
this
.
path
+
'
plugin.css
'
);
...
...
@@ -12,7 +12,7 @@ CKEDITOR.plugins.add( 'bokehsample', {
editor
.
addMenuItem
(
'
bokehWidgetItem
'
,
{
label
:
'
Edit widget
'
,
icon
:
this
.
path
+
'
icons/basket.png
'
,
command
:
'
edit
Basket
'
,
command
:
'
edit
Kiosk
'
,
group
:
'
bokehWidgetGroup
'
});
...
...
@@ -26,9 +26,9 @@ CKEDITOR.plugins.add( 'bokehsample', {
// Create a toolbar button that executes the above command.
editor
.
ui
.
addButton
(
'
Basket
'
,
{
label
:
'
Insert Bokeh
basket
'
,
command
:
'
insert
Basket
'
,
editor
.
ui
.
addButton
(
'
Kiosk
'
,
{
label
:
'
Insert Bokeh
kiosk
'
,
command
:
'
insert
Kiosk
'
,
toolbar
:
'
insert
'
,
});
...
...
library/ZendAfi/View/Helper/CkEditor.php
View file @
7d53a8d1
...
...
@@ -66,7 +66,7 @@ class ZendAfi_View_Helper_CkEditor extends ZendAfi_View_Helper_BaseHelper
'/'
,
[
'HorizontalRule'
],
[
'Link'
,
'Unlink'
,
'Anchor'
],
[
'Image'
,
'Flash'
,
'Table'
,
'Iframe'
,
'oembed'
,
'Slideshow'
,
'SpecialChar'
,
'
Basket
'
],
[
'Image'
,
'Flash'
,
'Table'
,
'Iframe'
,
'oembed'
,
'Slideshow'
,
'SpecialChar'
,
'
Kiosk
'
],
];
$config
[
'extraAllowedContent'
]
=
[
...
...
@@ -111,7 +111,7 @@ class ZendAfi_View_Helper_CkEditor extends ZendAfi_View_Helper_BaseHelper
'action'
=>
'get-form'
,
'code'
=>
'KIOSQUE'
,
'render'
=>
'popup'
]);
$config
[
'extraPlugins'
]
=
'colordialog,bokeh
sample
'
;
$config
[
'extraPlugins'
]
=
'colordialog,bokeh
-kiosk
'
;
$oCKeditor
=
new
CKeditor
(
CKBASEURL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment