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 · 1 comment
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

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