}
}
+ if (!isMarkdown) {
+ $scope.editorChange = function() {};
+ }
+
/**
* Start the AutoSave loop, Checks for content change
* before performing the costly AJAX request.
if (isMarkdown) data.markdown = $scope.editContent;
- console.log(data.markdown);
-
$http.put('/ajax/page/' + pageId + '/save-draft', data).then((responseData) => {
$scope.draftText = responseData.data.message;
if (!$scope.isNewPageDraft) $scope.isUpdateDraft = true;