Reviewed & tested by the community
Project:
WYSIWYG Code Button
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2011 at 21:03 UTC
Updated:
4 Jul 2013 at 10:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
geerlingguy commentedSubs.
Comment #2
David_Rothstein commentedI haven't had a chance to try this in D7 yet, but my guess (hope?) would be that literally the only change needed would be to change "6.x" to "7.x" in the info file... The rest of the code is hopefully version agnostic.
If anyone wants to try that and report back here if it works, that would be great, and I could commit a D7 version shortly thereafter :)
Comment #3
tinkalink commentedI've tried the D6 version on a D7 site by changing the .info as David suggested. It doesn't seem to work. Once the module is activated the editor is gone and there is no way of entering any text in the text field.
Worth investigating?
Comment #4
TimelessDomain commentedComment #5
markabur commentedI was able to get it working in D7 with a couple of changes.
Safari was showing a js error about not finding a file '.../ckeditor/plugin.jsplugin.js', which the following change fixes:
I still had problems until I got rid of the dash in the plugin name, e.g.
And this change lets the button label show in skins other than the default "kama":
Also, the info file is updated and my editor caught a crlf problem, which is fixed too.
Comment #6
bleen commentedsub
Comment #7
andris_b commentedPatch worked like a charm for me, thanks!
Comment #8
Panthrax commentedPatch worked for me as well, thanks!
Comment #9
TimelessDomain commented!
Comment #10
j0rd commentedI was looking for a module like this to add H2 and H3 buttons to my CKEditor.
I've created a slightly more generic version of this module to include header tags. I'm hoping someone else will take this even a step further and create generic buttons for all reasonable HTML elements.
This works with D7.
UPDATE: Looks like I left two dpm()'s in there. You'll need to remove them.
Comment #11
korzh-nick commentedHi, there is a patch for the current version?
Comment #12
j0rd commented@kolebas nope, WYSIWYG
Comment #13
gbangban commentedI can't create a full patch with netbeans, so here is a zip of the module for a D7 compatible release. It looks like its working for me, but ymmv. This was updated from the 6.x-1.0-rc1 release.
Comment #14
sneyerst commentedI have installed the patch from #13.
There is only one problem; my button doesn't have any label.
I'm not familiar with this module, but I guess this happens in
wysiwyg_code_button_form_wysiwyg_profile_form_alter(&$form, $form_state).The
$profilevariable in this function is a string (in my case 'ckeditor') but is treated later on in the function as an object (presumably a context object, like inwysiwyg_code_button_wysiwyg_editor_settings_alter(&$settings, $context)).Comment #15
leanderl commented@sneyerst: Did you ever find out how to solve this?
Comment #16
sneyerst commentedUnfortunately not.. I hope someone with a better insight in this module may be able to fix this.
Comment #17
hatul commentedThe icons is missed.
plugin.js
I also added icons in ckeditor/images.
You also remove display: none from wysiwyg_code_editor_ckeditor.css
Comment #18
JohnnyX commentedIs a release planned?