Commit 5f80d5d5 by Urvil Shah

Add the stricyt Check on the Content if empty get the code view, allow few more tag as well .

parent 30c631bd
Pipeline #7181 passed with stages
in 22 minutes 29 seconds
......@@ -224,7 +224,8 @@
.done(function (data) {
$('#FroalaHtmlEditor').froalaEditor({
key:'ukkyeD-11aB1gF-7C3uvxrpxB2G-7ol==',
htmlRemoveTags: ['base'],
htmlRemoveTags: [''],
htmlAllowedAttrs: ['.*'],
heightMin:800,
htmlAllowedTags: _($.FroalaEditor.DEFAULTS.htmlAllowedTags).without('base'),
htmlAllowComments: false,
......@@ -234,7 +235,11 @@
});
$('#SendEmail').click(function (e) {
e.preventDefault();
var Content = $('#FroalaHtmlEditor').froalaEditor('html.get');
var Content = $('#FroalaHtmlEditor').froalaEditor('html.get');
if (Content.length<1)
{
Content = $('#FroalaHtmlEditor').froalaEditor('codeView.get');
}
var EmailId = document.getElementById("EmailId").value;
var key = document.getElementById("KeyValue").value;
......@@ -246,8 +251,8 @@
dataType: "json",
traditional: true,
contentType: "application/json; charset=utf-8",
complete: function () {
$('#email_id').append(EmailId);
complete: function () {
$('#email_id').empty().append(EmailId);
$('#sent_to_email').show();
document.getElementById("EmailId").value = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment