init
This commit is contained in:
16
public/tinymce/src/plugins/codesample/demo/html/demo.html
Normal file
16
public/tinymce/src/plugins/codesample/demo/html/demo.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Plugin: codesample Demo Page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>Plugin: codesample Demo Page</h2>
|
||||
<div id="ephox-ui">
|
||||
<textarea name="" id="" cols="30" rows="10" class="tinymce"></textarea>
|
||||
<div class="tinymce">Inline editor</div>
|
||||
</div>
|
||||
<script src="../../../../../js/tinymce/tinymce.js"></script>
|
||||
<script src="../../../../../scratch/demos/plugins/codesample/demo.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
34
public/tinymce/src/plugins/codesample/demo/ts/demo/Demo.ts
Normal file
34
public/tinymce/src/plugins/codesample/demo/ts/demo/Demo.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Demo.js
|
||||
*
|
||||
* Released under LGPL License.
|
||||
* Copyright (c) 1999-2016 Ephox Corp. All rights reserved
|
||||
*
|
||||
* License: http://www.tinymce.com/license
|
||||
* Contributing: http://www.tinymce.com/contributing
|
||||
*/
|
||||
|
||||
declare let tinymce: any;
|
||||
|
||||
tinymce.init({
|
||||
selector: 'textarea.tinymce',
|
||||
theme: 'modern',
|
||||
skin_url: '../../../../../js/tinymce/skins/lightgray',
|
||||
plugins: 'codesample code',
|
||||
toolbar: 'codesample code',
|
||||
codesample_content_css: '../../../../../js/tinymce/plugins/codesample/css/prism.css',
|
||||
height: 600
|
||||
});
|
||||
|
||||
tinymce.init({
|
||||
selector: 'div.tinymce',
|
||||
inline: true,
|
||||
theme: 'modern',
|
||||
skin_url: '../../../../../js/tinymce/skins/lightgray',
|
||||
plugins: 'codesample code',
|
||||
toolbar: 'codesample code',
|
||||
codesample_content_css: '../../../../../js/tinymce/plugins/codesample/css/prism.css',
|
||||
height: 600
|
||||
});
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user