WYSIWYG toolbar cap

Permalink Browser Info Environment
Hi Jordan,

I noticed the toolbar above the WYSIWYG editor was a bit wonky so I simply copied and pasted what the core C5 content block uses and pasted in the /generator_templates/editor_controls.php file (see attached).

Let me know if that works for you as well (or if I've screwed the pooch).

Cheers,

-Brad

1 Attachment

Type: Discussion
Status: New
beebs93
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Hi Brad,
This is specific to Concrete 5.4.2, and I have been made aware of it but simply haven't had the time to update Designer Content.
I wouldn't recommend replacing the entire file with C5's because the file I have contains some customizations that fix some bugs when you have both a WYSIWYG editor and an image selector or pagelist selector on the same page.

Instead, I'd revert that file to how it was before and modify it as follows:

Change:
<div class="ccm-editor-controls">
<div class="ccm-editor-controls-right-cap">
//...bunch of code here
</div>
</div>

...to:
<div class="ccm-editor-controls-left-cap" <?php  if (isset($editor_width)) { ?>"style="width: <?php echo $editor_width?>px"<?php  } ?>>
<div class="ccm-editor-controls-right-cap">
<div class="ccm-editor-controls">
//...bunch of code here
</div>
</div>
</div>


Let me know if that works for you (I haven't tested it myself but someone else said it worked and I trust them).

If you'd rather not deal, you're probably okay with what you did (but I'd test out the editing of a block that has both a WYSIWYG field and an Image field to make sure it all works when you insert an image into WYSIWYG and then select an image for the image field, and vice-versa).

-Jordan
beebs93 replied on at Permalink Reply
beebs93
Yup, that worked as well - thanks again!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.