How to use the tinymce.get function in tinymce

To help you get started, we’ve selected a few tinymce examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IceInTheFire / timotaoshu / iview-admin-dev / src / views / home / bookContainer.vue View on Github external
onCtrlSSave(){
                // vm.$Message.info("正在保存中");
                if(this.loading) return;
                let content = tinymce.get('tinymceEditer').getContent();
                let contentArr = content.split("<p></p>");
                let i = 0, length = contentArr.length;
                content = "";
                for(i; i")[1] :'';
                    } else {
                        content += value ? value.split("<p>")[1] + "<br>" : '';
                    }
                }
                let obj = {
                    params: {
                        container: content,
                        catalogId:this.params.catalogId,</p>
github IceInTheFire / timotaoshu / iview-admin-dev / src / views / home / bookContainer.vue View on Github external
initTinymce () {
                if(tinymce.get('tinymceEditer')) {
                    // if(this.container){
                    this.loading = false;
                    let tinymceDom = tinymce.get('tinymceEditer').dom.doc;
                    tinymceDom.documentElement.scrollTop = tinymceDom.body.scrollTop = 0;
                    tinymce.get('tinymceEditer').setContent(this.container);
                    // }
                } else {
                    this.$nextTick(() => {
                        let vm = this;
                        let height = document.body.offsetHeight - 300;
                        tinymce.init({
                            selector: '#tinymceEditer',
                            branding: false,
                            elementpath: false,
                            height: height,
                            language: 'zh_CN.GB2312',
github QDMarkMan / vue-base-template / src / components / Editor.vue View on Github external
destroyed() {
    if (tinymce.get(this.id)) {
      tinymce.get(this.id).destroy()
    }
  }
}
github IceInTheFire / timotaoshu / iview-admin-dev / src / views / home / bookContainer.vue View on Github external
beforeDestroy() {
            tinymce.get('tinymceEditer') && tinymce.get('tinymceEditer').destroy();
        },
        destroyed () {
github QDMarkMan / vue-base-template / src / components / Editor.vue View on Github external
destroyed() {
    if (tinymce.get(this.id)) {
      tinymce.get(this.id).destroy()
    }
  }
}
github keystonejs / keystone-classic / fields / types / html / HtmlField.js View on Github external
removeWysiwyg (state) {
		removeTinyMCEInstance(tinymce.get(state.id));
		this.setState({ wysiwygActive: false });
	},