NPellet / visualizer

Other
43 stars 23 forks source link

paste image in ckeditor ? #737

Open lpatiny opened 9 years ago

lpatiny commented 9 years ago

https://github.com/ahocquet/ckeditor-pastebase64

stropitek commented 9 years ago

Just an idea: html could be inserted on action. This could be useful for example if you want to add a reaction that you've just drawn in JSME to the rich text editor. Proof of concept: http://visualizer.epfl.ch/tiny/JM1KtNX2cJUapcCKGPC8 (use HEAD)

It could as well be useful for inserting images...

lpatiny commented 9 years ago

This is really good ! I see an application in the ELN. If I click on an icon in a reagent line I would like to have an action that inserts a formatted text in the html editor. http://visualizer.epfl.ch/tiny/eQdGWMYldk7p9z57WY5F How to do this ?

stropitek commented 9 years ago

In the last part of the configuration you can specify a list of buttons. You give an action name and a button title. This will add buttons above slickgrid that when clicked trigger an action with the selected rows as value. A code executor could process the rows and send another action to the rich text editor.

lpatiny commented 8 years ago

http://summernote.org/getting-started/ allows to directly drag and drop or paste images and it will be converted to inline base64 image