We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf9c1f commit 0dc1c5dCopy full SHA for 0dc1c5d
1 file changed
editor.js
@@ -67,11 +67,11 @@ tinymce.init({
67
function saveContent(info) {
68
let value = tinymce.activeEditor.getContent({ format: 'text' });
69
var type = 'text'
70
- if (!!info) {
71
- if (!!info.type) {
+ if (info) {
+ if (info.type) {
72
type = info.type
73
if (type === 'image') {
74
- if (!!info.content) {
+ if (info.content) {
75
value = info.content
76
}
77
0 commit comments