Adding HTML Fragment to a Resource

Adding HTML Fragment to a Resource

por Jim Stevenson -
Número de respostas: 1

Hello.

Is there a limit to the size (amount ) of HTML code one can paste into the built-in editor.

I get an error ("

Could not add a new instance of resource

") when I paste from a web page. I'm running on a Windows 2000 Pro box.

 

Thanks,

Jim

 

Em resposta a 'Jim Stevenson'

Re: Adding HTML Fragment to a Resource

por Martin Dougiamas -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers
There are two limits that come to mind.

The first is the limit of the text editing area ... it might be 32k (this is a browser-set limit).

The second is the PHP size limit on acceptable form data. This variable is called post_max_size, see moodle/lib/htaccess for more details.

The embedded editor is not really meant for heavy-duty use - I'd recommend saving the original page as a file and uploading it to the course, or otherwise simply linking to it using a resource type "web page".