Skip to content

Fixes #2605 Improve iframe on react quill textarea#2641

Merged
mbarto merged 8 commits intogeosolutions-it:masterfrom
allyoucanmap:iframe-mod
Mar 12, 2018
Merged

Fixes #2605 Improve iframe on react quill textarea#2641
mbarto merged 8 commits intogeosolutions-it:masterfrom
allyoucanmap:iframe-mod

Conversation

@allyoucanmap
Copy link
Copy Markdown
Contributor

Description

Added quill module to improve resize and editing of iframe components.

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Feature

What is the current behavior? (You can also link to an open issue here)
Currently iframe/video aren't resizable and editable on react quill

What is the new behavior?
Now iframe/video are resizable and editable on react quill

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 26, 2018

Coverage Status

Coverage decreased (-0.09%) to 80.783% when pulling aff21f4 on allyoucanmap:iframe-mod into 283d06f on geosolutions-it:master.

Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check if you can increase test coverage.


return {
ResizeModule,
Video,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export iframe

const {ResizeModule, Video, toolbarConfig} = require('../../../misc/quillmodules/ResizeModule')(Quill);

Quill.register({
'formats/video': Video,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import Iframe, explicit why formats/video is needed

- Added resize on iframe
- Added new Video format
- Basic toolbar configuration of container
- exported as function to use current Quill (not window.Quill)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc somehow to use formats/video

@ghost ghost removed the pending review label Feb 26, 2018
Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quillmodules folder should go in another directory (it is not a coponent). But may be ok for the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve iframe on react quill textarea

4 participants