Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
284f851f
Commit
284f851f
authored
Sep 05, 2019
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑器传值
parent
87943b08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ckeditor.vue
src/components/ckeditor.vue
+5
-2
editor.vue
src/components/editor.vue
+2
-1
No files found.
src/components/ckeditor.vue
View file @
284f851f
<
template
>
<
template
>
<div>
<div>
<textarea
id=
"editor"
rows=
"10"
cols=
"80"
></textarea>
<textarea
id=
"editor"
rows=
"10"
cols=
"80"
v-model=
'value'
></textarea>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
},
},
tokenUrl
:
{
tokenUrl
:
{
default
:
''
default
:
''
},
value
:
{
require
:
true
,
default
:
''
}
}
},
},
data
()
{
data
()
{
...
@@ -35,7 +39,6 @@
...
@@ -35,7 +39,6 @@
},
},
computed
:
{},
computed
:
{},
methods
:
{
methods
:
{
init
()
{
init
()
{
CKEDITOR
.
replace
(
'
editor
'
,
{
CKEDITOR
.
replace
(
'
editor
'
,
{
height
:
this
.
height
,
height
:
this
.
height
,
...
...
src/components/editor.vue
View file @
284f851f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<!-- bidirectional data binding(双向数据绑定) -->
<!-- bidirectional data binding(双向数据绑定) -->
<Modal
v-model=
'modal'
fullscreen
>
<Modal
v-model=
'modal'
fullscreen
>
<editor
@
getValue=
'getInfo'
:uploadUrl=
'uploadUrl'
></editor>
<editor
@
getValue=
'getInfo'
:uploadUrl=
'uploadUrl'
:value=
'value'
></editor>
<div
slot=
'footer'
>
<div
slot=
'footer'
>
<Button
@
click=
'getInfo'
>
获取内容
</Button>
<Button
@
click=
'getInfo'
>
获取内容
</Button>
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
content
:
'
<h2>I am Example</h2>
'
,
content
:
'
<h2>I am Example</h2>
'
,
content1
:
'
<h2>I am Example</h2>
'
,
content1
:
'
<h2>I am Example</h2>
'
,
uploadUrl
:
''
,
uploadUrl
:
''
,
value
:
'
22
'
,
editorOption
:
{
editorOption
:
{
// some quill options
// some quill options
}
}
...
...
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