Open mrvnklm opened 1 month ago
Hi @mrvnklm
can you share your code ?
Sure, sorry for not providing directly:
public function form(Form $form): Form
{
return $form
->schema([
CodeEditor::make('statement')
]);
}
Thank you ,
As document says , you need define a unique id .
Please try this code :
public function form(Form $form): Form
{
return $form
->schema([
CodeEditor::make('statement')
->id('unique_field_id'),
]);
}
If your problem is not solved or you have other questions Please do not hesitate to inform us.
Thanks, I tried now and I did before just by copy and pasting the sample code. I also get the following warning:
Alpine Expression Error: Ie is not a constructor
Expression: "function(){this.isReadOnly=t,this.theme.dark=n,this.theme.light=r,this.themeConfig=new Si,this.mode="dark",this.render()}"
<div style="overflow: auto;" @theme-changed.window="function(e) {toggleTheme(e.detail)}" x-data="codeEditorFormComponent(…',\n \n )">
interesting , i use it in my project and everything works fine , one more question . do you have another plugin similar to this plugin installed in your project?
Nothing similar, especially nothing like form fields. I just tried in a different project of mine and there it works, weird. I will look into what causes the issue and give you an update asap.
Using the package I get the following error: