This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var loadFile = function(event) { | |
var output = document.getElementById('id_viewimg'); | |
output.src = URL.createObjectURL(event.target.files[0]); | |
}; | |
</script> | |
<input type="file" onchange="loadFile(event)"/> | |
<img id="id_viewimg" src="images/photo.gif" name="preview" border="0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKEDITOR.plugins.add( 'Cy-GistInsert', { | |
icons: 'Cy-GistInsert', | |
init: function( editor ) { | |
editor.addCommand( 'cmd-insertgist1', { // adding the command | |
exec: function( editor ) { | |
editor.insertHtml( 'Test from plugin Cy-GistInsert cmd-insertgist1 ' ); // at now just testing purpose. | |
} | |
}); | |
editor.ui.addButton( 'Cy-GistInsert', { | |
label: 'Insert GitHub Gist', // button's tooltip text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
file name : Cy-GistInsertDlg.js | |
CKEditor Plugin "Cy-GistInsert" Dialog | |
by igotit. 2016-08-28. | |
*/ | |
CKEDITOR.dialog.add('Cy-GistInsertDlg', function (editor) { | |
return { | |
title: 'Cy-GistInsert', // text shown titlebar. | |
minWidth: 400, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
CKEditor Plugin | |
name : Cy-GistInsert. | |
2016-08-27.started by igotit. | |
*/ | |
CKEDITOR.plugins.add( 'Cy-GistInsert', { | |
icons: 'Cy-GistInsert', | |
init: function( editor ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
file name : Cy-GistInsertDlg.js | |
CKEditor Plugin "Cy-GistInsert" Dialog | |
2016-08-28. started by igotit. | |
*/ | |
CKEDITOR.dialog.add('Cy-GistInsertDlg', function (editor) { | |
return { | |
title: 'Cy-GistInsert', // text shown titlebar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
CKEDITOR.replace('editor1',{ | |
contentsCss: '../CSS/ckeditor_specific.css', // apply my own css. not default contents.css | |
width: 660, // contents width final web page(600) + editor margin(20)*2 + vertical scroll bar(20) | |
height: 500 | |
}); | |
</script> | |
// detail about contentsCss -> http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-contentsCss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cke_show_borders { | |
overflow-y: scroll; // vertical scrollbar | |
// overflow-x: scroll; // horizontal scrollbar | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>my_title</title> | |
<link>http://my_url</link> | |
<description>my_description</description> | |
<item> | |
<title>my_item_title</title> | |
<link>http://my_item_link</link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<link rel="alternate" type="application/rss+xml" href="http://my_url/rss.xml" title="title"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="javascript"> | |
function js_time() | |
{ | |
var today = new Date(); | |
return today.toUTCString(); | |
} | |
</script> | |
// if in asp |
OlderNewer