Skip to content

Instantly share code, notes, and snippets.

Akzhan Abdulin akzhan

Block or report user

Report or block akzhan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jwysiwyg-insert-html.js
$('#wysiwyg').wysiwyg('insertHtml', '<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>');
View jwysiwyg-insert-image.js
$('#wysiwyg').wysiwyg('insertImage', 'http://domain.com/image.png');
View jwysiwyg-insert-link.js
View jwysiwyg-quick-start.html
<link rel="stylesheet" type="text/css" href="jwysiwyg/wysiwyg.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jwysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
// And now convert textarea #wysiwyg into Wysywyg editor.
$('#wysiwyg').wysiwyg();
</script>
View jwysiwyg-customization.html
<link rel="stylesheet" type="text/css" href="jwysiwyg/wysiwyg.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jwysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
(function($)
{
$('#wysiwyg').wysiwyg({
controls: {
strikeThrough : { visible : true },
View jwysiwyg-set-content.js
$('#wysiwyg').wysiwyg('setContent', '<p>Replacing text</p>');
View jwysiwyg-custom-stylesheet.html
<link rel="stylesheet" type="text/css" href="jwysiwyg/wysiwyg.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jwysiwyg/jquery.wysiwyg.js"></script>
<script type="text/javascript">
$('#wysiwyg').wysiwyg({css: "/mystyle.css"});
</script>
View jwysiwyg.events.js
$('#wysiwyg').wysiwyg('document').click(function(e)
{
e.preventDefault();
alert('You have clicked jWysiwyg content!');
});
View chef-client.0.8.10.CHEF-1161.patch
--- lib/chef/rest.rb 2010-05-19 14:25:18.000000000 +0400
+++ lib/chef/rest.rb 2010-05-19 14:26:57.000000000 +0400
@@ -178,23 +178,20 @@
end
http.read_timeout = Chef::Config[:rest_timeout]
+ json_body = data ? data.to_json : nil
headers = @default_headers.merge(headers)
-
You can’t perform that action at this time.