kitsune 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/README.textile +12 -1
  2. data/Rakefile +1 -1
  3. data/app/controllers/admin/kitsune/kitsune_controller.rb +67 -1
  4. data/app/controllers/admin/kitsune/kitsune_users_controller.rb +20 -0
  5. data/app/controllers/admin/kitsune/sessions_controller.rb +23 -0
  6. data/app/helpers/admin/kitsune/records_helper.rb +5 -0
  7. data/app/views/admin/kitsune/kitsune_users/index.html.haml +19 -0
  8. data/app/views/admin/kitsune/kitsune_users/new.html.haml +19 -0
  9. data/app/views/admin/kitsune/models/index.html.haml +1 -2
  10. data/app/views/admin/kitsune/records/_form.html.haml +0 -1
  11. data/app/views/admin/kitsune/records/index.html.haml +2 -0
  12. data/app/views/admin/kitsune/sessions/new.html.haml +12 -0
  13. data/app/views/layouts/admin/kitsune.html.erb +29 -24
  14. data/config/kitsune_routes.rb +2 -0
  15. data/generators/kitsune/kitsune_generator.rb +7 -3
  16. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/about.htm +56 -0
  17. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/anchor.htm +31 -0
  18. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/charmap.htm +53 -0
  19. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/color_picker.htm +75 -0
  20. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template.js +1153 -0
  21. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/editor_template_src.js +1153 -0
  22. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/image.htm +65 -0
  23. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/images.json +8 -0
  24. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/colorpicker.jpg +0 -0
  25. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/img/icons.gif +0 -0
  26. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/about.js +72 -0
  27. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/anchor.js +37 -0
  28. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/charmap.js +325 -0
  29. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/color_picker.js +253 -0
  30. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/image.js +260 -0
  31. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/link.js +156 -0
  32. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/js/source_editor.js +62 -0
  33. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en.js +62 -0
  34. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/langs/en_dlg.js +51 -0
  35. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/link.htm +63 -0
  36. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/content.css +32 -0
  37. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/dialog.css +184 -0
  38. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/buttons.png +0 -0
  39. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/items.gif +0 -0
  40. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_arrow.gif +0 -0
  41. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/menu_check.gif +0 -0
  42. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/progress.gif +0 -0
  43. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/img/tabs.gif +0 -0
  44. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/default/ui.css +214 -0
  45. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/content.css +32 -0
  46. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/dialog.css +115 -0
  47. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg.png +0 -0
  48. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_black.png +0 -0
  49. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/img/button_bg_silver.png +0 -0
  50. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui.css +215 -0
  51. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_black.css +8 -0
  52. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/skins/o2k7/ui_silver.css +5 -0
  53. data/generators/kitsune/templates/javascripts/tiny_mce/themes/kitsune/source_editor.htm +31 -0
  54. data/generators/kitsune/templates/kitsune_user.rb +3 -0
  55. data/generators/kitsune/templates/migrations/create_kitsune_users.rb +15 -0
  56. data/generators/kitsune/templates/migrations/create_pages.rb +1 -0
  57. data/generators/kitsune/templates/stylesheets/global.css +9 -1
  58. data/lib/kitsune.rb +9 -1
  59. data/lib/kitsune/page.rb +1 -0
  60. data/lib/kitsune_user.rb +49 -0
  61. metadata +48 -2
@@ -2,4 +2,15 @@ h1. Kitsune
2
2
 
3
3
  A drop in Rails CMS
4
4
 
5
- *This is still being developed and is currently barely useable*
5
+ *This is still being developed and is currently barely useable*
6
+
7
+
8
+ @$ script/generate kitsune --include-page-model@
9
+
10
+ @$ rake db:migrate@
11
+
12
+ @$ script/server@
13
+
14
+
15
+ Then go to:
16
+ http://localhost:3000/admin/kitsune
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rake'
2
2
 
3
3
  gem_spec = Gem::Specification.new do |gem_spec|
4
4
  gem_spec.name = "kitsune"
5
- gem_spec.version = "0.1.0"
5
+ gem_spec.version = "0.1.1"
6
6
  gem_spec.summary = "Integrated Rails Content Management System."
7
7
  gem_spec.email = "matt@toastyapps.com"
8
8
  gem_spec.homepage = "http://github.com/toastyapps/kitsune"
@@ -1,6 +1,72 @@
1
1
  class Admin::Kitsune::KitsuneController < Admin::Kitsune::ApplicationController
2
- before_filter :load_models
2
+ before_filter :authenticate,:load_models
3
3
  skip_before_filter :verify_authenticity_token
4
+
5
+ helper_method :current_user, :signed_in?, :signed_out?
6
+ hide_action :current_user, :current_user=, :signed_in?, :signed_out?, :sign_in, :sign_out, :authenticate, :deny_access
7
+
8
+ def current_user
9
+ @_current_user ||= user_from_cookie
10
+ end
11
+
12
+ def current_user=(user)
13
+ @_current_user = user
14
+ end
15
+
16
+ def signed_in?
17
+ !current_user.nil?
18
+ end
19
+
20
+ def sign_in(user)
21
+ if user
22
+ user.remember_me!
23
+ cookies[:remember_token] = {
24
+ :value => user.remember_token,
25
+ :expires => 1.year.from_now.utc
26
+ }
27
+ current_user = user
28
+ end
29
+ end
30
+
31
+ def sign_out
32
+ cookies.delete(:remember_token)
33
+ current_user = nil
34
+ end
35
+
36
+ def signed_out?
37
+ current_user.nil?
38
+ end
39
+
40
+ def authenticate
41
+ if Kitsune.authenticate
42
+ deny_access unless signed_in?
43
+ end
44
+ end
45
+
46
+ def deny_access(flash_message = nil)
47
+ flash[:notice] = flash_message if flash_message
48
+ redirect_to url_for(:controller => 'admin/kitsune/sessions', :action => 'new')
49
+ end
50
+
51
+ def user_from_cookie
52
+ if token = cookies[:remember_token]
53
+ KitsuneUser.find_by_remember_token(token)
54
+ end
55
+ end
56
+
57
+ def redirect_back_or(default)
58
+ redirect_to(return_to || default)
59
+ clear_return_to
60
+ end
61
+
62
+ def return_to
63
+ session[:return_to] || params[:return_to]
64
+ end
65
+
66
+ def clear_return_to
67
+ session[:return_to] = nil
68
+ end
69
+
4
70
  private
5
71
  def load_models
6
72
  models = Kitsune.models_with_admin.map{ |m| Kitsune::Inspector.new(m) }
@@ -0,0 +1,20 @@
1
+ class Admin::Kitsune::KitsuneUsersController < Admin::Kitsune::KitsuneController
2
+ layout 'admin/kitsune'
3
+ def index
4
+ @users = KitsuneUser.paginate(:page => params[:page])
5
+ end
6
+
7
+ def new
8
+ @user = KitsuneUser.new
9
+ end
10
+
11
+ def create
12
+ @user = KitsuneUser.new(params[:kitsune_user])
13
+ if @user.save
14
+ flash[:notice] = "User was created"
15
+ redirect_to url_for(:controller => 'admin/kitsune/kitsune_users', :action => 'index')
16
+ else
17
+ render 'new'
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,23 @@
1
+ class Admin::Kitsune::SessionsController < Admin::Kitsune::KitsuneController
2
+ skip_before_filter :authenticate, :load_models
3
+ layout 'admin/kitsune'
4
+ def new
5
+
6
+ end
7
+
8
+ def create
9
+ @user = KitsuneUser.authenticate(params[:session][:email], params[:session][:password])
10
+ if @user.nil?
11
+ flash[:notice] = "Could not log you in"
12
+ render 'new'
13
+ else
14
+ sign_in(@user)
15
+ redirect_back_or(url_for(:controller => 'admin/kitsune/models'))
16
+ end
17
+ end
18
+
19
+ def destroy
20
+ sign_out
21
+ redirect_to(url_for(:controller => 'admin/kitsune/models'))
22
+ end
23
+ end
@@ -31,4 +31,9 @@ module Admin::Kitsune::RecordsHelper
31
31
  "<p><strong>Current File</strong>: " + image_tag(file.to_s) + "</p>"
32
32
  end
33
33
  end
34
+
35
+ def kitsune_title
36
+ " - #{@model.admin_name}" + " : #{params[:action].titleize}"
37
+ end
38
+
34
39
  end
@@ -0,0 +1,19 @@
1
+ #kitsune_record_header
2
+ %h2.legend Users
3
+ #menu= link_to "New user", :controller => 'admin/kitsune/kitsune_users', :action => :new
4
+
5
+ %table
6
+ %thead
7
+ %tr
8
+ %th Email
9
+ %th Actions
10
+ %tbody
11
+ - @users.each do |user|
12
+ %tr{:class=>cycle('odd', 'even')}
13
+ %td= user.email
14
+ %td
15
+ = link_to 'Edit', "#"
16
+ \-
17
+ = link_to 'Delete', '#'
18
+ - if defined? will_paginate
19
+ = will_paginate @users
@@ -0,0 +1,19 @@
1
+ #kitsune_record_header
2
+ %h2.legend New User
3
+ #menu.with_form
4
+ = link_to 'Back', :controller => 'admin/kitsune/kitsune_users'
5
+
6
+ - form_for([:admin, :kitsune, @user]) do |form|
7
+ %fieldset
8
+ = form.error_messages
9
+ .field
10
+ = form.label :email
11
+ = form.text_field :email
12
+ .field
13
+ = form.label :password
14
+ = form.password_field :password
15
+ .field
16
+ = form.label :password_confirmation
17
+ = form.password_field :password_confirmation
18
+ .submit_button
19
+ %button(value="Save" type='submit' class="submitBtn") <span>Save</span>
@@ -1,2 +1 @@
1
- %p Use the left menu to manage your site. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
2
-
1
+ %p Use the left menu to manage your site.
@@ -25,4 +25,3 @@
25
25
  = hidden_field_tag :redirect_id, params[column.name]
26
26
  .submit_button
27
27
  %button(value="Save" type='submit' class="submitBtn") <span>Save</span>
28
- = yield :below_form
@@ -1,3 +1,5 @@
1
+ - #@kitsune_title = @model.admin_name
2
+
1
3
  #kitsune_record_header
2
4
  %h2.legend= @model.admin_name
3
5
  - unless @model.disabled?(:new)
@@ -0,0 +1,12 @@
1
+ #kitsune_record_header
2
+ %h2.legend Sign in
3
+ - form_for :session, :url => admin_kitsune_session_path do |form|
4
+ %fieldset
5
+ .field
6
+ = form.label :email
7
+ = form.text_field :email
8
+ .field
9
+ = form.label :password
10
+ = form.password_field :password
11
+ .submit_button
12
+ %input(value="Sign in" type='submit' class="submitBtn")
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
2
  <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
3
3
  <head>
4
- <title>Kitsune CMS</title>
4
+ <title>Kitsune CMS <%= kitsune_title rescue "" %></title>
5
5
  <%= javascript_include_tag 'kitsune/jquery.js', 'kitsune/kitsune_jquery.js', 'kitsune/upload_maker.js' %>
6
6
  <%= stylesheet_link_tag 'kitsune/global.css' %>
7
7
  <!--[if IE]>
@@ -11,13 +11,13 @@
11
11
  <script type='text/javascript'>
12
12
  tinyMCE.init({
13
13
  plugins: "iespell",
14
- theme: "advanced",
14
+ theme: "kitsune",
15
15
  width: "650px",
16
16
  height: "500px",
17
- theme_advanced_buttons1 : "bold,italic,strikethrough,|,bullist,numlist,|,outdent,indent,|,image,link,unlink,|,code",
18
- theme_advanced_buttons2 : "",
19
- theme_advanced_buttons3 : "",
20
- theme_advanced_toolbar_location : "top",
17
+ theme_kitsune_buttons1 : "bold,italic,strikethrough,|,bullist,numlist,|,outdent,indent,|,image,link,unlink,|,code",
18
+ theme_kitsune_buttons2 : "",
19
+ theme_kitsune_buttons3 : "",
20
+ theme_kitsune_toolbar_location : "top",
21
21
  convert_urls : false
22
22
  });
23
23
  </script>
@@ -27,6 +27,9 @@
27
27
  <div id='content'>
28
28
  <div id='header'>
29
29
  <h1><%= link_to 'Kitsune CMS', :controller => 'admin/kitsune/models' %></h1>
30
+ <% if Kitsune.authenticate && signed_in? %>
31
+ <%= link_to 'Sign out', url_for(:controller => 'admin/kitsune/sessions', :action => 'destroy'), :method => :delete, :class => 'sign_out' %>
32
+ <% end %>
30
33
  <a href='/' class='view'>View Site</a>
31
34
  </div>
32
35
  <%= render "admin/kitsune/shared/flashes" %>
@@ -36,25 +39,27 @@
36
39
  <%= yield %>
37
40
  </div>
38
41
  </div>
39
- <div class='kitsune_left'>
40
- <div class='wrapper'>
41
- <ul>
42
- <% @models.each do |model| %>
43
- <% if model.is_a? Hash %>
44
- <% model.each do |key, value| %>
45
- <li class='kitsune_category'><%= key %>
46
- <% value.each do |inner_model| %>
47
- <li class='kitsune_inner_model_link'><%= link_to inner_model.admin_name, :controller => 'admin/kitsune/records', :model_id => inner_model.object_class %></li>
48
- <% end %>
49
- </li>
50
- <% end %>
51
- <% else %>
52
- <li class='kitsune_model_link'><%= link_to model.admin_name, :controller => 'admin/kitsune/records', :model_id => model.object_class %></li>
53
- <% end %>
54
- <% end %>
55
- </ul>
42
+ <% if @models %>
43
+ <div class='kitsune_left'>
44
+ <div class='wrapper'>
45
+ <ul>
46
+ <% @models.each do |model| %>
47
+ <% if model.is_a? Hash %>
48
+ <% model.each do |key, value| %>
49
+ <li class='kitsune_category'><%= key %>
50
+ <% value.each do |inner_model| %>
51
+ <li class='kitsune_inner_model_link'><%= link_to inner_model.admin_name, :controller => 'admin/kitsune/records', :model_id => inner_model.object_class %></li>
52
+ <% end %>
53
+ </li>
54
+ <% end %>
55
+ <% else %>
56
+ <li class='kitsune_model_link'><%= link_to model.admin_name, :controller => 'admin/kitsune/records', :model_id => model.object_class %></li>
57
+ <% end %>
58
+ <% end %>
59
+ </ul>
60
+ </div>
56
61
  </div>
57
- </div>
62
+ <% end %>
58
63
  </div>
59
64
  </div>
60
65
  </body>
@@ -2,6 +2,8 @@ ActionController::Routing::Routes.draw do |map|
2
2
  map.connect '/admin/kitsune', :controller => 'admin/kitsune/models'
3
3
  map.namespace :admin do |admin|
4
4
  admin.namespace :kitsune do |kitsune|
5
+ kitsune.resource :session
6
+ kitsune.resources :kitsune_users, :as => :users
5
7
  kitsune.resources :pages
6
8
  kitsune.resources :models do |model|
7
9
  model.resources :records
@@ -3,14 +3,14 @@ class KitsuneGenerator < Rails::Generator::Base
3
3
 
4
4
  def initialize(runtime_args, runtime_options = {})
5
5
  @versioned = runtime_args.delete("--versioned")
6
- @include_pages = runtime_args.delete("--include-page-model")
7
- @include_users = runtime_args.delete("--include-user-model")
6
+ @dont_include_pages = runtime_args.delete("--without-page")
7
+ @dont_include_users = runtime_args.delete("--without-user")
8
8
  super
9
9
  end
10
10
 
11
11
  def manifest
12
12
  record do |m|
13
- if !!@include_pages
13
+ unless !!@dont_include_pages
14
14
  page_model = "app/models/page.rb"
15
15
  if File.exists?(page_model)
16
16
  m.insert_into page_model, "include Kitsune::Page"
@@ -21,6 +21,10 @@ class KitsuneGenerator < Rails::Generator::Base
21
21
  end
22
22
  end
23
23
 
24
+ unless !!@dont_include_users
25
+ m.migration_template "migrations/create_kitsune_users.rb", 'db/migrate', :migration_file_name => "kitsune_create_kitsune_users"
26
+ end
27
+
24
28
  if !!@versioned
25
29
  Rails::Generator::Scripts::Generate.new.run(['vestal_versions_migration'])
26
30
  end
@@ -0,0 +1,56 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.about_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="../../utils/mctabs.js"></script>
7
+ <script type="text/javascript" src="js/about.js"></script>
8
+ </head>
9
+ <body id="about" style="display: none">
10
+ <div class="tabs">
11
+ <ul>
12
+ <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
13
+ <li id="help_tab" style="display:none"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
14
+ <li id="plugins_tab"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
15
+ </ul>
16
+ </div>
17
+
18
+ <div class="panel_wrapper">
19
+ <div id="general_panel" class="panel current">
20
+ <h3>{#advanced_dlg.about_title}</h3>
21
+ <p>Version: <span id="version"></span> (<span id="date"></span>)</p>
22
+ <p>TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under <a href="../../license.txt" target="_blank">LGPL</a>
23
+ by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.</p>
24
+ <p>Copyright &copy; 2003-2008, <a href="http://www.moxiecode.com" target="_blank">Moxiecode Systems AB</a>, All rights reserved.</p>
25
+ <p>For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.</p>
26
+
27
+ <div id="buttoncontainer">
28
+ <a href="http://www.moxiecode.com" target="_blank"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="Got Moxie?" border="0" /></a>
29
+ <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="http://sourceforge.net/sflogo.php?group_id=103281" alt="Hosted By Sourceforge" border="0" /></a>
30
+ <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="http://tinymce.moxiecode.com/images/fm.gif" alt="Also on freshmeat" border="0" /></a>
31
+ </div>
32
+ </div>
33
+
34
+ <div id="plugins_panel" class="panel">
35
+ <div id="pluginscontainer">
36
+ <h3>{#advanced_dlg.about_loaded}</h3>
37
+
38
+ <div id="plugintablecontainer">
39
+ </div>
40
+
41
+ <p>&nbsp;</p>
42
+ </div>
43
+ </div>
44
+
45
+ <div id="help_panel" class="panel noscroll" style="overflow: visible;">
46
+ <div id="iframecontainer"></div>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="mceActionPanel">
51
+ <div style="float: right">
52
+ <input type="button" id="cancel" name="cancel" value="{#close}" onclick="tinyMCEPopup.close();" />
53
+ </div>
54
+ </div>
55
+ </body>
56
+ </html>
@@ -0,0 +1,31 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.anchor_title}</title>
5
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
6
+ <script type="text/javascript" src="js/anchor.js"></script>
7
+ </head>
8
+ <body style="display: none">
9
+ <form onsubmit="AnchorDialog.update();return false;" action="#">
10
+ <table border="0" cellpadding="4" cellspacing="0">
11
+ <tr>
12
+ <td colspan="2" class="title">{#advanced_dlg.anchor_title}</td>
13
+ </tr>
14
+ <tr>
15
+ <td class="nowrap">{#advanced_dlg.anchor_name}:</td>
16
+ <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" /></td>
17
+ </tr>
18
+ </table>
19
+
20
+ <div class="mceActionPanel">
21
+ <div style="float: left">
22
+ <input type="submit" id="insert" name="insert" value="{#update}" />
23
+ </div>
24
+
25
+ <div style="float: right">
26
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
27
+ </div>
28
+ </div>
29
+ </form>
30
+ </body>
31
+ </html>
@@ -0,0 +1,53 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>{#advanced_dlg.charmap_title}</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
6
+ <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
7
+ <script type="text/javascript" src="js/charmap.js"></script>
8
+ </head>
9
+ <body id="charmap" style="display:none">
10
+ <table align="center" border="0" cellspacing="0" cellpadding="2">
11
+ <tr>
12
+ <td colspan="2" class="title">{#advanced_dlg.charmap_title}</td>
13
+ </tr>
14
+ <tr>
15
+ <td id="charmapView" rowspan="2" align="left" valign="top">
16
+ <!-- Chars will be rendered here -->
17
+ </td>
18
+ <td width="100" align="center" valign="top">
19
+ <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px">
20
+ <tr>
21
+ <td id="codeV">&nbsp;</td>
22
+ </tr>
23
+ <tr>
24
+ <td id="codeN">&nbsp;</td>
25
+ </tr>
26
+ </table>
27
+ </td>
28
+ </tr>
29
+ <tr>
30
+ <td valign="bottom" style="padding-bottom: 3px;">
31
+ <table width="100" align="center" border="0" cellpadding="2" cellspacing="0">
32
+ <tr>
33
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">HTML-Code</td>
34
+ </tr>
35
+ <tr>
36
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center">&nbsp;</td>
37
+ </tr>
38
+ <tr>
39
+ <td style="font-size: 1px;">&nbsp;</td>
40
+ </tr>
41
+ <tr>
42
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">NUM-Code</td>
43
+ </tr>
44
+ <tr>
45
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center">&nbsp;</td>
46
+ </tr>
47
+ </table>
48
+ </td>
49
+ </tr>
50
+ </table>
51
+
52
+ </body>
53
+ </html>