PHP Classes

File: public/js/tinymce/src/plugins/visualblocks/src/main/js/core/VisualBlocks.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/visualblocks/src/main/js/core/VisualBlocks.js   Download  
File: public/js/tinymce/src/plugins/visualblocks/src/main/js/core/VisualBlocks.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: 978 bytes
 

Contents

Class file image Download
/** * VisualBlocks.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 */ define( 'tinymce.plugins.visualblocks.core.VisualBlocks', [ 'tinymce.plugins.visualblocks.api.Events', 'tinymce.plugins.visualblocks.api.Settings', 'tinymce.plugins.visualblocks.core.LoadCss' ], function (Events, Settings, LoadCss) { var toggleVisualBlocks = function (editor, pluginUrl, enabledState) { var dom = editor.dom; var contentCss = Settings.getContentCss(editor); LoadCss.load(editor.getDoc(), contentCss ? contentCss : pluginUrl + '/css/visualblocks.css'); dom.toggleClass(editor.getBody(), 'mce-visualblocks'); enabledState.set(!enabledState.get()); Events.fireVisualBlocks(editor, enabledState.get()); }; return { toggleVisualBlocks: toggleVisualBlocks }; } );