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
<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> |
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
<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 }, |
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
$('#wysiwyg').wysiwyg('insertImage', 'http://domain.com/image.png'); |
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
$('#wysiwyg').wysiwyg('insertHtml', '<table><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></table>'); |
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
$('#wysiwyg').wysiwyg('createLink', 'http://google.com/'); |
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
$('#wysiwyg').wysiwyg('getContent'); |
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
$('#wysiwyg').wysiwyg('setContent', '<p>Replacing text</p>'); |
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
<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> |
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
$('#wysiwyg').wysiwyg('document').click(function(e) | |
{ | |
e.preventDefault(); | |
alert('You have clicked jWysiwyg content!'); | |
}); |
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
--- 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) | |
- |
OlderNewer