编辑器是这个样子的,js加载出来的编辑器
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prism-theme-one-light-dark@1.0.4/prism-onedark.min.css">
<link rel="stylesheet" href="https://su1018.cn/content/templates/Joe/write/css/joe.write.min.css">
<script>
window.JoeConfig = {
emojiAPI: 'https://su1018.cn/content/templates/Joe/write/json/emoji.json',
expressionAPI: 'https://su1018.cn/content/templates/Joe/write/json/expression.json',
characterAPI: 'https://su1018.cn/content/templates/Joe/write/json/character.json',
playerAPI: 'https://su1018.cn/content/templates/Joe/write/library/player.php?url=',
autoSave: 0,
themeURL: 'https://su1018.cn/content/templates/Joe/Joe/',
canPreview: false
}
</script>
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script>
<script src="https://su1018.cn/content/templates/Joe/write/parse/parse.min.js"></script>
<script src="https://su1018.cn/content/templates/Joe/write/dist/index.bundle.js?v=7.2.9"></script>
<script src="https://su1018.cn/content/templates/Joe/assets/js/joe.short.min.js?v=7.2.9"></script>
<textarea id="text" name="logcontent"></textarea>
编辑器是依靠以上加载出来的,加载出来后搞不懂怎么取textarea内容了,我这个取法不行,不加载编辑器纯textarea能取出来值,加载编辑器之后取不出来了
var name = document.getElementsByName("logcontent")[0].value;
求个取值的方法
总感觉是加载编辑器之后取得就不是textarea值了似的