Fix pluntuml plugin in tinymce

parent dc24932f
Pipeline #11745 passed with stages
in 22 minutes 40 seconds
......@@ -16,8 +16,8 @@
console.log("overwrite tiny-config");
jsconfig.tinyMce.externalPlugins.plantuml = "@{_asset("javascripts/plantuml/editor_plugin.js")}";
jsconfig.tinyMce.defaultLayout.plugins.push("plantuml");
jsconfig.tinyMce.defaultLayout.toolbar2 = jsconfig.tinyMce.defaultLayout.toolbar2 + " | plantuml";
jsconfig.tinyMce.defaultLayout.plugins.concat("plantuml");
jsconfig.tinyMce.defaultLayout.toolbar = jsconfig.tinyMce.defaultLayout.toolbar + " | plantuml";
// jsconfig.tinyMce.simpleLayout.plugins.push("plantuml");
// jsconfig.tinyMce.simpleLayout.toolbar = jsconfig.tinyMce.simpleLayout.toolbar + " | plantuml";
console.log("finish tiny-config");
\ No newline at end of file
console.log("finish tiny-config");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PlantUML Source Code</title>
<script type="text/javascript" src="/commons/assets/javascripts/tinymce_4.3.2/plugins/compat3x/tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
</head>
<body>
<center><b>Enter your <a target="_blank" href=http://plantuml.sourceforge.net>PlantUML diagram text</a> here:</b></center>
<p>
<form onsubmit="PlantumlDialog.insert();return false;" action="#">
<div>
<textarea style="width: 100%" rows="19" cols="35" id="txtCode"></textarea>
</div>
<div style="float: left">
<input type="button" id="insert" name="insert" value="{#insert}" onclick="PlantumlDialog.insert();" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PlantUML Source Code</title>
<link rel="stylesheet" media="screen" href="/commons/assets/javascripts/tinymce_4.9.1/plugins/compat3x/css/dialog.css"/>
<script type="text/javascript" src="/commons/assets/javascripts/tinymce_4.9.1/plugins/compat3x/tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
</head>
<body>
<center><b>Enter your <a target="_blank" href=http://plantuml.sourceforge.net>PlantUML diagram text</a> here:</b></center>
<p>
<form onsubmit="PlantumlDialog.insert();return false;" action="#">
<div>
<textarea style="width: 100%" rows="19" cols="35" id="txtCode"></textarea>
</div>
<div style="float: left">
<input type="button" id="insert" name="insert" value="{#insert}" onclick="PlantumlDialog.insert();" />
</div>
<div style="float: right">
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
</div>
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment