UNPKG
zview-mobile-editor
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A WYSIWYG text editor base on html5 and vue
www.zuv.cc/zview-mobile-editor
zview/zview-mobile-editor
zview-mobile-editor
/
src
/
modules
/
link
/
dashboard.js
18 lines
(16 loc)
•
328 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
template
from
'./dashboard.html'
export
default
{ template,
data
(
){
return
{
url
:
null
} },
methods
: {
createLink
(
){
if
(!
this
.
url
) {
return
}
this
.
$parent
.
execCommand
(
'createLink'
,
this
.
url
)
this
.
url
=
null
} } }