Git Product home page Git Product logo

Comments (8)

Nearata avatar Nearata commented on May 31, 2024

i tried your code and it works as expected. what doesn't work to you? can you show me the result you see?

Screenshot_2
Screenshot_1

from flarum-ext-dsts.

Nearata avatar Nearata commented on May 31, 2024

try to change {TEXT} to {ANYTHING}

from flarum-ext-dsts.

BeyondIM avatar BeyondIM commented on May 31, 2024

It works now. tks.

from flarum-ext-dsts.

BeyondIM avatar BeyondIM commented on May 31, 2024

I'm so sorry it doesn't work again. Once I add code below, It has the following error.

  (new Extend\Formatter)
    ->configure(function (Configurator $config) {
      $config->BBcodes->addCustom(
        '[REPLY]{ANYTHING}[/REPLY]',
        '<reply>{ANYTHING}</reply>'
      );
    }),

2021-09-08_21-26

and I try to perform the following operations, error still exist.

php flarum cache:clear
rm -rf storge/cache/*
rm -rf storge/formatter/*

I know this problem has nothing to do with your dsts extension, but I installed your another great extension embed-video which has similar code, It works perfect. I don't know what the problem is.

Could you give me some directions? Thank you very much.

from flarum-ext-dsts.

Nearata avatar Nearata commented on May 31, 2024

you need this

use s9e\TextFormatter\Configurator;

add this after the others

from flarum-ext-dsts.

BeyondIM avatar BeyondIM commented on May 31, 2024

I've added use s9e\TextFormatter\Configurator; like the top screenshot.

from flarum-ext-dsts.

Nearata avatar Nearata commented on May 31, 2024

remove the import

and change the line

->configure(function (Configurator $config) {

to

->configure(function ($config) {

clear cache and see if it works

from flarum-ext-dsts.

BeyondIM avatar BeyondIM commented on May 31, 2024

It doesn't work yet.

2021-09-08_22-09

I found this link which encountered the same problem as me. The user solves the problem by trying to deactivate other extensions that have potential conflicts. I will try this way also. tks.

from flarum-ext-dsts.

Related Issues (4)

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.