var editor = new SnapEditor.InPlace("description", { toolbar: { items: [ "styleBlock", "|", "p", "|", "bold", "italic", "underline", "|", "alignment", "|", "alignLeft", "alignCentre", "alignRight", "alignJustify", "|", "orderedList", "unorderedList", "indent", "outdent", "|", "link", "table", "horizontalRule" ] } ,snap: false ,onSave: function (e) { var isSuccess = true; html = e.html; DoSave(); return isSuccess || "Error"; } }); editor.on("snapeditor.ready", function (e) { window.setTimeout(function(){ $('.snapeditor_toolbar_floating').css('z-index',12000); $('.snapeditor_toolbar_menu').css('z-index',12001); $('.snapeditor_dialog').css('z-index',12010); },200); });var editor = new SnapEditor.InPlace("description", { path: "/assets/snapeditor", toolbar: { items: [ "styleBlock", "|", "bold", "italic", "underline", "|", "alignLeft", "alignCentre", "alignRight", "alignJustify", "|", "orderedList", "unorderedList", "indent", "outdent", "|", "link", "table", "horizontalRule", "|" ], } ,snap: false ,onSave: function (e) { var isSuccess = true; html = e.html; DoSave(); return isSuccess || "Error"; } ,onUnsavedChanges: function (e) { e.api.execAction("save"); } }); editor.on("snapeditor.ready", function (e) { window.setTimeout(function(){ $('.snapeditor_toolbar_component').css('z-index',12000); $('.snapeditor_toolbar_frame a').click(function(e){ $('.snapeditor_toolbar_component').css('z-index',12000); $('.snapeditor_dialog').css('z-index',12000); }) },200); });SnapEditor.zIndexBase = 100; // default