Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ckeditor doesnt work anymore #31

Open
halil-raso opened this issue Nov 6, 2018 · 4 comments
Open

Ckeditor doesnt work anymore #31

halil-raso opened this issue Nov 6, 2018 · 4 comments

Comments

@halil-raso
Copy link

halil-raso commented Nov 6, 2018

Hi Guys
I have used ckeditor within laravel using instructions you provided and everything was fine but today it doesnt work any more.
my code is like following:
in app.blade.app:
<script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
<script>
CKEDITOR.replace( 'article-ckeditor' );
</script>
and in create.balde.php:


{{Form::label('body','Body')}}
{{Form::textarea('body', '', ['id'=>'article-ckeditor', 'class'=>'form-control', 'placeholder'=>'Type body here...'])}}

Please help me.
Thank in advance...

@vark47
Copy link

vark47 commented Nov 8, 2018

Could you provide relevant console errors?

@ShibiGG
Copy link

ShibiGG commented Feb 25, 2019

You could be having an existing app.js included in the app.blade.php. (Guessing you're following the same tutorial, you would have to remove the existing app.js and include JS script from existing CDN for the bootstrap to work.)
That fixed my issue.

@Frank-Landry
Copy link

I am running into the same issue. I tried commenting out app.js to no avail in my app.blade.php file.

@kami16ru
Copy link

Thats worked for me.

Remove calling script. Just dont use it if it is in app.js

I haven't app.js. Instead of that i have main.js

There i found that:

var allEditors = document.querySelectorAll('.ckeditor');
for (var i = 0; i < allEditors.length; ++i) {
ClassicEditor.create(allEditors[i]);
}

In my blade file i added class "editor"

<textarea id="tull_text" name="full_text" class="form-control ckeditor">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants