Skip to content

Commit

Permalink
Merge pull request #102 from Zextras/support-inline-image
Browse files Browse the repository at this point in the history
feat: added inline support in composer
  • Loading branch information
gnekoz authored Aug 2, 2022
2 parents 384cfe7 + e861779 commit d5ac5cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/integrations/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,22 @@ const Composer: FC<ComposerProps> = ({
initialValue={initialValue}
value={value}
init={{
skin_url: `${baseAssetsUrl}/tinymce/skins/ui/oxide`,
content_css: `${baseAssetsUrl}/tinymce/skins/content/default/content.css`,
min_height: 350,
menubar: false,
statusbar: false,
branding: false,
resize: true,
inline,
object_resizing: 'img',
plugins: [
'advlist',
'autolink',
'lists',
'link',
'image',
'edit',
'file',
'charmap',
'print',
'preview',
Expand All @@ -120,7 +122,7 @@ const Composer: FC<ComposerProps> = ({
toolbar: inline
? false
: // eslint-disable-next-line max-len
'fontselect fontsizeselect formatselect | bold italic underline strikethrough | removeformat code | alignleft aligncenter alignright alignjustify | forecolor backcolor | bullist numlist outdent indent | ltr rtl',
'fontselect fontsizeselect formatselect | bold italic underline strikethrough | removeformat code | alignleft aligncenter alignright alignjustify | forecolor backcolor | bullist numlist outdent indent | ltr rtl | insertfile image ',
quickbars_insert_toolbar: inline ? 'bullist numlist' : '',
quickbars_selection_toolbar: inline
? 'bold italic underline | forecolor backcolor | removeformat | quicklink'
Expand Down

0 comments on commit d5ac5cb

Please sign in to comment.