PHP Classes

File: public/js/tinymce/src/plugins/fullpage/src/main/js/ui/Dialog.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/fullpage/src/main/js/ui/Dialog.js   Download  
File: public/js/tinymce/src/plugins/fullpage/src/main/js/ui/Dialog.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,188 bytes
 

Contents

Class file image Download
/** * Dialog.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.fullpage.ui.Dialog', [ 'tinymce.core.util.Tools', 'tinymce.plugins.fullpage.core.Parser' ], function (Tools, Parser) { var open = function (editor, headState) { var data = Parser.htmlToData(editor, headState.get()); editor.windowManager.open({ title: 'Document properties', data: data, defaults: { type: 'textbox', size: 40 }, body: [ { name: 'title', label: 'Title' }, { name: 'keywords', label: 'Keywords' }, { name: 'description', label: 'Description' }, { name: 'robots', label: 'Robots' }, { name: 'author', label: 'Author' }, { name: 'docencoding', label: 'Encoding' } ], onSubmit: function (e) { var headHtml = Parser.dataToHtml(editor, Tools.extend(data, e.data), headState.get()); headState.set(headHtml); } }); }; return { open: open }; } );