6.0.0 • Published 2 years ago

@ubuilder/tinyeditor v6.0.0

Weekly downloads
-
License
LGPL-2.1
Repository
-
Last release
2 years ago

UBuilder TinyEditor

UBuilder Editor based on TinyMCE 6 on Vue 3.

default usage

<script setup>
import { TinyEditor } from '@ubuilder/tinyeditor';
import { ref } from 'vue';

const content = ref('');
<template>
  <TinyEditor v-model="content" />
</template>

Props and Emits

All props except disabled and readonly are NOT REACTIVE. Initialization only. initOptions overrides all options.

withDefaults(defineProps<{
  modelValue?: string
  documentBaseUrl?: string
  skinUrl?: string
  contentCssUrl?: string
  height?: number | string
  disabled?: boolean | 'true' | 'false' | 'disabled'
  readonly?: boolean | 'true' | 'false' | 'readonly'
  imageUploadUrl?: string
  imageUploadHandler?: RawEditorOptions['images_upload_handler']
  initOptions?: RawEditorOptions
}>(), {
  modelValue: '',
  documentBaseUrl: undefined,
  skinUrl: 'tiny/skins/ui/oxide',
  contentCssUrl: undefined,
  height: '20em',
  disabled: false,
  readonly: false,
  imageUploadUrl: undefined,
  imageUploadHandler: undefined,
  initOptions: () => ({}),
});

defineEmits<{
  (e: 'update:modelValue', value: string): void
}>();
6.0.0

2 years ago

0.3.2

2 years ago

0.3.3

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago