mohamedsabil83 / filament-forms-tinyeditor

A TinyMce Editor component for filament
MIT License
164 stars 37 forks source link

[Bug]: cannot see editor in page #99

Closed darshan-patel-tops closed 8 months ago

darshan-patel-tops commented 9 months ago

What happened?

<?php

namespace App\Filament\Resources;

use App\Filament\Resources\CampusesResource\Pages; use App\Filament\Resources\CampusesResource\RelationManagers; use App\Models\Campuses; use Filament\Forms; use Filament\Forms\Components\TextInput; use Filament\Resources\Form; use Filament\Resources\Resource; use Filament\Resources\Table; use Filament\Tables; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\ToggleColumn; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletingScope; // use Mohamedsabil83\FilamentFormsTinyeditor\Components\TinyEditor; // You have a missing class import. Try importing this class: use Mohamedsabil83\FilamentFormsTinyeditor\Components\TinyEditor;

class CampusesResource extends Resource { protected static ?string $model = Campuses::class;

protected static ?string $navigationIcon = 'heroicon-o-collection';

public static function form(Form $form): Form
{
    return $form
        ->schema([
            TinyEditor::make('content')->simple(),
            TextInput::make('name234')
        ]);
}
                                this is my code and i am trying to use tiny editor here but i cannot see the tab only to use the tiny editor

Screenshot (82)

How to reproduce the bug

so i cannot see the editor in my page i don't know what to do Screenshot (82) Screenshot (83)

Package Version

latest

PHP Version

802.4

Laravel Version

10.

Which operating systems does with happen with?

Windows

Notes

No response

mohamedsabil83 commented 9 months ago

In the future, confirm to keep the formation of the issue intact to be clear to read.

Can you check if any issue appears in the browser console?

From your screenshot, it appears you use Filament v2. Then, you'll use v1 of this package. So, force publish the assets. Also, if you published the package's view, force publish it too.

jeytii commented 9 months ago

@mohamedsabil83 I'm experiencing the same bug. The only error logged is about a missing JS file: Screenshot from 2023-09-27 20-19-32 I tried publishing the config file but still no luck.

Filament: v2 Package: v1.7.0

mohamedsabil83 commented 9 months ago

Update to the latest version, v1.7.5, and force publish the package assets.

jeytii commented 9 months ago

@mohamedsabil83 Still not working :confused:

mohamedsabil83 commented 9 months ago

That's weird. It works as expected on my side. Are you working in Windows, too? Could you try to create a fresh site and install the package there? There may be something in your current one you forgot about.

Darshantada10 commented 9 months ago

okay so as u said i followed those steps and it is working perfectly fine but as i make the project live on a website it says that No hint path defined for [filament-forms-tinyeditor].

shri289 commented 9 months ago

please, publish the asset by run the following: php artisan vendor:publish --tag="filament-forms-tinyeditor-assets"

Sometimes, you may need to re-publish and override the assets after upgrading: php artisan vendor:publish --tag="filament-forms-tinyeditor-assets" --force

markszymik commented 8 months ago

Same story. Using it with Forms v2. Page is empty. No console errors etc. Tried to clear views, config, cache etc.

mohamedsabil83 commented 8 months ago

I can't reproduce the issue. It works as expected. Also, as there are no console errors, there is nothing to achieve. You need to check if you are missing something or if there's a conflict. All that I can say is:

I have to close the issue for now. If anyone finds the real issue related to this package, don't hesitate to re-open it.