Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
65d7cc56
Commit
65d7cc56
authored
Aug 16, 2014
by
alexpott
Browse files
Issue
#2307125
followup by longwave: Fixed HTML double-escaping in EditorImageDialog.
parent
2a954413
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/editor/src/Form/EditorImageDialog.php
View file @
65d7cc56
...
...
@@ -8,7 +8,6 @@
namespace
Drupal\editor\Form
;
use
Drupal\Component\Utility\Bytes
;
use
Drupal\Component\Utility\SafeMarkup
;
use
Drupal\Core\Form\FormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\filter\Entity\FilterFormat
;
...
...
@@ -115,10 +114,13 @@ public function buildForm(array $form, FormStateInterface $form_state, FilterFor
'#maxlength'
=>
2048
,
);
$form
[
'dimensions'
]
=
array
(
'#type'
=>
'
item
'
,
'#type'
=>
'
fieldset
'
,
'#title'
=>
$this
->
t
(
'Image size'
),
'#field_prefix'
=>
SafeMarkup
::
set
(
'<div class="container-inline">'
),
'#field_suffix'
=>
SafeMarkup
::
set
(
'</div>'
),
'#attributes'
=>
array
(
'class'
=>
array
(
'container-inline'
,
'fieldgroup'
,
'form-composite'
,
)),
);
$form
[
'dimensions'
][
'width'
]
=
array
(
'#title'
=>
$this
->
t
(
'Width'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment