GithubHelp home page GithubHelp logo

Comments (8)

egeloen avatar egeloen commented on June 3, 2024

@e-solving I have never used the CKEditor type with sonata but I'm sure a collection of CKEditor works fine as I used it in many projects.

Anyway, I don't really understand your issue :s What do you mean with "ckeditor is crushing"? It does not appear?

from ivoryckeditorbundle.

luisansal avatar luisansal commented on June 3, 2024

My issue is simple, the IvoryCKEditorBundle don't work in sonata_type_collection, an javascript error internally happens, when i click in a button Add , to add a languages collection for example, all is fine the ckeditor work in the textarea but only in the first row, when i click again in Add, so the 2° row, the ckeditor dont't work, sorry when i said crushing... exactly it doesn't appear
PD: I'm from Peru, sorry my english isn't the better :P

from ivoryckeditorbundle.

egeloen avatar egeloen commented on June 3, 2024

Can you copy/paste the sonata_type_collection JS output. IMO, the issue should be here. Do you know how sonata manages the append of a new item in the collection?

from ivoryckeditorbundle.

luisansal avatar luisansal commented on June 3, 2024

@egeloen Im not sure know how sonata manages the append, i supposed generate the scrips twice, and generate an interference with the JS, this is the issue:
TypeError: d is null:

b&&(c=b+"\n"+c);d&&(c=d+"\n"+c);return c},focus:function(){this..isLoadingData?this..isPendingFocus=!0:k.baseProto.focus.call(this)},detach:

i was create a video where show my issue problem, i will send you to gmail, thank a lot!!

from ivoryckeditorbundle.

egeloen avatar egeloen commented on June 3, 2024

So, after googling it there is maybe an issue in the bundle... Can you try to update locally the Resources/views/Form/ckeditor_widget.html.twig file.

Replace:

var instance = CKEDITOR.instances['{{ id }}'];
if (instance) {
    instance.destroy(true);
}

by

if (CKEDITOR.instances['{{ id }}']) {
    delete CKEDITOR.instances['{{ id }}'];
}

from ivoryckeditorbundle.

luisansal avatar luisansal commented on June 3, 2024

ok i will try it!!, i will give u a request soon!

from ivoryckeditorbundle.

luisansal avatar luisansal commented on June 3, 2024

Ok with this modification all works perfect !!! thank u, now your bundle is 100% compatible with Sonata Admin ;), will be nice is you push this code in your bundle

var instance = CKEDITOR.instances['{{ id }}']; if (instance) { delete instance; }

from ivoryckeditorbundle.

egeloen avatar egeloen commented on June 3, 2024

Okay, I will commit this update ASAP.

from ivoryckeditorbundle.

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.