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

Feature/wysiwyg editors #37

Merged
merged 9 commits into from
May 15, 2024

Conversation

germanbisurgi
Copy link
Collaborator

Alternatives for CKEditor: Jodit and SCEditor
Markdown editor: simpleMDE

@germanbisurgi
Copy link
Collaborator Author

editors-configs


class JoditAsset extends AssetBundle
{
public $sourcePath = '@dmstr/jsoneditor/assets/';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @dmstr/jsoneditor/assets/jodit here to prevent publishing unwanted files

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or why do we not use the files in /assets/jodit


class SceditorAsset extends AssetBundle
{
public $sourcePath = '@dmstr/jsoneditor/assets/sceditor/minified';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we not use the files in /assets/sceditor/minified?

}
}';

$json = Yii::$app->settings->getOrSet('jodit.config', $joditConfig, 'jsoneditor', 'object');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Settings should be optional - see: #13

@eluhr
Copy link
Collaborator

eluhr commented Apr 30, 2024

Why are the assets bundles not in the assets directory?

@germanbisurgi
Copy link
Collaborator Author

Ping

Copy link
Collaborator

@eluhr eluhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@schmunk42 schmunk42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the LICENSE files and a note in the README about the bundled assets.

@germanbisurgi germanbisurgi changed the title WIP: Feature/wysiwyg editors Feature/wysiwyg editors May 15, 2024
@germanbisurgi
Copy link
Collaborator Author

This pull request is no longer WIP. Should i merge and tag?

@schmunk42
Copy link
Member

Yes, go ahead.

@germanbisurgi germanbisurgi merged commit 9aa5d08 into dmstr:master May 15, 2024
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

Successfully merging this pull request may close these issues.

None yet

4 participants