Set default text for database richtext fields

It would save so much time if you could set or change the default text for database richtext fields. It is extremely time-consuming having to format each one. Maybe I’m missing something but there seems to be no way to do this.

Please elaborate on what you mean.

Every time I have to enter data in a rich text field, I have to set the font, the font size, and the color in the rich text editor window for every single line in the database. This is a huge waste of time.

There seem to be options to select themed fonts like in the Wix editor (paragraph 1, 2, 3 headers 1,2,3, etc.) but these do not apply the saved theme associated with the text as expected- it only changes the font size. Maybe they’re not Wix saved themed fonts?

The only workaround seems to be to copy the formatted text from a previous database cell, paste in inside the new cell’s rich text editing window, and then correct the text. If you’ve got 300 lines in a database and 4 rich text fields for each that’s 1200 times you’ve got to copy/paste or reformat the rich text editor specifications. Oh my lol, quite the productivity issue. It would be amazing if you could set a default when setting up a rich text field so that you can change what you need when you need to but otherwise, it would just already be the way you need it. Am I missing something here? I’d say it’s an 80% chance the problem is me :wink:

Assuming you use the same pattern, Proxima 15px or any other consistent one for every cell you can achieve it with some code.
I’d code a data hook before insert and convert the text you enter into a formatted one.

Ok thanks. I will do some research as I don’t know what any of that means.

Will that override any changes I make inside the rich text? Half of the text needs to be italicized and the rest standard which will vary from line to line. I also can’t find anything in Corvid help that explains how to do what you’re suggesting or perhaps I just don’t understand what I’m looking at. I have no coding knowledge so I was trying to find some examples of what you’re saying.

I know exactly what Rebecca Lusk means, and yes, it’s VERY frustrating!

Ideally, one SHOULD be able to (maybe) SELECT a COMPLETE column (Rich Text) and SET a standard formatting for ALL the CELLS in the column!

Unfortunately, I too have no coding knowledge, so I have no idea whether such a feature is at all possible.

I kind of understand what Shay (Wix) is saying - about adding a hook - which will trigger javascript ‘before insert’… But I’ll have to spend quite a bit of time figuring how to do that!

Yes, I am pretty frustrated. I can’t find anything explaining how to do what he said. Feel like throwing my computer out the window

The ‘hook’ thing you can find on the top-right of your Database page (when you edit the database from Wix Editor)… but the next part is the TRICKY bit - finding/ writing the javascript that will do the JOB!
All the best… Patience, that’s the trick my friend! :wink:

Yes, I can find that but have had zero luck finding anything helpful for the coding or how to use it. Thanks though :slight_smile: