Index: openacs-4/packages/xowiki/catalog/xowiki.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/catalog/xowiki.en_US.ISO-8859-1.xml,v
diff -u -N -r1.64.2.3 -r1.64.2.4
--- openacs-4/packages/xowiki/catalog/xowiki.en_US.ISO-8859-1.xml 1 Feb 2015 16:47:23 -0000 1.64.2.3
+++ openacs-4/packages/xowiki/catalog/xowiki.en_US.ISO-8859-1.xml 11 Feb 2015 12:31:40 -0000 1.64.2.4
@@ -223,4 +223,12 @@
year
years
Your Tags
+ Attached images
+ Attached media
+ Choose file
+ Upload file
+ Width
+ Height
+ The width and height are calculated in pixels (proportions might get lost).
+ Insert image
Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v
diff -u -N -r1.239.2.28 -r1.239.2.29
--- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 9 Feb 2015 09:38:09 -0000 1.239.2.28
+++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 11 Feb 2015 12:31:40 -0000 1.239.2.29
@@ -1799,19 +1799,21 @@
Class create richtext::ckeditor4 -superclass richtext -parameter {
{editor ckeditor4}
{mode wysiwyg}
- {skin moono}
+ {skin bootstrapck}
{toolbar Full}
{CSSclass xowiki-ckeditor}
{uiColor ""}
{CSSclass xowiki-ckeditor}
{customConfig "config.js"}
{callback "/* callback code */"}
{destroy_callback "/* callback code */"}
- {extraPlugins ""}
+ {submit_callback ""}
+ {extraPlugins "xowikiimage"}
{templatesFiles ""}
{templates ""}
{contentsCss /resources/xowiki/ck_contents.css}
{imageSelectorDialog /xowiki/ckeditor-images/}
+ {additionalConfigOptions ""}
}
richtext::ckeditor4 set editor_mixin 1
richtext::ckeditor4 instproc initialize {} {
@@ -1856,12 +1858,13 @@
}
function calc_image_tags_to_wiki_image_links_inline (e) {
- var data = $(''+e.editor.getData()+'
');
+ var data = $(''+CKEDITOR.instances[e].getData()+'
');
data.find('img[type="wikilink"]').each( function() {
var wiki_link = $(this).attr('alt');
$(this).replaceWith('[['+wiki_link+']]');
});
- document.getElementById(e.editor.config.textarea_id).innerHTML=data.html();
+ CKEDITOR.instances[e].setData(data.html());
+ CKEDITOR.instances[e].updateElement();
}
function calc_wiki_image_links_to_image_tags (data) {
@@ -1904,26 +1907,26 @@
::xo::Page requireJS "/resources/xowiki/jquery/jquery.min.js"
::xo::Page requireJS "/resources/xowiki/ckeditor4/ckeditor.js"
::xo::Page requireJS "/resources/xowiki/ckeditor4/adapters/jquery.js"
- ::xo::Page requireJS "/resources/xowiki/jquery-ui-1.8.17.custom.min.js"
- ::xo::Page requireCSS "/resources/xowiki/jquery-ui-1.8.17.custom.css"
-
+ #::xo::Page requireJS "/resources/xowiki/jquery-ui-1.8.17.custom.min.js"
+ #::xo::Page requireCSS "/resources/xowiki/jquery-ui-1.8.17.custom.css"
+
# In contrary to the doc, ckeditor4 names instances after the id,
# not the name.
set id [my id]
set name [my name]
set package_id [[my object] package_id]
- #my extraPlugins {xowikiimage tlflrn}
- #my extraPlugins {}
if {[my set displayMode] eq "inline"} {my lappend extraPlugins sourcedialog}
+
if {"xowikiimage" in [my extraPlugins]} {
my js_image_helper
set ready_callback {xowiki_image_callback(e.editor);}
} else {
set ready_callback "/*none*/;"
- set blur_callback "/*none*/;"
+ set submit_callback "/*none*/;"
}
set options [subst {
+ [my set additionalConfigOptions]
toolbar : '[my toolbar]',
uiColor: '[my uiColor]',
language: '[lang::conn::language]',
@@ -1975,40 +1978,40 @@
} elseif {[my set displayMode] eq "inline"} {
if {!$is_repeat_template} {
if {"xowikiimage" in [my extraPlugins]} {
- set ready_callback "xowiki_image_callback(CKEDITOR.instances\['ckinline_$id'\]);"
- set blur_callback "calc_image_tags_to_wiki_image_links_inline(e);"
+ set ready_callback "xowiki_image_callback(CKEDITOR.instances\['$id'\]);"
+ set submit_callback "calc_image_tags_to_wiki_image_links_inline('$id');"
}
-
- ::xo::Page requireJS [subst -nocommands {
- function load_ckinline_$id () {
- CKEDITOR.inline('ckinline_$id', {
+
+ set submit_callback "$submit_callback [my submit_callback]"
+ ::xo::Page requireJS [subst {
+ function load_$id () {
+ CKEDITOR.inline('$id', {
on: {
- blur: function(e) {
- $blur_callback
+ instanceReady: function(e) {
+ \$(e.editor.element.\$).attr('title', '[my set label]');
+ \$(e.editor.element.\$.form).submit(function(e) {
+ $submit_callback
+ });
}
},
$options
});
}
\$(document).ready(function() {
- load_ckinline_$id ();
+ load_$id ();
$ready_callback
- });
+ });
}]
}
- my set style "display:none;"
next
- ::html::div "id ckinline_[my set id] name [my set name] class xowiki-ckeditor contenteditable true" {
- ::html::t -disableOutputEscaping [my value]
- }
} else {
if {!$is_repeat_template} {
set callback [my callback]
::xo::Page requireJS [subst -nocommands {
function load_$id () {
\$( '#$id' ).ckeditor(function() { $callback }, {
$options
- });
+ });
}
\$(document).ready(function() {
load_$id ();
@@ -2019,7 +2022,7 @@
next
}
}
- }
+ }
###########################################################
#
Index: openacs-4/packages/xowiki/www/ckeditor-images/image.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ckeditor-images/image.png,v
diff -u -N -r1.1 -r1.1.2.1
Binary files differ
Index: openacs-4/packages/xowiki/www/ckeditor-images/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ckeditor-images/index.adp,v
diff -u -N -r1.3 -r1.3.2.1
--- openacs-4/packages/xowiki/www/ckeditor-images/index.adp 13 Sep 2012 16:05:34 -0000 1.3
+++ openacs-4/packages/xowiki/www/ckeditor-images/index.adp 11 Feb 2015 12:31:41 -0000 1.3.2.1
@@ -1,111 +1,144 @@
-
+
-
+
+
-#xowiki.attached_images#:
+#xowiki.attached_media#:
+
+
+
+
| |
|
-
-
-
-
-
\ No newline at end of file
+
Index: openacs-4/packages/xowiki/www/ckeditor-images/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ckeditor-images/index.tcl,v
diff -u -N -r1.4.2.1 -r1.4.2.2
--- openacs-4/packages/xowiki/www/ckeditor-images/index.tcl 5 Aug 2014 13:10:50 -0000 1.4.2.1
+++ openacs-4/packages/xowiki/www/ckeditor-images/index.tcl 11 Feb 2015 12:31:41 -0000 1.4.2.2
@@ -3,7 +3,7 @@
} {
parent_id:notnull,naturalnum
{bild_url ""}
-}
+}
set package_url [ad_conn package_url]
set image_browser_url $package_url/ckeditor-images
set fs_package_id $parent_id
Index: openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.adp,v
diff -u -N -r1.4 -r1.4.2.1
--- openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.adp 13 Sep 2012 16:05:34 -0000 1.4
+++ openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.adp 11 Feb 2015 12:31:41 -0000 1.4.2.1
@@ -1,25 +1,41 @@
-
+
-
\ No newline at end of file
+