orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

Content in summernote not changing properly #222

Open ffxsam opened 9 years ago

ffxsam commented 9 years ago

As I switch between dictionary categories, the summernote content doesn't change.

licecap

ffxsam commented 9 years ago

And if I click "Save," then it actually saves the text in the field. So the text/HTML is being copied over as I'm tabbing between the two.

ffxsam commented 9 years ago

BTW, if you can tell me where in the code I'd find this, I'd be happy to take a stab at fixing it. I just haven't had time to examine the code and learn how things are structured.

gam-ragnar commented 9 years ago

@ffxsam Personally I used Materialize unfortunately summernote is not compartible

ffxsam commented 9 years ago

But this is Bootstrap I'm using

ffxsam commented 9 years ago

Also: there should be a way in the admin to at least have a textarea box for type String, instead of a single-line input field.

gam-ragnar commented 9 years ago

@ffxsam I prefer forum for further discussions.

dvzrd commented 9 years ago

Hey, any updates on this issue?

I'm having the same problem with Froala inside dictionary. Switching between tabs doesn't reset the content inside the editor. Looks like the issue is with tabular and the way data is loaded into the editors?

@ffxsam Did you have any luck finding the code? I'd like to help.

ffxsam commented 9 years ago

Hey! No, I actually removed summernote anyway, because my client kept putting pasting bad stuff in there (like from Word, and all the ugly HTML that comes with it). ;) So I made it a regular textarea.

dvzrd commented 9 years ago

I see. I'll do some digging, keep you posted.

atika2k commented 9 years ago

Hi there! I have the same problem. Any solution yet?

ffxsam commented 9 years ago

I stopped using Orion, so unfortunately I can't be of any help.

dvzrd commented 9 years ago

So I noticed something.

If you have the same number of fields between tabs, the bug will come up. If you have at least one extra field then the data will reset properly when you switch between tabs. Not sure how helpful this is but it can be a temp solution for what it's worth. When I find some time I'll look into fixing the issue just been swamped with other things.