TinyMCE - how to with LS 3?

Mehr
2 Monate 2 Wochen her #170679 von achstil
achstil erstellte das Thema TinyMCE - how to with LS 3?
I would like to use a rich text editor with options to paste 'sensible' from word. TinyMCE is the candidate. This answer details how TinyMCE can be used - but the answer is four years old and LS3 has changed a lot. How would I do this today?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 2 Wochen her #170801 von achstil
achstil antwortete auf das Thema: TinyMCE - how to with LS 3?
I am the only one who is faced with "paste from word" requirement? - Or should it be trivial to integrete TinyMCE as per the instructions above?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 2 Wochen her - 2 Monate 2 Wochen her #170839 von tpartner
tpartner antwortete auf das Thema: TinyMCE - how to with LS 3?
TinyMCE from a CDN (what they call 'Cloud') is not free any more but if you have a plan, you can add something like this to your custom.js file:

$(document).on('ready pjax:scriptcomplete',function(){
	$.getScript('https://cloud.tinymce.com/stable/tinymce.min.js', function(data, textStatus, jqxhr) {
		tinymce.init({
			selector: '.text-item textarea',
			menubar: false,
			setup: function (editor) {
				editor.on('change', function () {
					tinymce.triggerSave();
				});
			},
			plugins: [
				'advlist autolink lists link image charmap print preview anchor textcolor',
				'searchreplace visualblocks code fullscreen',
				'insertdatetime media table contextmenu paste code help wordcount'
			],
			toolbar: 'insert | undo redo |  formatselect | bold italic backcolor forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | code paste removeformat | help',
			content_css: [
				'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
				'//www.tinymce.com/css/codepen.min.css'
			]
		});
	});
});

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Letzte Änderung: 2 Monate 2 Wochen her von tpartner.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha