I have installed the Markdowneditor for BUEditor and when enabled, all of the icons are not shown for bueditor.
On inspection of the code, I can see that the icons image src is incorrect with an additional '.' dot symbol before the '@2x.png' part of image png:
Incorrect:
<input type="image" alt="Format selected text as code" title="Format selected text as code" accesskey="" id="bue-1-button-3" class="bue-button bue-image-button editor-image-button" src="/sites/all/modules/markdowneditor/icons/md-make-code.@2x.png" <tabindex="-1">
Should be (note the removal of the dot before the @2x.png):
<input type="image" alt="Format selected text as code" title="Format selected text as code" accesskey="" id="bue-1-button-3" class="bue-button bue-image-button editor-image-button" src="/sites/all/modules/markdowneditor/icons/md-make-code@2x.png" tabindex="-1">
I have made a workaround of renaming the icons filenames in 'sites/all/modules/markdowneditor' for my site, but I suspect the better solution is to fix the source code to remove the extra dot.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | removing_extra_dot_in_icons-2292583-2.patch | 10.07 KB | Dezra |
Comments
Comment #1
Dezra commentedI am making a patch for the two files to remove the '.'.
Files are:
bueditor.buttons.txt
markdowneditor.buttons.inc
Comment #2
Dezra commentedPatch attached: removes the extra dots from the two files (bueditor.buttons.txt and markdowneditor.buttons.inc) in the markdowneditor directory.
However I am having issues getting the editor to use the new files. Could someone suggest the correct place/command to make the module update to use new values? Im guessing Im missing a LESS compile phase somewhere (as file is inc).
Comment #3
Dezra commentedUpdated patch to be inline with drupal patching procedure.
After deleting the module and reinstalling it (with patch applied). My patch fixes the issue and the icons can be seen again in the wysiwig editor bar.
Comment #5
frjo commentedThanks you for contributing a patch to fix my silly search and replace mistake!
I have committed your patch and made a new 7.x-1.4 release that should show up as soon as the build scripts on d.o. has done there bit.
Comment #7
Dezra commentedNo problem frjo, I'm glad to help. The bueditor is very good (I'm using it on my personal blog)