},
setContentMarkdown: function() {
- const $this = this
- if(this.undo.states[this.getCurrentPage()] !== undefined || this.undo.states[this.getCurrentPage()] === null) {
+ if(this.undo.states[this.getCurrentPage()] !== undefined) {
const state = this.undo.states[this.getCurrentPage()]
- const lastKey = state.length;
+ const lastKey = state.length - 1;
this.editor.setMarkdown(state[lastKey])
this.editor.moveCursorToStart(true)
}else {
this.states[this.markdowneditor.getCurrentPage()] = [
this.markdowneditor.contentMarkdown
];
- console.log('ok',this.states,this.markdowneditor.editor.getMarkdown(),'ok')
}
let cs = this.markdowneditor.editor.getMarkdown();
margin: 0 3px
text-align: center
color: #5d5d5d
+ &.disabled
+ color: #bbb
+ pointer-events: none
svg
position: relative
top: 1px
@php
- $content = "ok";
$fbdata=$fluidbook->getPageData()->getRawData();
$fbdata['settings']['pages']=$fbdata['pages']=$fluidbook->getPagesNumber();
$fbdata['settings']['imageFormat']=$fluidbook->getImageFormat();
@foreach($filesdata as $key => $data)
@if(strstr($key,".md"))
MARKDOWN_DATA["{{explode('.',$key)[0]}}"] = `{!! $data !!}`;
- console.log(MARKDOWN_DATA)
@endif
@endforeach
</script>