formattingButtons.js 354 B

1234567891011121314151617
  1. import App from '../../../base'
  2. export default App.directive('formattingButtons', () => ({
  3. scope: {
  4. buttons: '=',
  5. opening: '=',
  6. isFullscreenEditor: '=',
  7. },
  8. link(scope, element, attrs) {
  9. scope.showMore = false
  10. scope.shownButtons = scope.buttons
  11. scope.overflowedButtons = []
  12. },
  13. templateUrl: 'formattingButtonsTpl',
  14. }))