Can anybody help me set up a Wysiwyg editor for my description field in the admin browser section, browser_link_add_form.html template?
The way these things work (tinymce or openwysiwyg) is really placing a Javascript call in the header section,
such as:
<script language="JavaScript" type="text/javascript" src="/your_directory_path/openwysiwyg/wysiwyg.js"></script>
Problem being, as soon as I add this to my browser_link_add_form.html template, the system dies on me. This is what my add link page looks like as soon as the javascript call is in there:
# This file is a compiled version of a template that can be run much faster # than reparsing the file, yet accomplishes the same thing. You should not # attempt to modify this file as any changes you make would be lost as soon as # the original template file is modified. # Editor: vim:syn=perl # Generated: Sun Sep 11 23:08:37 2011, using GT::Template::Parser v2.159 local $^W; { files => [['browser_link_add_form.html','/www/htdocs/w00db062/domains/star/cgi-bin/admin/templates/admin/../browser/browser_link_add_form.html',1153437778,1134]], parser_version => 2.170, code => \>::Template::parsed_template }; sub GT::Template::parsed_template { local $^W; # Get rid of warnings. This won't work for Perl 5.6's -W switch my $self = shift; my $return = ''; my $tags = $self->vars; my $escape = $self->{opt}->{escape}; my $strict = $self->{opt}->{strict}; my ($tmp, $tmp2, $tmp3); $return .= q{Add Link to: }; $return .= $tmp if defined($tmp = $self->_get_var(q{Name}, { escape => $escape, strict => $strict })); $return .= q{
}; $return .= $tmp if defined($tmp = $self->_get_var(q{navbar}, { escape => $escape, strict => $strict })); $return .= q{
_get_var(q{enctype}, { escape => $escape, strict => $strict })); $return .= q{action="}; if ($self->_get_var(q{is_admin}, { escape => 0, strict => 0, merge => 0 })) { $return .= q{admin.cgi}; } else { $return .= $tmp if defined($tmp = $self->_get_var(q{db_cgi_url}, { escape => $escape, strict => $strict })); $return .= q{/browser.cgi}; } $return .= q{" method="POST" onSubmit="parent.CAN_UPDATE = 1;"> }; $return .= $tmp if defined($tmp = $self->_get_var(q{form}, { escape => $escape, strict => $strict })); $return .= q{
}; return \$return; }
So I'm sure I'm messing something up here.
And yes, I realize the full extent of the irony composing this post in a WYSIWYG editor EXACLTY like the one I would like to have for my link description field in Links 3.3.0!
Any help is greatly appreciated.
The way these things work (tinymce or openwysiwyg) is really placing a Javascript call in the header section,
such as:
<script language="JavaScript" type="text/javascript" src="/your_directory_path/openwysiwyg/wysiwyg.js"></script>
Problem being, as soon as I add this to my browser_link_add_form.html template, the system dies on me. This is what my add link page looks like as soon as the javascript call is in there:
# This file is a compiled version of a template that can be run much faster # than reparsing the file, yet accomplishes the same thing. You should not # attempt to modify this file as any changes you make would be lost as soon as # the original template file is modified. # Editor: vim:syn=perl # Generated: Sun Sep 11 23:08:37 2011, using GT::Template::Parser v2.159 local $^W; { files => [['browser_link_add_form.html','/www/htdocs/w00db062/domains/star/cgi-bin/admin/templates/admin/../browser/browser_link_add_form.html',1153437778,1134]], parser_version => 2.170, code => \>::Template::parsed_template }; sub GT::Template::parsed_template { local $^W; # Get rid of warnings. This won't work for Perl 5.6's -W switch my $self = shift; my $return = ''; my $tags = $self->vars; my $escape = $self->{opt}->{escape}; my $strict = $self->{opt}->{strict}; my ($tmp, $tmp2, $tmp3); $return .= q{Add Link to: }; $return .= $tmp if defined($tmp = $self->_get_var(q{Name}, { escape => $escape, strict => $strict })); $return .= q{
Add Link to: }; $return .= $tmp if defined($tmp = $self->_get_var(q{Name}, { escape => $escape, strict => $strict })); $return .= q{
}; $return .= $tmp if defined($tmp = $self->_get_var(q{navbar}, { escape => $escape, strict => $strict })); $return .= q{
_get_var(q{enctype}, { escape => $escape, strict => $strict })); $return .= q{action="}; if ($self->_get_var(q{is_admin}, { escape => 0, strict => 0, merge => 0 })) { $return .= q{admin.cgi}; } else { $return .= $tmp if defined($tmp = $self->_get_var(q{db_cgi_url}, { escape => $escape, strict => $strict })); $return .= q{/browser.cgi}; } $return .= q{" method="POST" onSubmit="parent.CAN_UPDATE = 1;"> }; $return .= $tmp if defined($tmp = $self->_get_var(q{form}, { escape => $escape, strict => $strict })); $return .= q{
}; return \$return; }
So I'm sure I'm messing something up here.
And yes, I realize the full extent of the irony composing this post in a WYSIWYG editor EXACLTY like the one I would like to have for my link description field in Links 3.3.0!
Any help is greatly appreciated.