scorpiusjs / scorpius

Modular admin solution built with Meteor
http://scorpiusjs.org
MIT License
34 stars 7 forks source link

Summernote doesn't work #32

Closed mmazloum closed 7 years ago

mmazloum commented 7 years ago

Hi,

This backend is hosted on galaxy, with SSL enabled, and summernote doesn't seem to work, texts are not recorded.

Here is the console trace : image

If I replace summernote attribute with a string in the scorpius schema, everything works fine. I'll try froala and keep you posted.

All the best ;-)

rwatts3 commented 7 years ago

Ok thank you. Let me know what you find

mmazloum commented 7 years ago

element.code(this.data.value); at line 31 in summernote.js seems to be responsible for that, maybe because they updated this package. Considering this i guess froala will work.

rwatts3 commented 7 years ago

I will look into this further. Please monitor #20 , A major refactor is in place that will bring all core functionality under 1 package scorpiusjs:scorpius I will be upgrading all dependencies to the latest version, and fixing a great deal of these packages.

You will be able to settings and options via API classes.

Meteor.startup(function () {
    new ScorpiusConfig({
        editors: {
            summernote: {
                ... summernote options using new summer 2.x api
            }
        }
    });
});
mmazloum commented 7 years ago

great, keep me posted if you need an early tester.

rwatts3 commented 7 years ago

@mmazloum is this still an issue or were you able to find a solution ?

mmazloum commented 7 years ago

hi finally used Froala for other reasons, I may give it a try next week where I'll start a new project.

rwatts3 commented 7 years ago

ok good deal i will close this issue for now, as I was not able to reproduce, and have not received other reports from the community. Feel free to open if the issue takes place in the future.

mmazloum commented 7 years ago

confirmed everything works fine !

ahmadsholehin commented 7 years ago

I unfortunately still couldn't get Summernote to work correctly without facing above error message. For those reading this issue, as a workaround, I used mpowaga:autoform-summernote instead and configured the editor in such manner:

about: {
    type: String,
    label: "About",
    autoform: {
        afFieldInput: {
            type: "summernote",
            class: "editor",
            settings: {
                height: 300
            }
        }
    }
}