first commit
This commit is contained in:
19
components/com_jce/editor/tiny_mce/plugins/visualblocks/config.php
vendored
Normal file
19
components/com_jce/editor/tiny_mce/plugins/visualblocks/config.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @copyright Copyright (c) 2009-2022 Ryan Demmer. All rights reserved
|
||||
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
* JCE is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses
|
||||
*/
|
||||
class WFVisualblocksPluginConfig
|
||||
{
|
||||
public static function getConfig(&$settings)
|
||||
{
|
||||
$wf = WFApplication::getInstance();
|
||||
|
||||
$settings['visualblocks_default_state'] = $wf->getParam('visualblocks.state', 0, 0, 'boolean');
|
||||
}
|
||||
}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/css/content.css
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/css/content.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.mceVisualBlocks address,.mceVisualBlocks article,.mceVisualBlocks aside,.mceVisualBlocks blockquote,.mceVisualBlocks dd,.mceVisualBlocks div:not([class*=mce-]):not([class*=wf-]),.mceVisualBlocks dl,.mceVisualBlocks dt,.mceVisualBlocks figure,.mceVisualBlocks footer,.mceVisualBlocks h1,.mceVisualBlocks h2,.mceVisualBlocks h3,.mceVisualBlocks h4,.mceVisualBlocks h5,.mceVisualBlocks h6,.mceVisualBlocks header,.mceVisualBlocks nav,.mceVisualBlocks ol,.mceVisualBlocks p,.mceVisualBlocks pre:not([class*=language-]),.mceVisualBlocks section,.mceVisualBlocks ul{margin:2px 0;padding:2px;border:1px dashed #787679;border-color:var(--mce-guidelines);box-sizing:border-box}.mceVisualBlocks figcaption{border:1px dashed #787679;border-color:var(--mce-guidelines);padding:5px;margin:2px 0}.mceVisualBlocks dd,.mceVisualBlocks dt{margin-bottom:2px}.mceVisualBlocks ol,.mceVisualBlocks ul{padding:5px 40px}.mceVisualBlocks address:before,.mceVisualBlocks article:before,.mceVisualBlocks aside:before,.mceVisualBlocks blockquote:before,.mceVisualBlocks dd:before,.mceVisualBlocks div:not([class*=mce-]):not([class*=wf-]):before,.mceVisualBlocks dl:before,.mceVisualBlocks dt:before,.mceVisualBlocks figure:before,.mceVisualBlocks footer:before,.mceVisualBlocks h1:before,.mceVisualBlocks h2:before,.mceVisualBlocks h3:before,.mceVisualBlocks h4:before,.mceVisualBlocks h5:before,.mceVisualBlocks h6:before,.mceVisualBlocks header:before,.mceVisualBlocks nav:before,.mceVisualBlocks ol:before,.mceVisualBlocks p:before,.mceVisualBlocks pre:not([class*=language-]):before,.mceVisualBlocks section:before,.mceVisualBlocks ul:before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border:0;white-space:nowrap;text-decoration:none;cursor:inherit;vertical-align:baseline;border-collapse:separate;text-align:left;box-sizing:border-box;float:none;outline:0;position:relative;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;text-transform:inherit;font-style:normal;letter-spacing:normal;display:block;font-weight:700;font-size:7pt;color:#787679;color:var(--mce-guidelines);padding:4px 0;margin:2px 0;line-height:0;font-family:-apple-systrem,BlinkMacSystremFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;width:100%}.mceVisualBlocks p:before{content:"P"}.mceVisualBlocks h1:before{content:"H1"}.mceVisualBlocks h2:before{content:"H2"}.mceVisualBlocks h3:before{content:"H3"}.mceVisualBlocks h4:before{content:"H4"}.mceVisualBlocks h5:before{content:"H5"}.mceVisualBlocks h6:before{content:"H6"}.mceVisualBlocks div:not([class*=mce-]):not([class*=wf-]):before{content:"DIV"}.mceVisualBlocks section:before{content:"SECTION"}.mceVisualBlocks article:before{content:"ARTICLE"}.mceVisualBlocks header:before{content:"HEADER"}.mceVisualBlocks footer:before{content:"FOOTER"}.mceVisualBlocks nav:before{content:"NAV"}.mceVisualBlocks blockquote:before{content:"BLOCKQUOTE"}.mceVisualBlocks pre:before{content:"PRE"}.mceVisualBlocks ul:before{content:"UL";left:-38px}.mceVisualBlocks ol:before{content:"OL";left:-38px}.mceVisualBlocks dl:before{content:"DL"}.mceVisualBlocks dt:before{content:"DT"}.mceVisualBlocks dd:before{content:"DD"}.mceVisualBlocks address:before{content:"ADDRESS"}.mceVisualBlocks aside:before{content:"ASIDE"}.mceVisualBlocks figure:before{content:"FIGURE"}
|
||||
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/css/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/css/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
2
components/com_jce/editor/tiny_mce/plugins/visualblocks/editor_plugin.js
vendored
Normal file
2
components/com_jce/editor/tiny_mce/plugins/visualblocks/editor_plugin.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* jce - 2.9.32 | 2022-11-01 | https://www.joomlacontenteditor.net | Copyright (C) 2006 - 2022 Ryan Demmer. All rights reserved | GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */
|
||||
!function(){var Storage=tinymce.util.Storage;tinymce.PluginManager.add("visualblocks",function(ed,url){function toggleVisualBlocks(){ed.controlManager.setActive("visualblocks",state),ed.getParam("use_state_cookies",!0)&&Storage.set("wf_visualblocks_state",state),state?ed.dom.addClass(ed.getBody(),"mceVisualBlocks"):ed.dom.removeClass(ed.getBody(),"mceVisualBlocks")}var state=!1;ed.getParam("use_state_cookies",!0)&&(state=Storage.get("wf_visualblocks_state")),tinymce.is(state,"string")&&("null"!==state&&"false"!==state||(state=!1),state=!!state),state=ed.getParam("visualblocks_default_state",state),ed.addCommand("mceVisualBlocks",function(){state=!state,toggleVisualBlocks()}),ed.onSetContent.add(function(){ed.controlManager.setActive("visualblocks",state)}),ed.addButton("visualblocks",{title:"visualblocks.desc",cmd:"mceVisualBlocks"}),ed.onInit.add(function(){ed.settings.compress.css||ed.dom.loadCSS(url+"/css/content.css"),state&&toggleVisualBlocks()})})}();
|
||||
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/index.html
vendored
Normal file
1
components/com_jce/editor/tiny_mce/plugins/visualblocks/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
25
components/com_jce/editor/tiny_mce/plugins/visualblocks/visualblocks.xml
vendored
Normal file
25
components/com_jce/editor/tiny_mce/plugins/visualblocks/visualblocks.xml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" ?>
|
||||
<extension version="3.4" type="plugin" group="jce" method="upgrade">
|
||||
<name>WF_VISUALBLOCKS_TITLE</name>
|
||||
<version>2.9.32</version>
|
||||
<creationDate>01-11-2022</creationDate>
|
||||
<author>Ryan Demmer</author>
|
||||
<authorEmail>info@joomlacontenteditor.net</authorEmail>
|
||||
<authorUrl>https://www.joomlacontenteditor.net/</authorUrl>
|
||||
<copyright>Ryan Demmer</copyright>
|
||||
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
|
||||
<description>WF_VISUALBLOCKS_DESC</description>
|
||||
<icon>visualblocks</icon>
|
||||
<fields name="visualblocks">
|
||||
<fieldset name="config">
|
||||
<field name="state" type="yesno" default="0" label="WF_LABEL_STATE" description="WF_STATE_DESC">
|
||||
<option value="1">JON</option>
|
||||
<option value="0">JOFF</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
<help>
|
||||
<topic key="visualblocks.about" title="WF_VISUALBLOCKS_HELP_ABOUT" />
|
||||
</help>
|
||||
<languages></languages>
|
||||
</extension>
|
||||
Reference in New Issue
Block a user