Hari haha ... i some times hit "esc" instead of enter

impossible that i'm thinking all exept this!!!!!!!!!! feel so stupid right now

  • [deleted]

What is replacement fot Shift + Enter on mobile for WXSIWYG / Rich Text Editor?

    [deleted] What is replacement fot Shift + Enter on mobile for WXSIWYG / Rich Text Editor?

    I don't think there is one. I'm very open to suggestions of how that functionality can be otherwise achieved though. Outside of 1-line-separated paragraphs, any other major usage?

      • [deleted]

      askvortsov I'm very open to suggestions of how that functionality

      I really do not know... It is not a necessary feature at all.

      Like many other extensions, I think this one will just depend on the type of community whether it’s worth it or not. Not just due to size but functionality. And this is something I’ve experienced with many other wysiwyg editors. There’s many positives and negatives, so you just have to decide what’s worth it and what’s not worth it.

      For a poetry forum I have I’m going back to the standard editor. Because I need that single line type of experience... regular line breaks versus paragraphs for every line return. But, I also use Flarum for my personal blog. There, this extension will work great. Because there I’m writing standard paragraphs.

      I can see why this was never part of core from the beginning. Because there’s so many variables and preferences.

      One more FYI for a future release. Inserting links isn’t working for me on mobile.

      I still think this extension is amazing and I thank @askvortsov for creating it. Again, depending on the community, this was needed.

        • [deleted]

        • Edited

        For what it's worth, TinyMCE had and still has the same issues... My personal preference is the current editor with Markdown.

        v1.1.0

        • Added a preference configurable in the settings page to disable separating paragraphs by an extra blank line. This should accomplish what you're looking for. 010101
        • Fixed inserting link when that's the first thing done after opening the composer
        • Dropdowns on Safari don't work when the keyboard is open. Added a workaround by displaying dropdown content in a modal. 010101

          askvortsov

          Nice! Works great, thank you! I think I’ll use this at my poetry forum now after all.

          The only remaining thing I don’t love is how quoting works as mentioned above. But, I know there’s no simple solution. Will a user realize they need to hit enter a couple times? Maybe. Maybe not. But, without this editor will they know markdown? Probably not. So either way, you'll have users potentially not quite understanding something. And, you've already gone above and beyond by making this so I can live with quotes as-is (for now). 🙂

          Perhaps I'm missing something, but what's the problem with automatically adding a new line when quoting? That's how the composer work without this editor after all.

            Hello,

            I'm wondering how does this extension handle photos when user copy and paste a photo? Does it upload to the server and grab the link?

            • [deleted]

            How to force use of WYSIWYG / Rich Text Editor for all registered users?

              [deleted] By default it should be on for all users. I know this isn’t great but you can hide the setting with CSS so they can’t turn it off easily.

              matteocontrini I'll bet that @askvortsov will find a way to make it happen in the future. It probably just didn’t seem necessary originally. But, I do think it would be a nice enhancement one day if it can be done.

                010101 I'm still confused as to what problem exactly you're trying to solve, could you elaborate a bit more?

                  askvortsov Sure. It's the same thing someone else mentioned above. When you highlight someone else's post and select quote the composer appears with the quoted text. And the cursor will be inside of the blockquote. The user can press enter once and they'll still be inside of the blockquote. Pressing enter once more gets you out of the blockquote. I think it’d be even more user friendly if instead the cursor was immediately outside of the blockquote ready for the user to start typing their reply.

                  Hi,
                  I think currently it's not compatible with BBCode and ImgurUpload extension. Whenever I have this and either of those, I can't open any discussion

                    huuduy216 I suspect it's incompatible with imgur upload, but it should work fine with bbcode. You're using the default flarum bbcode ext?

                      askvortsov yes, this one. https://github.com/flarum/bbcode v0.1.0-beta.16

                      Crash log

                      GET https://talkie.vn/api/discussions/6-talkie-la-gi

                      Illuminate\Database\Eloquent\RelationNotFoundException: Call to undefined relationship [latestProfileViews] on model [Flarum\Discussion\Discussion]. in /var/www/talkie.vn/vendor/illuminate/database/Eloquent/RelationNotFoundException.php:34
                      Stack trace:
                      #0 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Builder.php(655): Illuminate\Database\Eloquent\RelationNotFoundException::make()
                      #1 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Relations/Relation.php(99): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent{closure}()
                      #2 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Builder.php(657): Illuminate\Database\Eloquent\Relations\Relation::noConstraints()
                      #3 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Builder.php(625): Illuminate\Database\Eloquent\Builder->getRelation()
                      #4 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Builder.php(605): Illuminate\Database\Eloquent\Builder->eagerLoadRelation()
                      #5 /var/www/talkie.vn/vendor/illuminate/database/Eloquent/Model.php(506): Illuminate\Database\Eloquent\Builder->eagerLoadRelations()
                      #6 /var/www/talkie.vn/vendor/flarum/core/src/Api/Controller/ShowDiscussionController.php(102): Illuminate\Database\Eloquent\Model->load()
                      #7 /var/www/talkie.vn/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(102): Flarum\Api\Controller\ShowDiscussionController->data()
                      #8 /var/www/talkie.vn/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractSerializeController->handle()
                      #9 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
                      #10 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process()
                      #11 /var/www/talkie.vn/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
                      #12 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process()
                      #13 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
                      #14 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
                      #15 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
                      #16 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process()
                      #17 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
                      #18 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
                      #19 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle()
                      #20 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process()
                      #21 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
                      #22 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
                      #23 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
                      #24 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
                      #25 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
                      #26 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
                      #27 /var/www/talkie.vn/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
                      #28 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process()
                      #29 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
                      #30 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
                      #31 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
                      #32 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
                      #33 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
                      #34 /var/www/talkie.vn/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
                      #35 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
                      #36 /var/www/talkie.vn/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
                      #37 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
                      #38 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
                      #39 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
                      #40 /var/www/talkie.vn/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
                      #41 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
                      #42 /var/www/talkie.vn/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
                      #43 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process()
                      #44 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
                      #45 /var/www/talkie.vn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
                      #46 /var/www/talkie.vn/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
                      #47 /var/www/talkie.vn/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
                      #48 /var/www/talkie.vn/public/index.php(26): Flarum\Http\Server->listen()
                      #49 {main}