Skip to content

Commit 0dc1c5d

Browse files
authored
update editor.js
1 parent adf9c1f commit 0dc1c5d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

editor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ tinymce.init({
6767
function saveContent(info) {
6868
let value = tinymce.activeEditor.getContent({ format: 'text' });
6969
var type = 'text'
70-
if (!!info) {
71-
if (!!info.type) {
70+
if (info) {
71+
if (info.type) {
7272
type = info.type
7373
if (type === 'image') {
74-
if (!!info.content) {
74+
if (info.content) {
7575
value = info.content
7676
}
7777
}

0 commit comments

Comments
 (0)