Skip to content

Instantly share code, notes, and snippets.

View gregveres's full-sized avatar

Greg Veres gregveres

View GitHub Profile
@gregveres
gregveres / line-height.ts
Created May 4, 2022 12:20
line-heights for tiptap 2
import { Extension } from "@tiptap/core";
export interface LineHeightOptions {
types: string[];
heights: string[];
defaultHeight: string;
}
declare module "@tiptap/core" {
interface Commands<ReturnType> {
@gregveres
gregveres / back-color.ts
Created May 3, 2022 23:26
background-color for tiptap 2
import { Extension } from "@tiptap/core";
import "@tiptap/extension-text-style";
export type ColorOptions = {
types: string[];
};
declare module "@tiptap/core" {
interface Commands<ReturnType> {
backColor: {
@gregveres
gregveres / font-size.ts
Created May 3, 2022 22:34
font-size for tiptap 2
import { Extension } from "@tiptap/core";
import "@tiptap/extension-text-style";
export type FontSizeOptions = {
types: string[];
};
declare module "@tiptap/core" {
interface Commands<ReturnType> {
fontSize: {
<script lang="ts">
import { convertDayStringToDate, formatDate, monthDay } from '@helpers/DateFormatter';
import { defineComponent, ref } from '@vue/composition-api';
import { VHover } from 'vuetify/lib';
export default defineComponent({
name: 'VDateTimePicker',
components: { VHover },
props: {
date: {
type: String,