PHP Classes

File: public/js/tinymce/src/core/src/demo/js/demo/TinyMceDemo.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/core/src/demo/js/demo/TinyMceDemo.js   Download  
File: public/js/tinymce/src/core/src/demo/js/demo/TinyMceDemo.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,465 bytes
 

Contents

Class file image Download
/** * TinyMceDemo.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /*eslint no-console:0 */ define( 'tinymce.core.demo.TinyMceDemo', [ 'global!document', 'tinymce.core.EditorManager', 'tinymce.themes.modern.Theme' ], function (document, EditorManager, ModernTheme) { ModernTheme(); return function () { var textarea = document.createElement('textarea'); textarea.innerHTML = '<p>Bolt</p>'; textarea.classList.add('tinymce'); document.querySelector('#ephox-ui').appendChild(textarea); EditorManager.init({ //imagetools_cors_hosts: ["moxiecode.cachefly.net"], //imagetools_proxy: "proxy.php", //imagetools_api_key: '123', //images_upload_url: 'postAcceptor.php', //images_upload_base_path: 'base/path', //images_upload_credentials: true, skin_url: '../../../../skins/lightgray/dist/lightgray', setup: function (ed) { ed.addButton('demoButton', { type: 'button', text: 'Demo', onclick: function () { ed.insertContent('Hello world!'); } }); }, selector: "textarea.tinymce", theme: "modern", toolbar1: 'demoButton bold italic', menubar: false }); }; } );