formattingButtons.js 395 B

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