[Vuejs]-Ckeditor5-vue preserve quill class

1👍

Solved, though not in the way I intended. I chose the route to preserve the class.
Which can be done by using the following plugin. I was just using the wrong key name.

// plugin.js
export default ( editor ) => {
  editor.conversion.attributeToAttribute( {
    model: {
      key: 'alignment',
      values: [ 'center' ]
    },
    view: {
      center: {
        key: 'class',
        value: 'ql-align-center'
      }
    }
  })
}

Leave a comment