-
Notifications
You must be signed in to change notification settings - Fork 824
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
API Remove code which is being migrated to a new TinyMCE module #11617
API Remove code which is being migrated to a new TinyMCE module #11617
Conversation
d3eb6c1
to
58567b9
Compare
27e8dfa
to
b94410c
Compare
8036736
to
19ec36b
Compare
5db8ee1
to
f8f976e
Compare
@@ -3,20 +3,276 @@ Name: corehtml | |||
--- |
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.
Give this a name like framework-html
so that it's easier for people to After:
in their own yml
I had to After: '*'
in my project to get my config to override values here
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.
It already has a name on Line 2:
Name: corehtml
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'll add After: 'corehtml'
in the docs though, it's good you called this out I didn't consider that might be necessary.
$this->validValues = (array) $value; | ||
break; | ||
default: | ||
throw new InvalidArgumentException('$valueType must be one of the VALUE_* consts.'); |
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.
throw new InvalidArgumentException('$valueType must be one of the VALUE_* consts.'); | |
throw new InvalidArgumentException('$valueType must be one of the HTMLEditorAttributeRule::VALUE_* consts.'); |
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
} | ||
|
||
/** | ||
* Undocumented function |
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.
Should document it
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 but please include the method name when suggesting changes like these - all I have to go off is the line number to know what specific method this is for, and line numbers can change as I apply other recommended changes.
* Undocumented function | ||
* | ||
* @param string $regex | ||
* @return string |
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.
Probably delete the docblock param / return type
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.
Not sure what method this was but I've documented all methods with "Undocumented function"
} | ||
|
||
/** | ||
* Undocumented function |
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.
Should document
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
f8f976e
to
5292f58
Compare
5292f58
to
00da541
Compare
00da541
to
be6b051
Compare
Important
Make sure you test this without the new tinymce module installed as well to ensure the textarea HTML editor field works, and that on save any disallowed elements/attributes are removed.
All other PRs will still need to be included because otherwise PHP will fail to run because there are references to missing classes lol
Issue