froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 674 forks source link

how to call paragraphformat pre tag command from custom toolbar command option #3847

Closed Srinivasan-Natarajan closed 2 weeks ago

Srinivasan-Natarajan commented 4 years ago

code option normally present inside the paragraph format options. but i want the same functionality but not inside the paragraph format. it should be a direct option in toolbar. so i added the custom command. but in the custom command callback i want to call paragraphFormat with PRE tag option. is it possible?

in my toolbar buttons i didn't involve the paragraphFormat option. const toolbarButtons = [ 'bold', 'italic', 'underline', 'color', '|', 'formatOL', 'formatUL', '|', 'outdent', 'indent', '|', 'insertLink', 'insertImage', 'insertTable', '|', 'clearFormatting', 'resetFont', 'codeInsert' ];

ilyaskarim commented 2 weeks ago

We’re closing this issue due to inactivity. If you’re still experiencing this problem on the latest version of our editor, please feel free to reopen the issue and let us know. You can find details on the latest updates here: Froala Editor Changelog.