-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: HTML editor #59
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
base: main
Are you sure you want to change the base?
Conversation
- Basic changes to Stimulus controller - Integrated placeholder area for HTML editor
- Implemented entire functionality of HTML editor
- Chat area and HTML editor area now switch visibility when activated
- Close/open animation of chat area and HTML editor area now smoothly animated
src/ChatBasedContentEditor/Presentation/Controller/ChatBasedContentEditorController.php
Outdated
Show resolved
Hide resolved
src/ChatBasedContentEditor/Presentation/Controller/ChatBasedContentEditorController.php
Outdated
Show resolved
Hide resolved
| const editLink = document.createElement("a"); | ||
| editLink.href = "#"; | ||
| editLink.className = | ||
| "text-dark-500 hover:text-primary-600 dark:text-dark-400 dark:hover:text-primary-400 transition-colors"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure this doesn't reinvent link styling with low-level Tailwind if ready-made styles for this exist in the webui Living Styleguide.
| loadError: 'editor.html_editor_load_error'|trans | ||
| } | ||
| }) }} | ||
| data-action="html-editor:open->html-editor#openEditor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this could be written as stimulus_action (see Symfony UX Twig Components / Stimulus Bridge documentation), but might not work for non-default Stimulus actions.
manuelkiessling
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but definitely needs some tests, at least unit and frontend.
- Hartkodierten Teilpfad entfernt
- Used an icon from Heroicons for 'edit'
- Added new class for icon links from WebUI bundle
- Added tests for HTML editor
…versation: - Tests, later submitted
…versation: - Fixed erroneous test
No description provided.