Comments (8)
@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.
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.
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.
@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.
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.
ok i will try it!!, i will give u a request soon!
from ivoryckeditorbundle.
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.
Okay, I will commit this update ASAP.
from ivoryckeditorbundle.
Related Issues (20)
- php 7.1 HOT 2
- how to upload image from local pc file
- Services will become private by default starting from Symfony 3.4 HOT 4
- Cannot type anything inside editor. Also every option from drop down toolbar is missing.
- Variable "enable" does not exist HOT 2
- Allow script run in silent mode
- Allow to use CKEditor with Symfony4 HOT 19
- contentsCss dont work. HOT 1
- forcePasteAsPlainText on Edge browser not working
- Feature request: CKEditor 5 HOT 1
- Duplicate toolbars items full preset HOT 1
- Typo in overlay doc (important)
- RepositorySecurityException when installing from packagist.org HOT 1
- The bundle is incompatible with Symfony4 HOT 3
- database error on install HOT 1
- Unable to find template "IvoryCKEditorBundle:Form:ckeditor_widget.html.twig" [AGAIN] HOT 6
- Error in Ivory\\CKEditorBundle\\Composer\\CKEditorScriptHandler::install HOT 5
- DEPRECATED Symfony 3.2 HOT 1
- Archive this repository, link to FOSCKEditorBundle
- CKEditor text area got focus/click
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ivoryckeditorbundle.