Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Urvil Shah
/
MobEasyEditor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5f80d5d5
authored
Mar 28, 2018
by
Urvil Shah
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
Mobile.Search.Web/Views/Template/FroalaIndex.cshtml
Mobile.Search.Web/Views/Template/FroalaIndex.cshtml
View file @
5f80d5d5
...
...
@@ -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
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment