Last active
January 19, 2016 18:51
-
-
Save msrivastav13/3b5b8ce101c2e0716f18 to your computer and use it in GitHub Desktop.
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
<apex:page standardStylesheets="false" showHeader="false" sidebar="false"> | |
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<head> | |
<apex:stylesheet value="{!URLFOR($Resource.SLDS0102, 'assets/styles/salesforce-lightning-design-system-vf.css')}" /> | |
<apex:includeLightning /> | |
</head> | |
<body> | |
<div class="slds"> | |
<div class="slds-grid slds-wrap"> | |
<!--Action Buttons --> | |
<div class="slds-col slds-size--1-of-1"> | |
<a href="#" class="slds-button slds-button--neutral slds-float--right" id="callbtn" onclick="sendEmail();">Send Email</a> | |
</div> | |
<div class="slds-col slds-size--1-of-1 slds-m-vertical--small"> | |
<h2 class="slds-text-heading--medium">Send Email</h2> | |
</div> | |
<div class="slds-col slds-size--1-of-1" id="messagewrapper"> | |
</div> | |
<div class="slds-col slds-size--1-of-1"> | |
<div class="slds-form-element" id="richTextEditor"> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script> | |
var richtext; | |
$Lightning.use("c:RichtextApp", function() { | |
$Lightning.createComponent("c:Richtextcmp", {}, | |
"richTextEditor", | |
function(cmp) { | |
// do some stuff | |
richtext = cmp; | |
}); | |
}); | |
function sendEmail() { | |
console.log(richtext.find("inputRT").get("v.value")); | |
} | |
</script> | |
</body> | |
</html> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment