nodebb-community / nodebb-plugin-composer-redactor Goto Github PK
View Code? Open in Web Editor NEWRedactor Composer for NodeBB
License: GNU General Public License v3.0
Redactor Composer for NodeBB
License: GNU General Public License v3.0
I am thinking of upgrading my NodeBB install to 1.0.3. Does the redactor composer work with that version?
Cant write text on safari browser, mac & iOS
Hi,
did I miss something, or is the plugin currenty only in English?
I could help you with the german translation :)
Hi,
Would it be possible to add code & spoilers?
I've tried all of the spoiler plugins, and none of them are working with your plugin (and I've tried with Markdown enabled and disabled, and Sanitization enabled and disabled) same with the code plugin.
Thanks
The problem is that markdown sanitzes both posts and chat content, and so because redactor comes with it's own parser, markdown has to be disabled. I wonder if there's a way to make them both play nicely together...
Original issue:
NodeBB/NodeBB#4092
When using bootswatch dark skin (Cyborg, Darkly, etc) you can't see Heading (white text on white background).
Redactor 1.4.15
Nodebb 1.4.1
How to enable upload files in the composer?
Redactor doesn't know the cid
when it sends an upload, so it's undefined and causes a privilege error.
Not working in NodeBB 1.0.0
Hi! There are tootips in the official redactor http://imperavi.com/redactor/
Why don't we have them?
We've received a new Redactor version from @drewdotpro, and it needs to be integrated properly into this plugin.
So far there are some breaking changes, including (but not limited to):
The 2.0 branch is currently unusable, and is located in the redactor-ii
branch.
Currently when using Markdown in Redactor, it doesn't seem to be parsed by the Markdown plugin.
Would it be possible to support Markdown parsing alongside with HTML?
I have found a bug in Firefox (which I can't replicate on Chrome, IE or Opera) - other users have reported it happening but I don't know what browser they use. I'm using the Persona theme on NodeBB, which is version 0.8.2.
After replying to a post or starting a new topic, I navigate to another topic, and try to click Reply. The "plus" button (used in Persona theme to hide/show the composer) appears bottom-right, but the Redactor composer doesn't, nor does clicking the "plus" button.
Checking the console in Firefox, it's displaying a "NS_ERROR_FAILURE:" error each time either is clicked. The console seems to point to nodebb.min.js with this error.
Refreshing the browser page seems to let you post again.
Using Firefox on Win7, I found the following issues:
Highlighting text (either by double-clicking a word or click-and-drag highlighting) doesn't work at all, unless done in HTML mode.
Highlighting text in HTML mode, then clicking "link" to add a hyperlink: the "selected" text isn't added to the "Text" box in the "Insert link" popup, and must be retyped.
No similar problems in Chrome.
NodeBB version 0.8.1
convert gif in to webm using ffmpeg(if installed)
Reloading page loses composer content. Composer default does it so this is a possible enhancement.
Uncaught TypeError: t.size is not a function
The jquery version is '3.1.0'.
size() was deprecated years ago and removed in version 3 ... use length instead
Hi guys,
I'm using NodeBB with Persona and I realized that I can't upload topic thumbnails when using redactor. Is there a way for doing it?
Thanks!
Emojis (emoji-extended) are quite large when included in message. Is there a way to define emoji size?
The @ tagging would be a good addition.
Styling needs to be corrected.
I tried to explain this in the NodeBB forums but it probably looked confusing. There's two points.
First point:
When you go to begin a new topic on NodeBB with the default composer, input is automatically focused on the Title field. You can then either tab to change categories and/or add tags, etc.
On Redactor composer, Redactor's text area itself is focused on. This means instead of the cursor starting in the topic title field, you're typing straight into Redactor composer.
Now this isn't a bad thing when replying to a topic (you're immediately typing a reply), but in starting a new topic you have to physically select the title field to do that where intuitively it should start there.
Second point:
If you do select the title input field, you cannot use the Tab key to navigate into Redactor composer from the tags. It skips it completely. You have to physically click on the composer to to type in a post.
Default composer, you'd press Tab to move from:
Title > Category dropdown > Tags > Composer > Submit button
In Redactor, using Tab to navigate goes like this (assuming you click on Title to begin):
Title > Category dropdown > Tags > Submit button > navigation bar at top of page
This may seem a minor annoyance, which it is, but if you're used to the original NodeBB composer it does catch you out somewhat.
Thanks guys!
With the default composer its rather easy to add extra buttons, I cant figure how to do it properly with this?
Any tips would be appreciated.
The docs (I think) are showing how to add a button when starting redactor?
You can add one using external api stuff once redactor has started, but then the script has to wait....I know how to do that crap (I like making chrome extensions) but thats bleh.
I can add one using something like this....
if ($ && $.Redactor) {
$(function() {
if (!$.Redactor.opts.plugins) $.Redactor.opts.plugins = [];
$.Redactor.opts.plugins.push('advanced');
$.Redactor.prototype.advanced = function() {
return {
init: function() {
var button = this.button.add('advanced', 'Advanced');
// make your added button as Font Awesome's icon
this.button.setAwesome('advanced', 'fa-tasks');
this.button.addCallback(button, this.advanced.testButton);
},
testButton: function(buttonName) {
alert(buttonName);
}
};
};
// This is how your MEANT to do it....
// $('#redactor').redactor({
// plugins: ['advanced']
// });
});
}
..but I just figured that out by mucking around and cant find it documented anywhere.
I don't know much about hooks yet, but isn't this somewhere that one could be useful?
One to register a plugin to be registered before the start of redactor as it seems your only meant to add them at the start of redactor?
If I'm just missing something simple...I'm sorry, I'm new and impatient ;)
I'm not sure how to put an image in a user's signature while redactor is installed.
Uploading a large image, the image is cut off.
NodeBB v1.0.0
Redactor 1.4.0
When you try to start a new thread Redactor editor pops up and then after 0.5 seconds on the screen it promptly hides itself.
You can then click the big red + sign on the lower right to make it pop up again for 0.5 seconds and then hiding itself again.
If you start banging random keys ie. "dddddddddd" etc. while the editor is on the screen for the 0.5 seconds - it will stay up and you are able to write your message.
Return 403 Forbidden.
explained in title
Redactor not loading on post edit
tried previous commits and coudnt make it work
is it only me?
thank you
nodebb-plugin-composer-redactor requires that you turn off HTML sanitization in the markdown plugin. Although redactor does provide client side sanitization, one can easily inject XSS into a site by opening up a dev console in chrome and calling socket.emit() to manually create a post with malicious javascript.
9/3 11:12 [15788] - error: Error: Cannot find module './plugins' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at Object.<anonymous> (/home/minecraft/mynodebb/node_modules/nodebb-plugin-composer-default/library.js:3:29) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at Object.<anonymous> (/home/minecraft/mynodebb/node_modules/nodebb-plugin-composer-redactor/library.js:5:33) 9/3 11:12 [15788] - warn: [plugins] Unable to parse library for: nodebb-plugin-composer-redactor
Seems like none of the features I tried in the editor are actually showing up in the saved post. I created a table (looked perfectly in the editor) and in the post I just had the text. Same with links none are clickable. Lists also end up as text only.
When you press "quote" to reply to a thread it should have Redactor support so that you don't have to manually select the quote and click format -> quote to turn it into the actual quoting format.
nodebb-plugin-poll is not available
This is a nice plugin every forum needs. It would be nice if you could update it and make it compatible with 0.9.4.
I found several ways to inject arbitrary Javascript into posts. The easiest two being the onmousedown/up/over attributes and using the url() css construct. With some tags, these are not parsed out whatsoever.
You are also not sanitizing on post edit at all, because the passed object is different from what you are expecting.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.