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

how to control the shown size of image #47

Open
kontafu opened this issue Mar 1, 2016 · 3 comments
Open

how to control the shown size of image #47

kontafu opened this issue Mar 1, 2016 · 3 comments

Comments

@kontafu
Copy link

kontafu commented Mar 1, 2016

hello,i want to upload a 1080 * 1920 picture to the service,but the local picture shown is too large.how to control the shown size of picture in local.Thanks!

@abhinav-adtechs
Copy link

Please help. @wasabeef

@martingordon13
Copy link

martingordon13 commented Dec 19, 2016

Hi i also need to resize the picture to fit into the screen size.
@wasabeef

@bu2zhouzhu
Copy link

bu2zhouzhu commented Mar 6, 2017

  1. Create file img.css under assets folder.
  2. Copy following code into img.css file:
img {
  display: inline;
  height: auto;
  max-width: 100%;
}
  1. In your Activity, call loadCSS method on your RichEditor:
mEditor.loadCSS("file:https:///android_asset/img.css");

1080*1920 picture will be properly displayed on screen.

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

4 participants