Closed kunz398 closed 5 years ago
If you just want to allow that the user can insert images, then by adding AllCommandsEditorToolbar your're done (I personally prefer the GroupedCommandsToolbar).
Just click on this command almost at the end of AllCommandsEditorToolbar
and then on the button with the three dots:
If you like to insert images programmatically, this can be done this way:
editor = (RichTextEditor) findViewById(R.id.editor);
editor.getJavaScriptExecutor().insertImage("<local path>", "<description>", 0);
Does this answer your question?
actually fixed it thank you u can close this now
i have this so far
`<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">
`
and my java file is a fragment which is like: ` editor = (RichTextEditor) rootView.findViewById(R.id.editor);
how can i insert images from local i tried the
editior.setpermission
but it doesnt work it says can not resolve method pleasehelp