JacobFitzp/nova-canvas

View on GitHub
resources/js/modules/tools/History/Redo.js

Summary

Maintainability
A
2 hrs
Test Coverage
import { ArrowUturnRightIcon } from '@heroicons/vue/24/outline'
import Standard from '../../../components/Tools/Standard.vue'

export default {
    icon: ArrowUturnRightIcon,
    component: Standard,
    apply (editor) {
        editor.chain().focus().redo().run()
    },
    disabled (editor) {
        return !editor.can().redo()
    }
}