Adding HTML Fragment to a Resource

Adding HTML Fragment to a Resource

per Jim Stevenson -
Nombre de respostes: 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

 

Mitjana de qualificacions: -
En resposta a Jim Stevenson

Re: Adding HTML Fragment to a Resource

per Martin Dougiamas -
Imatge de Core developers Imatge de Documentation writers Imatge de Moodle HQ Imatge de Particularly helpful Moodlers Imatge de Plugin developers Imatge 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".