Summernote questions

In addition to my last post, is there any chance to bake in those two lines of code as an option (no idea if it works though, but it would be just what I needed)? https://github.com/summernote/summernote/issues/546#issuecomment-619084952

Furthermore, when pulling summernote generated text from my database query, the html tags are not resolved. What am I doing wrong?

You need to use the inner HTML dynamic attribute for this instead of directly binding the expression in the paragraph.
Select your paragraph, add new dynamic attribute > display > inner HTML and select your dynamic expression there.

1 Like

You could add a Dynamic Event to the Summernote textarea, eg:
editor1.setValue(value.replace("</p><p>", "<br>"))
This seems to work best with the onblur event, though the replacement will only happen after leaving the field. Other events seem to produce strange results.

Having said that, I prefer the functionality as it is. This is the way Word works for example, and it means users can add paragraphs if they want.

Using the Medium Editor, I sometimes added a note, eg:

image

2 Likes

Summernote integration is looking great!

I need file upload to AWS S3 though… :disappointed:

“At last my love has come along“

I can wait to try this out. Thanks a lot Wappler team and I am truly happy to be a part of the Wappler Wave. :clap:t3:

1 Like

Had to do it in code view. Remove is medium code. Refresh app connect panel. Then you can add your summernote editor. Just did 15 of them. Since all had the same options I just copied the is summernote code and replaced the is medium code in them all in code view. Only took about 5 minutes to do 15 editors.

1 Like

Did this make in today’s update? I didn’t see it in the release notes?

No, it didn’t make it this week.

Hi Teodor
The implementation of Summernote is fantastic and certainly satisfies many needs and is complete with all the most important settings.
What would be a very interesting plus is the possibility to save, load or modify templates for the content of the text area, thus providing the possibility to choose pre-set presentations (with tables, titles, colors, logos, … . etc)
Somewhere in the past I had seen this possibility, but I don’t remember where.
You know something about this?

I’d urgently need a Word formatter/cleaner. Please implement it asap, thanks!

1 Like

George, please implement delete image from server support soon. We have a huge project here where we’d need that in our cms. Thanks!

It would also be nice to have more control about the table, like define it as responsive, assign other bootstrap classes like bordered and last but not least define table header and footer rows :slight_smile:

I would like to insert a (NULL) value to db when Summernote field is left blank, is that possible?

It’s very easy, just set your default to null in your SC Action.

1 Like

Hi,
Immediately I add summernote to my view, the design view immediately went blank. but toggling the App connect mode restore it (if appconnect is true, screen is blank, but if appconnect is false it is restored. Any tips please!
Wappler 3.0.0 Beta 5 Released

Hi I am wondering if there is a way to add alternative text values to images within summernote. When I select the image, the options do not allow me to add an alt text.


I am wondering if I am missing something.
Thanks
Juan

Hi Jaun,

I don’t believe that is possible at the moment. Would make a great feature request.

1 Like

HI @brad, thanks for getting back to me:)

@George, would you guys conciser adding alternative text to the feature request? This is really important for accessibility.

Thanks

Juan

There is a plugin for it:

Just include the js on your page.

On the editor add:

dmx-bind:toolbar-image="[['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']], ['float', ['floatLeft', 'floatRight', 'floatNone']], ['title', ['imageTitle']], ['remove', ['removeMedia']]]"
2 Likes

Sorry if I come back to a topic already partially discussed, but not yet resolved. Some time ago, even with your help, I found the way to insert the possibility to load templates into the Summernote toolbar.
It works perfectly and this often solves some of my needs. however it would be great if once you have edited or created an article, you could save the content in a new template
This would allow you to manage different versions of some templates
Has anyone by any chance found this solution?