Giter Site home page Giter Site logo

Comments (15)

julianlam avatar julianlam commented on May 27, 2024

Doesn't look like anything to me...

😛 Seriously though, that looks ok?

from nodebb-plugin-composer-redactor.

pitaj avatar pitaj commented on May 27, 2024

Are you referring to the "Replying to ..." text missing, or what?

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

Sorry I wasn't very clear. It used to look like this
screen shot 2017-01-19 at 19 34 48

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

I can't manually edit html for example

from nodebb-plugin-composer-redactor.

julianlam avatar julianlam commented on May 27, 2024

Yes, I believe the tagging is at the bottom now, and the toolbar options have changed as we've updated to the newest version of Redactor, which does not have the same plugins as the old.

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

Sorry to post here again but I have been trying to uninstall and install the composers and now I see this on the console.

nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:20 Uncaught TypeError: Cannot read property 'newTopic' of undefined
at nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:20
at dispatch (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:2)
at m.handle (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:2)
at Object.trigger (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:3)
at nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:3
at Function.each (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:1)
at v.fn.init.each (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:1)
at v.fn.init.trigger (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:3)
at Object.app.newTopic (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:11)
at HTMLButtonElement. (nodebb.min.js?2b902572-9711-435a-91d8-7c8e4ec8c093:10)

I wonder if this all related to NodeBB/NodeBB#5381 which I have just posted.

I seem to be in a bit of a mess.

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

If I run ./nodebb dev I see these warnings

19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/autocomplete.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/categoryList.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/controls.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/drafts.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/formatting.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/preview.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/resize.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/tags.js (Ignoring)
19/1 20:04:16 [24049] - warn: [plugins/load] File not found: /home/ec2-user/nodebb/node_modules/nodebb-plugin-composer-default/static/lib/composer/uploads.js (Ignoring)

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

Just rand ./nodebb upgrade again. That seems to have helped with the file not founds an newTopic undefined.

I'll look into the changes to redactor. I may use the old version since I can't see and edit html button which is useful.

Thanks

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

I see what has happened with redactor. I need to add the source code plugin to redactor to get the html edit back. Any ideas how to do this in NodeBB?

https://imperavi.com/redactor/plugins/source/

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024

Never mind. It says in the post I just sent you. :)

from nodebb-plugin-composer-redactor.

JonathanWatkins avatar JonathanWatkins commented on May 27, 2024
<script src="/js/redactor/plugins/source.js"></script>

<script type="text/javascript">
$(function()
{
    $('#redactor').redactor({
        plugins: ['source']
    });
});

from nodebb-plugin-composer-redactor.

exomarty avatar exomarty commented on May 27, 2024

i bet that new text icons would be horrible on mobile
it is possible to get back to simple icons
https://imperavi.com/redactor/examples/buttons-default-icons/

from nodebb-plugin-composer-redactor.

julianlam avatar julianlam commented on May 27, 2024

Hi @JonathanWatkins -- the source editing has been removed as it was easy to input incorrect html which would cause the NodeBB template to break. We've elected to keep it out until some sort of automatic html validator is implemented, but that is low priority for us.

If you want to use the source plugin, you can definitely modify the redactor.core.js file to add the plugin in 👍 Just keep in mind that future changes may conflict, so you will need to learn the git commands to resolve them.

from nodebb-plugin-composer-redactor.

pitaj avatar pitaj commented on May 27, 2024

Could we add an admin setting to enable to HTML plugin?

from nodebb-plugin-composer-redactor.

julianlam avatar julianlam commented on May 27, 2024

No objections to that 👍

from nodebb-plugin-composer-redactor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.