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

how to add js to plugin options #56

Closed
joukhar opened this issue Oct 2, 2022 · 2 comments
Closed

how to add js to plugin options #56

joukhar opened this issue Oct 2, 2022 · 2 comments

Comments

@joukhar
Copy link

joukhar commented Oct 2, 2022

exemple

               'enabled' => true,
                'name' => 'my-plugin',
                'options' => [
                    // 'root' => [
                    //     'css' => [
                    //         // others
                    //         'style.css' => '(editor) => editor.getCss()',
                    //     ],
                    //     'index.html' => '<script language=\'javascript\'>
                    //     (editor) =>
                    //         `<!doctype html>
                    //         <html lang="en">
                    //         <head>
                    //             <meta charset="utf-8">
                    //             <link rel="stylesheet" href="./css/style.css">
                    //         </head>
                    //         ${editor.getHtml()}
                    //         </html>`
                    //     </script>',
                    // ],
                ],
                'scripts' => [
                    'url',
                ],

@ghost
Copy link

ghost commented Oct 7, 2022

@joukhar did not get what you want to achieve, Why do you need to add the js in the plugin options?

@joukhar
Copy link
Author

joukhar commented Oct 7, 2022

it done sir ,i created a custom plugin for that thanks

@joukhar joukhar closed this as completed Oct 7, 2022
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

1 participant