You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ra...@apache.org on 2010/11/04 20:21:56 UTC

svn commit: r1031168 - in /lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources: css/lenya_dialog.css javascript/tiny_config.js

Author: rainer
Date: Thu Nov  4 19:21:56 2010
New Revision: 1031168

URL: http://svn.apache.org/viewvc?rev=1031168&view=rev
Log:

More TinyMCE Integration:
    Use the popup_css_add config option to load a css file called
    lenya_dialog.css, which hides all table and image attributes 
    forbidden by the rng schema.


Added:
    lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/css/lenya_dialog.css
Modified:
    lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/javascript/tiny_config.js

Added: lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/css/lenya_dialog.css
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/css/lenya_dialog.css?rev=1031168&view=auto
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/css/lenya_dialog.css (added)
+++ lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/css/lenya_dialog.css Thu Nov  4 19:21:56 2010
@@ -0,0 +1,49 @@
+
+/* Disables the advanced tab in the table plugin. */
+
+#table #advanced_tab, #table #advanced_panel {
+	display: none;
+}
+
+#tablecell #advanced_tab {
+	display: none;
+}
+
+#tablerow #advanced_tab {
+        display: none;
+}
+
+/* Disables the border input field and label in the table plugin. */
+
+#table #cellpadding, #table #cellpaddinglabel, #table #cellspacing, #table #cellspacinglabel {
+	display: none;
+}
+
+#table #align, #table #alignlabel {
+	display: none;
+}
+
+#table #border, #table #borderlabel {
+	display: none;
+}
+
+#table td.column1, #table input#caption {
+	display: none;
+}
+
+#tablerow label[for="rowtype"], #tablerow #rowtype {
+	display: none;
+}
+
+#tablerow label[for="height"], #tablerow #height {
+	display: none;
+}
+
+#image #align, #image label[for="align"], #image input#border, #image label[for="border"] {
+	display: none;
+}
+
+#image label[for="hspace"], #image input#hspace, #image label[for="vspace"], #image input#vspace {
+        display: none;
+}
+

Modified: lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/javascript/tiny_config.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/javascript/tiny_config.js?rev=1031168&r1=1031167&r2=1031168&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/javascript/tiny_config.js (original)
+++ lenya/branches/BRANCH_2_1_X/src/modules/tinymce/resources/javascript/tiny_config.js Thu Nov  4 19:21:56 2010
@@ -58,6 +58,9 @@ config = {
     /* grey out the "save" button unless there are unsaved changes: */
     //save_enablewhendirty : false,
     
+    /* disable editing of attributes forbidden by lenya schema */
+    popup_css_add : "../modules/tinymce/css/lenya_dialog.css",
+
     /* some special settings for fullscreen mode (they override the 
        settings further down) */
 /*



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org