-
Notifications
You must be signed in to change notification settings - Fork 1
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
NEW Migrate TinyMCE code and config to new repo #1
base: 1.0
Are you sure you want to change the base?
NEW Migrate TinyMCE code and config to new repo #1
Conversation
ad8627d
to
2246e98
Compare
004527d
to
83b9f11
Compare
d62075b
to
1e05bbf
Compare
_config.php
Outdated
$editorConfig->removeButtons('anchor'); | ||
$editorConfig->insertButtonsAfter('sslink', 'anchor'); | ||
} | ||
$editorConfig->setOption('skin_url', $module->getResource('client/dist/tinymce/skins/ui/silverstripe')->getURL()); |
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.
$editorConfig->setOption('skin_url', $module->getResource('client/dist/tinymce/skins/ui/silverstripe')->getURL()); |
Oops, this was a debug line. Will remove this after your review as I assume there will be other changes to make at the same time.
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.
Done
client/src/components/TinyMceHtmlEditorField/TinyMceHtmlEditorField.js
Outdated
Show resolved
Hide resolved
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.
This was an initial peer review which I wanted to submit now so I didn't loose any feedback. I may submit some more feedback on this PR in the near future.
docs/en/01_Configuration.md
Outdated
use SilverStripe\TinyMCE\TinyMCEConfig; | ||
TinyMCEConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron'); |
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.
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron'); | |
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron'); |
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.
We don't have a standard for this - some docs always have the gap, some omit it when there's very little code.
I'll add the gap to avoid unnecessary ping pong.
docs/en/01_Configuration.md
Outdated
use SilverStripe\TinyMCE\TinyMCEConfig; | ||
TinyMCEConfig::get('cms')->removeButtons('tablecontrols', 'blockquote', 'hr'); |
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.
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->removeButtons('tablecontrols', 'blockquote', 'hr'); | |
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->removeButtons('tablecontrols', 'blockquote', 'hr'); |
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.
Done
docs/en/01_Configuration.md
Outdated
use SilverStripe\TinyMCE\TinyMCEConfig; | ||
TinyMCEConfig::get('cms')->enablePlugins(['myplugin' => 'app/javascript/myplugin/editor_plugin.js']); |
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.
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->enablePlugins(['myplugin' => 'app/javascript/myplugin/editor_plugin.js']); | |
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->enablePlugins(['myplugin' => 'app/javascript/myplugin/editor_plugin.js']); |
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.
Done
docs/en/01_Configuration.md
Outdated
use SilverStripe\TinyMCE\TinyMCEConfig; | ||
TinyMCEConfig::get('my-config')->setOption('resize', false); |
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.
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('my-config')->setOption('resize', false); | |
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('my-config')->setOption('resize', false); |
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.
Done
docs/en/01_Configuration.md
Outdated
use SilverStripe\TinyMCE\TinyMCEConfig; | ||
TinyMCEConfig::get('cms')->disablePlugins('ssembed'); |
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.
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->disablePlugins('ssembed'); | |
use SilverStripe\TinyMCE\TinyMCEConfig; | |
TinyMCEConfig::get('cms')->disablePlugins('ssembed'); |
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.
Done
@@ -0,0 +1,29 @@ | |||
@retry @job1 |
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.
Remove all of the @job1
annotations from all the behat files
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.
Why?
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.
Unnecessary, and confused me thinking there were two jobs, when there is only one
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.
Done
webpack.config.js
Outdated
'TinyMCE_sslink': `${PATHS.SRC}/plugins/TinyMCE_sslink.js`, | ||
'TinyMCE_sslink-external': `${PATHS.SRC}/plugins/TinyMCE_sslink-external.js`, | ||
'TinyMCE_sslink-email': `${PATHS.SRC}/plugins/TinyMCE_sslink-email.js`, | ||
// asset plugins |
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.
// asset plugins | |
// asset-admin plugins |
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.
Done
webpack.config.js
Outdated
// sass to css | ||
new CssWebpackConfig('css', PATHS) | ||
.setEntry({ | ||
// bundle: `${PATHS.SRC}/styles/bundle.scss`, |
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.
// bundle: `${PATHS.SRC}/styles/bundle.scss`, |
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.
Done
@@ -0,0 +1,10 @@ | |||
name: CI |
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.
Seems like we're missing things like auto merge-ups. Did you run module-standardiser? If not could you add as a "do later" AC on the parent issue
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.
Running standardiser before there's any code or config files will at best give incomplete results. There's a note under "Still needs to be done" in the issue for this.
SilverStripe\Forms\HTMLEditor\HTMLEditorConfig: | ||
default_config_definitions: | ||
cms: | ||
configClass: 'SilverStripe\TinyMCE\TinyMCEConfig' |
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.
configClass: 'SilverStripe\TinyMCE\TinyMCEConfig' | |
configClass: SilverStripe\TinyMCE\TinyMCEConfig |
Don't need quotes for an FQCN
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.
Discussion about that can be in silverstripe/silverstripe-framework#11617 (comment)
aff183e
to
191068a
Compare
191068a
to
8684a8e
Compare
Issue