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 @@ ...@@ -224,7 +224,8 @@
.done(function (data) { .done(function (data) {
$('#FroalaHtmlEditor').froalaEditor({ $('#FroalaHtmlEditor').froalaEditor({
key:'ukkyeD-11aB1gF-7C3uvxrpxB2G-7ol==', key:'ukkyeD-11aB1gF-7C3uvxrpxB2G-7ol==',
htmlRemoveTags: ['base'], htmlRemoveTags: [''],
htmlAllowedAttrs: ['.*'],
heightMin:800, heightMin:800,
htmlAllowedTags: _($.FroalaEditor.DEFAULTS.htmlAllowedTags).without('base'), htmlAllowedTags: _($.FroalaEditor.DEFAULTS.htmlAllowedTags).without('base'),
htmlAllowComments: false, htmlAllowComments: false,
...@@ -235,6 +236,10 @@ ...@@ -235,6 +236,10 @@
$('#SendEmail').click(function (e) { $('#SendEmail').click(function (e) {
e.preventDefault(); 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 EmailId = document.getElementById("EmailId").value;
var key = document.getElementById("KeyValue").value; var key = document.getElementById("KeyValue").value;
...@@ -247,7 +252,7 @@ ...@@ -247,7 +252,7 @@
traditional: true, traditional: true,
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
complete: function () { complete: function () {
$('#email_id').append(EmailId); $('#email_id').empty().append(EmailId);
$('#sent_to_email').show(); $('#sent_to_email').show();
document.getElementById("EmailId").value = "" 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