Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-quill-minimum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodejs-modules
vue-quill-minimum
Commits
85e09124
Commit
85e09124
authored
5 years ago
by
Jörg Richter
Browse files
Options
Downloads
Patches
Plain Diff
Make Quill instance available as `quill` prop
See
dmx-platform/dmx-platform#198
parent
59a26f8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#5982
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Quill.vue
+11
-6
11 additions, 6 deletions
src/Quill.vue
with
11 additions
and
6 deletions
src/Quill.vue
+
11
−
6
View file @
85e09124
...
...
@@ -13,6 +13,12 @@ export default {
props
:
[
'
value
'
,
'
options
'
],
data
()
{
return
{
quill
:
undefined
// quill instance
}
},
created
()
{
// DM5 Webclient TODO: why is this component sometimes instantiated in detail panel "info" mode?
// console.log('quill created', init, this.$store.state.details.mode)
...
...
@@ -24,13 +30,12 @@ export default {
mounted
()
{
// console.log('quill mounted')
const
quill
=
new
Quill
(
this
.
$refs
.
container
,
this
.
options
)
quill
.
pasteHTML
(
this
.
value
)
quill
.
on
(
'
text-change
'
,
()
=>
{
const
html
=
quill
.
root
.
innerHTML
this
.
$emit
(
'
input
'
,
html
)
this
.
quill
=
new
Quill
(
this
.
$refs
.
container
,
this
.
options
)
this
.
quill
.
pasteHTML
(
this
.
value
)
this
.
quill
.
on
(
'
text-change
'
,
()
=>
{
this
.
$emit
(
'
input
'
,
this
.
quill
.
root
.
innerHTML
)
})
this
.
$emit
(
'
quill-ready
'
,
quill
)
this
.
$emit
(
'
quill-ready
'
,
this
.
quill
)
}
}
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment