Browse Source

Removed the highlight class once clicking Preview

pull/13499/head
malik masis 4 years ago
parent
commit
2160835507
  1. 3
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/create.js
  2. 3
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/update.js
  3. 3
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/create.js
  4. 5
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/update.js

3
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/create.js

@ -342,6 +342,9 @@ $(function () {
$.post("/CmsKitCommonWidgets/ContentPreview", { content: content }, function (result) {
editor.setHTML(result);
var highllightedText = $('#ContentEditor').find('.toastui-editor-md-preview-highlight');
highllightedText.removeClass('toastui-editor-md-preview-highlight');
});
}
else if ($(this).attr("aria-label") == 'Write') {

3
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/update.js

@ -263,6 +263,9 @@ $(function () {
$.post("/CmsKitCommonWidgets/ContentPreview", { content: content }, function (result) {
editor.setHTML(result);
var highllightedText = $('#ContentEditor').find('.toastui-editor-md-preview-highlight');
highllightedText.removeClass('toastui-editor-md-preview-highlight');
});
}
else if ($(this).attr("aria-label") == 'Write') {

3
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/create.js

@ -186,6 +186,9 @@ $(function () {
$('head').append('<style id="editor-preview-style">' + style + '</style>');
editor.setHTML(result);
var highllightedText = $('#ContentEditor').find('.toastui-editor-md-preview-highlight');
highllightedText.removeClass('toastui-editor-md-preview-highlight');
});
}
else if ($(this).attr("aria-label") == 'Write'){

5
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/update.js

@ -156,6 +156,9 @@ $(function () {
$('head').append('<style id="editor-preview-style">' + style + '</style>');
editor.setHTML(result);
var highllightedText = $('#ContentEditor').find('.toastui-editor-md-preview-highlight');
highllightedText.removeClass('toastui-editor-md-preview-highlight');
});
}
else if ($(this).attr("aria-label") == 'Write') {
@ -163,7 +166,7 @@ $(function () {
editor.setMarkdown(retrievedObject);
}
});
function createAddWidgetButton() {
const button = document.createElement('button');

Loading…
Cancel
Save