Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
399 views
in Technique[技术] by (71.8m points)

javascript - Ckeditor vue - Cannot read property 'getSelection' of undefined

I have 3 section. every time I clicked on any section ckeditor will be locked and has log

Cannot read property 'getSelection' of undefined

when I clicked on the first it worked like a charm. the problem was after clicking on the 2nd, 3rd.

Vue.use( CKEditor );  
var app = new Vue({

el: '#app',
data: {
    panel:1,
    role:'legal',
    targetDetail:'',
    editor: '',
    editorData: '',
    editorConfig: {
        contentsLangDirection:'rtl',
        language: 'fa',
    },
    })
     <form class="mb-4">
                        <div v-if="panel == 1">
                            <ckeditor class="editors" id="editor1" :editor="editor" v-model="targetPlanDetail" :config="editorConfig"></ckeditor>
                        </div>
                        <div v-if="panel == 2">

                            <ckeditor class="editors" id="editor2" :editor="editor" v-model="whyPlanDetail" :config="editorConfig"></ckeditor>
                      
                        </div>
                        <div v-if="panel == 3">
                            <ckeditor class="editors" id="editor3" :editor="editor" v-model="whyPlanDetail" :config="editorConfig"></ckeditor>
                 
                        </div>

                    </form>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...