-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
4,705 additions
and
1,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
div { | ||
background-color: #17a2b8; | ||
} | ||
|
||
H4 { | ||
background-color: red; | ||
} | ||
|
||
p { | ||
background-color: #3a17b8; | ||
} | ||
|
||
button { | ||
background-color: #1798b8; | ||
} | ||
|
||
.test_cls { | ||
background-color: green; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
tinymce.PluginManager.add('am_add_button10_CP', function (editor, url) { | ||
// Add a button that opens a window | ||
editor.addButton('am_add_button10_CP', { | ||
text: 'am_add_button10_CP', | ||
icon: false, | ||
onclick: function () { | ||
var content = tinymce.activeEditor.getContent(); | ||
var btn = document.createElement("button"); | ||
editor.insertContent('<br><button class="test_cls" >hello world</button><br>'); | ||
btn.className = "test_cls"; | ||
btn.value = "from js"; | ||
document.appendChild(btn); | ||
|
||
} | ||
}); | ||
|
||
// Adds a menu item to the tools menu | ||
editor.addMenuItem('am_add_button10_CP', { | ||
text: 'AddButton4', | ||
context: 'tools', | ||
onclick: function () { | ||
var btn = document.createElement("button"); | ||
editor.insertContent('<br><button class="test_cls" >hello world</button><br>'); | ||
editor.insertContent('<br><button style="background-color: red;">hello world2</button><br>'); | ||
debugger; | ||
btn.className = "test_cls"; | ||
btn.value = "from js"; | ||
|
||
$("#breadcrumbs").html("<textarea>THIS IS INSERTED FROM Tiny MCE</textarea>") | ||
} | ||
}); | ||
|
||
editor.addMenuItem('am_add_button10_CP', { | ||
text: 'AddButton5', | ||
context: 'tools', | ||
onclick: function () { | ||
|
||
|
||
$("#breadcrumbs").html("<textarea>THIS IS INSERTED FROM Tiny MCE</textarea>") | ||
} | ||
}); | ||
|
||
return { | ||
getMetadata: function () { | ||
return { | ||
name: "am_add_button10_CP" | ||
}; | ||
} | ||
}; | ||
}); | ||
tinymce.init({ | ||
selector: 'textarea', | ||
plugins: 'am_add_button10_CP', | ||
toolbar: 'am_add_button10_CP' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,74 @@ | ||
# T4-SDK | ||
The software development repository for Terminal Four in the CSO | ||
|
||
## Structure of Project | ||
|
||
**high_chart_fix** | ||
: Solution to printing highcharts without truncating the side. | ||
This fix replaces the interactive chart with an svg when printing by ctrl+p or when called explicitly by adding ?export2pdf to the end of the url | ||
|
||
**html2image** | ||
: add a wrapper around a block of code (e.g. infobyte or mini visualisation) to add a download symbol which offers a download of jpg, png or svg | ||
|
||
**html2pdf** | ||
: add a wrapper around a block of code to add a download symbol which offers a pdf download | ||
After the chart has been fixed, 'export2pdf_completed' has been applied. This can be used from backend side to detect when process has been finished. | ||
|
||
**t4_media** | ||
: this library contains the T4 assets of the website | ||
| directory | assets | | ||
| --------- | ------ | | ||
| css | media library extracted js | | ||
| - core | universal | | ||
| - module | feature-specific | | ||
| --------- | ------ | | ||
| from_db | | | ||
| - blank | | | ||
| - html | | | ||
| - html_old_ver | | | ||
| - js | multi-use scripts extracted from page layouts | | ||
| - non-automated | | | ||
| --------- | ------ | | ||
| html | | | ||
| - content_type | extracted and synced content types | | ||
| - layout | extracted and synced page layouts | | ||
| -- landing pages | 1:1 layouts used for a single page | | ||
| -- templates | layouts used for multiple pages | | ||
| -- themes | themed areas of the site e.g. surveys and careers | | ||
| - ManuallyAdded | Added after the initial extraction | | ||
| -- Extracted | Refactoring assets | | ||
| -- megaNav | Meganav POC assets | | ||
| --------- | ------ | | ||
| includes | reusable code included via navigation objects | | ||
| - manually_edited | new includes for Refactor | | ||
| --------- | ------ | | ||
| js | media library extracted js files | | ||
|
||
**t4-sdk-bootstrap** | ||
: local bootstrap assets create db using this method: | ||
How to do prefix: | ||
Notepad++ | ||
find:(\.)([a-zA-Z]+[-][a-zA-Z]+[-]?[a-zA-Z]*) | ||
replace:$1t4-sdk-$2 | ||
It adds t4-sdk- prefix to .css class. | ||
There is no local bootstrap.js , t4-sdk-megaNav.js is used to create meganav functionality | ||
|
||
**includes.html** | ||
: Working file helps to create includes related with this project using VS Code formatting | ||
|
||
**megaNav** | ||
: Changes related with content of megaNav, should be pasted here: | ||
https://test-t4.cso.ie/terminalfour/page/content#edit/47688/360608 | ||
|
||
**FullEditorUpgrade** | ||
:Custom TinyMCE plugin | ||
https://test-t4.cso.ie/terminalfour/page/htmleditorconfig#htmleditors | ||
|
||
**https://dev-incubator.cso.ie/t4sdk/t4helper/client/t4_helper.html** | ||
|
||
ReadMe file : Z:\t4sdk\t4helper\readme\readme.txt | ||
ReadMe file : Z:\t4sdk\t4helper\readme\readme.txt | ||
|
||
|
||
**source code for C# for T4Helper** | ||
Z:\t4sdk\T4_MetaData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.