Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
3a53dd99
Commit
3a53dd99
authored
Jan 29, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ckfinder
parent
e1b839fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
16 deletions
+24
-16
ckfinderStart.js
public/resource/lib/js/ckfinderStart.js
+24
-16
No files found.
public/resource/lib/js/ckfinderStart.js
View file @
3a53dd99
function
BrowseServer
(
input_image
,
fun
)
{
function
BrowseServer
(
input_image
)
{
var
finder
=
new
CKFinder
();
var
finder
=
new
CKFinder
();
finder
.
basePath
=
'../'
;
finder
.
basePath
=
'../'
;
finder
.
selectActionFunction
=
SetFileField
;
finder
.
selectActionFunction
=
SetFileField
;
finder
.
popup
();
window
.
input_image
=
input_image
;
}
function
getCKeditorValue
(
id
)
{
finder
.
selectActionData
=
input_image
;
return
CKEDITOR
.
instances
[
id
].
getData
();
if
(
$
.
isFunction
(
fun
)){
}
window
.
fun
=
fun
;
}
function
SetFileField
(
fileUrl
)
{
finder
.
popup
();
/*console.log(fileUrl);
}
$port = window.location.port;
function
getCKeditorValue
(
id
){
$port = $port ? ':' : '' + $port;
return
CKEDITOR
.
instances
[
id
].
getData
();
$host = window.location.host;*/
}
function
setCKeditorValue
(
id
,
content
){
return
CKEDITOR
.
instances
[
id
].
setData
(
content
);
}
function
SetFileField
(
fileUrl
,
data
)
{
split
=
'
\
/Attachments
\
/'
;
split
=
'
\
/Attachments
\
/'
;
fileUrl
=
fileUrl
.
split
(
split
);
pic
=
fileUrl
.
split
(
split
);
if
(
!!
fileUrl
[
1
])
{
if
(
!!
pic
[
1
]){
document
.
getElementById
(
window
.
input_image
).
value
=
fileUrl
[
1
];
document
.
getElementById
(
(
data
[
"selectActionData"
]
)).
value
=
pic
[
1
];
}
if
(
$
.
isFunction
(
window
.
fun
)){
window
.
fun
(
fileUrl
);
}
}
}
}
...
...
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