Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeBB v2 Compatibility #33

Open
yariplus opened this issue Mar 6, 2022 · 20 comments
Open

NodeBB v2 Compatibility #33

yariplus opened this issue Mar 6, 2022 · 20 comments
Assignees

Comments

@yariplus
Copy link
Owner

yariplus commented Mar 6, 2022

No description provided.

@yariplus yariplus self-assigned this Mar 6, 2022
@SadafGhafoor
Copy link

The newsletter plugin is not working after we upgraded NodeBB to version 2.5.7. Kindly fix the issue.

@yariplus
Copy link
Owner Author

In progress, should be out soon.

@yariplus
Copy link
Owner Author

yariplus commented Nov 1, 2022

Unfortunately, due to changes to tinymce, I'll need to change to a different editor, or just remove the editor entirely. Open to suggestions.

@SadafGhafoor
Copy link

Any progress on the newsletter plugin?

@yariplus
Copy link
Owner Author

yariplus commented Nov 8, 2022

Oh, sorry I didn't update the issue, i pushed the update last week. Let me know if you still have issues!

@SadafGhafoor
Copy link

The newsletter plugin is still not completely functional. The main body section is disabled and the plugin keeps on loading. Attaching screenshot below:

Screenshot 2022-11-14 123213

@yariplus
Copy link
Owner Author

Seems like you have something blocking loading of the tinymce script.

Are you able to see the "send as newsletter" dropdown from a new topic?

@SadafGhafoor
Copy link

SadafGhafoor commented Nov 14, 2022 via email

@yariplus
Copy link
Owner Author

can you screenshot any errors in the browser console?

@aworobel
Copy link

aworobel commented Nov 18, 2022

Hello,

Same problem here.
Tinymce is not build in assets.

Browser log :

GET https://www.onekite.com/assets/plugins/nodebb-plugin-newsletter/tinymce/tinymce.min.js 404
send @ admin.min.js?v=jmsqiscj4rk:59
ajax @ admin.min.js?v=jmsqiscj4rk:59
f._evalUrl @ admin.min.js?v=jmsqiscj4rk:59
Mn @ admin.min.js?v=jmsqiscj4rk:56
append @ admin.min.js?v=jmsqiscj4rk:56
(anonymes) @ admin.min.js?v=jmsqiscj4rk:56
fe @ admin.min.js?v=jmsqiscj4rk:56
html @ admin.min.js?v=jmsqiscj4rk:56
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
v @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
success @ admin.min.js?v=jmsqiscj4rk:9
V @ admin.min.js?v=jmsqiscj4rk:56
fireWith @ admin.min.js?v=jmsqiscj4rk:56
Kt @ admin.min.js?v=jmsqiscj4rk:59
(anonymes) @ admin.min.js?v=jmsqiscj4rk:59
load (asynchrone)
send @ admin.min.js?v=jmsqiscj4rk:59
ajax @ admin.min.js?v=jmsqiscj4rk:59
ajaxify.loadData @ admin.min.js?v=jmsqiscj4rk:9
ajaxify.go @ admin.min.js?v=jmsqiscj4rk:9
E @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
dispatch @ admin.min.js?v=jmsqiscj4rk:56
Ve.handle @ admin.min.js?v=jmsqiscj4rk:56
plugins-newsletter.e85042a4c8af929ce03b.min.js:1 
        
       Uncaught (in promise) ReferenceError: tinymce is not defined
    at o.init (plugins-newsletter.e85042a4c8af929ce03b.min.js:1:1339)
    at admin.min.js?v=jmsqiscj4rk:9:60591
o.init @ plugins-newsletter.e85042a4c8af929ce03b.min.js:1
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
await in (anonymes) (asynchrone)
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
ajaxify.loadScript @ admin.min.js?v=jmsqiscj4rk:9
ajaxify.end @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
Promise.then (asynchrone)
v @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
success @ admin.min.js?v=jmsqiscj4rk:9
V @ admin.min.js?v=jmsqiscj4rk:56
fireWith @ admin.min.js?v=jmsqiscj4rk:56
Kt @ admin.min.js?v=jmsqiscj4rk:59
(anonymes) @ admin.min.js?v=jmsqiscj4rk:59
load (asynchrone)
send @ admin.min.js?v=jmsqiscj4rk:59
ajax @ admin.min.js?v=jmsqiscj4rk:59
ajaxify.loadData @ admin.min.js?v=jmsqiscj4rk:9
ajaxify.go @ admin.min.js?v=jmsqiscj4rk:9
E @ admin.min.js?v=jmsqiscj4rk:9
(anonymes) @ admin.min.js?v=jmsqiscj4rk:9
dispatch @ admin.min.js?v=jmsqiscj4rk:56
Ve.handle @ admin.min.js?v=jmsqiscj4rk:56

@SadafGhafoor
Copy link

newsletter

I did not find any dropdown and send as a Newsletter option.

@yariplus
Copy link
Owner Author

Should be the arrow next to the submit button.

@yariplus
Copy link
Owner Author

I'll push an update tonight for the tinymce errors.

@yariplus
Copy link
Owner Author

Version 0.10.2 should work now

@aworobel
Copy link

aworobel commented Nov 21, 2022

Hello,

Seems not ok :/
Tried to rebuild.

Uncaught (in promise) ReferenceError: tinymce is not defined
    at o.init (plugins-newsletter.e85042a4c8af929ce03b.min.js:1:1339)
    at admin.min.js?v=h6c21915ifg:9:60591

But found a (very) dirty workaround with a symlink :)

npm i tinymce
cd /opt/nodebb/build/public/plugins
ln -s ../../../node_modules/tinymce/ tinymce

@yariplus
Copy link
Owner Author

Huh. That is strange. I never call the tinymce module, I pull it from the cloudflare cdn. Are you sure it updated to 0.10.2?

That does give me an idea for a fix though.

@aworobel
Copy link

Indeed i'm in 0.10.2

@iasna
Copy link

iasna commented Nov 22, 2022

can you screenshot any errors in the browser console?
yes! On new topic editor i opened console and saw this error.
image

@iasna
Copy link

iasna commented Nov 23, 2022

Also when i click on newsletter from plugins, a page opens up but editor for never shows up. Below is error that showed up in console.
image

@yariplus
Copy link
Owner Author

Thanks guys. I think I see what's going on here. I removed the static directory with tinymce, but that doesn't remove the actual file in the build directory, so it's trying to build with the old files as far as I can tell. I think uninstalling the plugin, rebuilding, than installing it again should work, but I haven't finished testing that yet if anyone wants to try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants