forked from renrenio/renren-fast-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc89d85
commit dfff102
Showing
282 changed files
with
97,792 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<div class="mod-demo-ueditor"> | ||
<el-alert | ||
title="提示:" | ||
type="warning" | ||
:closable="false" | ||
style="margin-bottom: 10px;"> | ||
<div slot-scope="description"> | ||
<p class="el-alert__description">1. 此Demo只提供UEditor官方使用文档,入门部署和体验功能。具体使用请参考:http://fex.baidu.com/ueditor/</p> | ||
<p class="el-alert__description">2. 浏览器控制台报错“请求后台配置项http错误,上传功能将不能正常使用!”,此错需要后台提供上传接口方法(赋值给serverUrl属性)</p> | ||
</div> | ||
</el-alert> | ||
|
||
<script id="J_ueditorBox" class="ueditor-box" type="text/plain" style="width: 100%; height: 260px;">hello world!</script> | ||
|
||
<!-- 获取内容 --> | ||
<p><el-button @click="getContent()">获得内容</el-button></p> | ||
<el-dialog | ||
title="内容" | ||
:visible.sync="dialogVisible" | ||
:append-to-body="true"> | ||
{{ ueContent }} | ||
<span slot="footer" class="dialog-footer"> | ||
<el-button type="primary" @click="dialogVisible = false">确 定</el-button> | ||
</span> | ||
</el-dialog> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ueditor from 'ueditor' | ||
export default { | ||
data () { | ||
return { | ||
ue: null, | ||
ueContent: '', | ||
dialogVisible: false | ||
} | ||
}, | ||
mounted () { | ||
this.ue = ueditor.getEditor('J_ueditorBox', { | ||
// serverUrl: '', // 服务器统一请求接口路径 | ||
zIndex: 3000 | ||
}) | ||
}, | ||
methods: { | ||
getContent () { | ||
this.dialogVisible = true | ||
this.ue.ready(() => { | ||
this.ueContent = this.ue.getContent() | ||
}) | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<title></title> | ||
<style type="text/css"> | ||
*{color: #838383;margin: 0;padding: 0} | ||
html,body {font-size: 12px;overflow: hidden; } | ||
.content{padding:5px 0 0 15px;} | ||
input{width:210px;height:21px;line-height:21px;margin-left: 4px;} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="content"> | ||
<span><var id="lang_input_anchorName"></var></span><input id="anchorName" value="" /> | ||
</div> | ||
<script type="text/javascript" src="../internal.js"></script> | ||
<script type="text/javascript"> | ||
var anchorInput = $G('anchorName'), | ||
node = editor.selection.getRange().getClosedNode(); | ||
if(node && node.tagName == 'IMG' && (node = node.getAttribute('anchorname'))){ | ||
anchorInput.value = node; | ||
} | ||
anchorInput.onkeydown = function(evt){ | ||
evt = evt || window.event; | ||
if(evt.keyCode == 13){ | ||
editor.execCommand('anchor', anchorInput.value); | ||
dialog.close(); | ||
domUtils.preventDefault(evt) | ||
} | ||
}; | ||
dialog.onok = function (){ | ||
editor.execCommand('anchor', anchorInput.value); | ||
dialog.close(); | ||
}; | ||
$focus(anchorInput); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.