Wysiwyg-editor: Insert image full size, not 300px

Created on 25 Mar 2015  路  3Comments  路  Source: froala/wysiwyg-editor

When I insert an image it is always displayed with 300px.

Is there any easy way to view the image in full size after inserting an image?

Because the only way I can do that is going on "Show HTML" and manually remove the width = "300" image of the line.

One option would be the image of the check box there is a "Full Size Image" button.

Another alternative would be an option to set it to Froala settings.

Congratulations for the excellent editor, I am using for local testing, but plan to buy the developer version.

Most helpful comment

@adilsonb You can use imageDefaultWidth in image.min.js like this

new FroalaEditor('.selector', {
  imageDefaultWidth: 0
});

imageDefaultWidth: Sets the default width of the image when it is inserted in the rich text editor. Setting it to 0 will not set any width(Just with full size).

All 3 comments

@adilsonb You can use imageDefaultWidth in image.min.js like this

new FroalaEditor('.selector', {
  imageDefaultWidth: 0
});

imageDefaultWidth: Sets the default width of the image when it is inserted in the rich text editor. Setting it to 0 will not set any width(Just with full size).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bbugh picture bbugh  路  3Comments

rogersteblerbsi picture rogersteblerbsi  路  3Comments

isubasti picture isubasti  路  4Comments

bnjmnfnk picture bnjmnfnk  路  4Comments

cristianst picture cristianst  路  4Comments