UniSharp / laravel-ckeditor

This is a fork from the official CKEditor branch (standard edition), wrap it to laravel package.
Other
378 stars 143 forks source link

Hello, am trying to use FontSize #16

Closed kievo23 closed 7 years ago

kievo23 commented 7 years ago

Congratulations for the good work. Kindly am trying to input the font size.

kievo23 commented 7 years ago
$('textarea').ckeditor({
            filebrowserImageBrowseUrl: '/laravel-filemanager?type=Images',
            toolbar :
                [
                    { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
                    { name: 'editing', items: [ 'Scayt' ] },
                    { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
                    { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] },
                    { name: 'tools', items: [ 'Maximize' ] },
                    { name: 'document', items: [ 'Source' ] },
                    { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat','fontSize_sizes' ] },
                    { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
                    { name: 'styles', items: [ 'Styles', 'Format' ,'Font', 'FontSize'] }
                ]
          });

The last line 'Font', 'FontSize'

kievo23 commented 7 years ago

Well, I copied the contents of ckeditor package after extraction to public/vendor/unisharp/laravel-ckeditor/ The ckeditor.js was 2015 build so the new 2017 build worked.