Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom WYSIWYG editor for only image and its resizing icons - WYSIWYG #1457

Open
sac10nikam opened this issue Dec 24, 2024 · 2 comments
Open

Comments

@sac10nikam
Copy link

I have one requirement where I just want to keep an image icon and that too in the center of the textarea.
And keep the 4 icons which are used for image resizing.. after selecting the image..

Any suggestions?

I tried to pass below given properties but no luck..
I am following - https://formio.github.io/formio.js/app/examples/wysiwyg.html

components: [
{
type: 'textarea',
label: 'Upload an Image',
wysiwyg: {
theme: 'snow',
// modules: {
// toolbar: false,
// },
modules: {
toolbar: [
['image'],
],
},
placeholder: 'Upload an image...',
},
validate: {
required: true
},
key: 'content',
input: true,
inputType: 'text'
},
];

Any example of https://formio.github.io/formio.js/app/examples/custombuilder.html for the WYSIWYG editor

@sac10nikam
Copy link
Author

@jpuri ^^ && @mathieumg

@sac10nikam
Copy link
Author

@jpuri @mathieumg
I have managed to have only image field. But I want other fields for alignment of the image. In the current editor when we hover/select an image then these options to resize an image are coming.

I want these icons along with image upload icon.

Screenshot 2024-12-31 at 2 57 09 PM

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

No branches or pull requests

1 participant