1.5.0 • Published 3 years ago

vue-publisher v1.5.0

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

vue-publisher 🗞️

A pre-packaged zero-config collection of amazing tools for managing content.

This package includes:

  • TipTap
  • Reader (Original)
  • ListEditor (Original)

Please go support tha packages' respective creators.

Install

Get vue-publisher as an NPM package:

npm i -S vue-publisher

Usage

The goal here is to keep everything as simple as possible, in fact, with just 2 components you can have a publisher and a reader to render your finished article from its native JSON form.

<template>
  <div id="app">
    <Publisher v-model="result" />
    <Reader v-model="result" />
  </div>
</template>

<script lang="ts">
import Vue from 'vue';
import { Publisher, Reader } from 'vue-publisher';

export default Vue.extend({
  name: 'ExampleApp',
  data(){
    return {
      result: {},
    }
  },
  components: {
    Publisher,
    Reader,
  }
});
</script>

Customization

These components provide useful CSS classes to customize the look of your editor. The class structure is as follows:

// The editor's internal container
.editor {
    // The commands container
    .commands {
        // The single command button
        button {
            background-color: red;
            // A button when its property is activated
            &.is-active {
                background-color: green;
            }
        }
    }
    // The editor itself
    .content {
        color: black;
    }
}

// The external component
.reader {
    // The content
    .content {
        color: black;
    }
}

Conclusion

This package is just for a quick implementation of the TipTap editor for Vue.js.

So, please, feel free to check them!


Mini-project by Mattia Sinisi

1.5.0

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago