This file contains hidden or 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 src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script> | |
<script> | |
tinymce.init({ | |
selector: 'textarea', | |
images_upload_url: "TinyMceUpload", | |
}); | |
function upload(form) { | |
tinymce.activeEditor.uploadImages(function (success) { | |
form.submit(); |
This file contains hidden or 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
<div class="form-group"> | |
<label class="control-label" for="url">URL</label> | |
<input class="form-control" type="url" id="url" placeholder="https://api.example.com/" /> | |
<p class="help-block" id="url-help"></p> | |
</div> |
This file contains hidden or 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
public void Main() | |
{ | |
var template = "Hello {{Name}}, how are you?"; | |
var model = new { Name = "Alice" }; | |
var output = TemplateEngine.Execute(template, model); | |
// Output: "Hello Alice, how are you?" | |
} |
NewerOlder